Set up DNS after installation

Issue

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

Environment

Resolution

Clasical approach with .yaml

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 Masters from CJOC’s UI
  3. Reconfigure CJOC 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 CJOC 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 CJOC has started, restart the masters 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. Stop Masters from CJOC’s UI
  3. Stop CJOC 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 - --set OperationsCenter.HostName='my-domain.example.com'.
  5. Start CJOC deployment with kubectl scale statefulsets/cjoc --replicas=1 -n <cbcore-namespace>

Tested products/plugins version

The latest update of this article was tested with:

Have more questions?

0 Comments

Please sign in to leave a comment.