Update Cloud Pak Route’s Hostname
You may want to use your own custom hostname for the Cloud Pak’s route. This paper consolidates the steps together for future reference.
Routes need to be updated
The routes for cloud pak’s product typically involves two URL
- The cloud pak foundation service, which is normally called as
cp-console
route. - The cloud pak’s route, which is called as
cpd
route.
We need to updates these two routes’ URL from the original hostname to the new hostname. For an example, change the cp-console route from
cp-console-aiops.apps..dev2-ocp414.ibmcloud.io.cpak
to cp-console.aiops.myapp.cpak
Change the cpd route from
cpd-aiops.apps..dev2-ocp414.ibmcloud.io.cpak
tocpd.aiops.myapp.cpak
Update DNS records
You need to plan your DNS name and create the DNS records to point it to the application load balancer. In my case, I update the dnsmasq DNS server with the following additional conf
file
address=/.aiops.myapp.cpak/192.168.10.xx
Notice I am using the wildcard domain name for my new hostnames.