To migrate your existing CloudBees CI installation to Helm:
-
Ensure you have installed Helm, as documented in Setting up the Helm client.
-
Back up your operations center and
$JENKINS_HOMEdirectory. -
Ensure that the
reclaim policyof the Persistent Volume for your operations center is set toRetain, and notDelete. To check this, runkubectl get pvand look under theRECLAIM POLICYcolumn for thejenkins-home-cjoc-0claim.$ kubectl get pv NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE pvc-6235d73e-4f47-4fff-905e-095c89e245fe 20Gi RWO Retain Bound default/jenkins-home-cjoc-0 standard 174mIf the
RECLAIM POLICYisDelete, change it toRetainby following Changing the reclaim policy of a PersistentVolume. -
Delete your existing operations center:
$ kubectl delete -f cloudbees-ci.yml(1)1 Substitute the name of your most recently customized CloudBees CI YAML file for cloudbees-ci.yml. -
Install the CloudBees CI Helm chart by following Install CloudBees CI.
-
Once your CloudBees CI migration has completed, log in to your operations center with your previous passwords.
-
The Kubernetes Pod for each of your controllers now requires a restart. This can be done using the button in the operations center. Doing this ensures that the Kubernetes
ServiceAccountand theSecretthat was re-created as part of this Helm migration is picked up by each controller, which is required for the controller to be able to create new Kubernetes build agents.
For more information on running CloudBees CI on Kubernetes, refer to CloudBees CI on modern cloud platforms administration guide.