Kubernetes Upgrades
Kubernetes upgrades
Check the versions skew policy
Scale down admiralty deployments and delete all virtual nodes - those prevent the upgrades
Follow the upgrade guide for master.
- During the upgrade itβs better to pre-pull the new images with
kubeadm config images pull
- During the upgrade itβs better to pre-pull the new images with
If those were made and not in config, bring back all custom changes to controller-manager in /etc/kubernetes/manifests.
Controller-manager:
- --allocate-node-cidrs=falseDo the last step in the upgrade manual to restart the control plane again.
Do the same steps for every master node. You might want to do the main keepalived node (the one users are connecting to, it has the HA IP) the last, and switch the VIP to a different node before upgrading. To do it, modify the
/etc/keepalived/keepalived.conffile: setpriority 99on the current node withpriority 100, and make another upgraded nodepriority 100. Then restart keepalived on both - the IP will switch to the new node.
β Breathe out! The master upgrade is done. β
- Do rolling upgrade of compute nodes using ansible upgrade playbook.
- Upgrade the kubernetes version in the portal dependencies libraries
