Set up DNS after installation

Article ID:360031055772
1 minute readKnowledge base

Issue

You would like to modify the DNS settings of your cluster once the installation is done

Resolution

Pre-Helm approach using a .yaml file

In order to modify the DNS settings of your cluster you will need to follow the action items below:

  1. Make whatever change is necessary so that you have a DNS record that points to the Load Balancer of the Ingress Controller

  2. Stop controllers from operations center’s UI

  3. Reconfigure operations center URL in cloudbees-core.yaml (replace your old URL by the new one - there should be two lines to change: the cjoc ingress host and the cjoc-configure-jenkins-groovy configmap.

  4. Stop operations center deployment with kubectl scale statefulsets/cjoc --replicas=0 -n <cbcore-namespace>

  5. Apply the new config with kubectl apply -f cloudbees-core.yml -n <cbcore-namespace>

  6. Once operations center has started, start the controllers from the UI

With Helm

  1. Make whatever change is necessary so that you have a DNS record that points to the Load Balancer of the Ingress Controller

  2. Deprovision/Stop controllers from operations center’s UI

  3. Stop operations center deployment with kubectl scale statefulsets/cjoc --replicas=0 -n <cbcore-namespace>

  4. Apply the new configuration by upgrading the OperationsCenter.HostName value from the Helm chart, e.g., --set OperationsCenter.HostName='my-domain.example.com'.

  5. Start operations center deployment with kubectl scale statefulsets/cjoc --replicas=1 -n <cbcore-namespace>

  6. Once operations center has started, start the controllers from the UI