Update Cloud Pak Route’s Hostname

Zhimin Wen
3 min readMay 6, 2024
Image by HUNTER16 from Pixabay

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

  1. The cloud pak foundation service, which is normally called as cp-console route.
  2. 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.

Part 1. Update CP Console’s Hostname

--

--