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:
-
Make whatever change is necessary so that you have a DNS record that points to the Load Balancer of the Ingress Controller
-
Stop controllers from CJOC’s UI
-
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. -
Stop CJOC deployment with
kubectl scale statefulsets/cjoc --replicas=0 -n <cbcore-namespace>
-
Apply the new config with
kubectl apply -f cloudbees-core.yml -n <cbcore-namespace>
-
Once CJOC has started, restart the controllers from the UI
With Helm
-
Make whatever change is necessary so that you have a DNS record that points to the Load Balancer of the Ingress Controller
-
Stop controllers from CJOC’s UI
-
Stop CJOC deployment with
kubectl scale statefulsets/cjoc --replicas=0 -n <cbcore-namespace>
-
Apply the new configuration by upgrading the
OperationsCenter.HostName
value from the Helm chart ---set OperationsCenter.HostName='my-domain.example.com'
. -
Start CJOC deployment with
kubectl scale statefulsets/cjoc --replicas=1 -n <cbcore-namespace>