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 operations center’s UI
-
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. -
Stop operations center 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 operations center has started, start 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
-
Deprovision/Stop controllers from operations center’s UI
-
Stop operations center 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, e.g.,--set OperationsCenter.HostName='my-domain.example.com'
. -
Start operations center deployment with
kubectl scale statefulsets/cjoc --replicas=1 -n <cbcore-namespace>
-
Once operations center has started, start the controllers from the UI