Skip to content

Kubernetes Upgrades

Kubernetes upgrades

Check the versions skew policy

  1. Scale down admiralty deployments and delete all virtual nodes - those prevent the upgrades

  2. Follow the upgrade guide for master.

    1. During the upgrade it’s better to pre-pull the new images with kubeadm config images pull
  3. 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=false

  4. Do the last step in the upgrade manual to restart the control plane again.

  5. 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.conf file: set priority 99 on the current node with priority 100, and make another upgraded node priority 100. Then restart keepalived on both - the IP will switch to the new node.

β€” Breathe out! The master upgrade is done. β€”

  1. Do rolling upgrade of compute nodes using ansible upgrade playbook.
  2. Upgrade the kubernetes version in the portal dependencies libraries
NSF Logo
This work was supported in part by National Science Foundation (NSF) awards CNS-1730158, ACI-1540112, ACI-1541349, OAC-1826967, OAC-2112167, CNS-2100237, CNS-2120019.