Upgrades

Kubernetes Upgrade

  • drain one of the K8s masters (usually I start with gandalf)
  • upgrade kubeadm on gandalf, durin, and thorin
    • apt install kubeadm
  • run kubeadm upgrade plan on gandalf
  • run kubeadm upgrade apply v{version} on gandalf
  • run kubeadm upgrade node on durin and thorin
  • run apt upgrade on gandalf, durin, and thorin
  • run apt-mark hold kubeadm kubectl kubelet on gandalf, durin, and thorin
  • run kubectl uncordon gandalf
  • run kubeadm upgrade node && apt upgrade && apt-mark hold kubeadm kubectl kubelet on all worker nodes