Upgrade Patch Version of the Deploy
Patch upgrades from 23.3
For smaller patch upgrades, you can just update the operator and server versions.
- For operator upgrades use the following: Check the current operator version:
kubectl get -n digitalai deployment xld-operator-controller-manager \
-o jsonpath="{.spec.template.spec.containers[1].image}"
Do the upgrade:
kubectl patch -n digitalai deployment xld-operator-controller-manager \
--type='json' --patch '[{"op": "replace", "path": "/spec/template/spec/containers/1/image", "value": "xebialabs/deploy-operator:23.3.1"}]'
Change will automatically restart the operator pods. And after that update all other resources in case they are changed.
- For Deploy server upgrade use the following:
kubectl patch -n digitalai digitalaideploys.xld.digital.ai dai-xld \
--type=merge --patch '{"spec": {"centralConfiguration": {"image": {"tag": "23.3.1"}}}}'
kubectl patch -n digitalai digitalaideploys.xld.digital.ai dai-xld \
--type=merge --patch '{"spec": {"master": {"image": {"tag": "23.3.1"}}}}'
kubectl patch -n digitalai digitalaideploys.xld.digital.ai dai-xld \
--type=merge --patch '{"spec": {"worker": {"image": {"tag": "23.3.1"}}}}'
To restart and apply changes use the following:
kubectl delete sts dai-xld-digitalai-deploy-cc-server -n digitalai
kubectl delete sts dai-xld-digitalai-deploy-master -n digitalai
kubectl delete sts dai-xld-digitalai-deploy-worker -n digitalai