Inspect the cluster
Start by creating a short alias forkubectl and inspect nodes, node taints, and running workloads.
Choose an upgrade strategy
Constraints:- No new VMs can be provisioned.
- End users must not be impacted.
- Upgrade nodes one at a time.
- Drain each node so pods can migrate to the remaining node.
- Upgrade the control-plane first (kubeadm requires upgrading control-plane components before worker kubelets), then upgrade workers.
Determine available upgrades with kubeadm
Runkubeadm upgrade plan on the control-plane to see supported target versions:
kubeadm (v1.19.0) can upgrade the cluster within the v1.19 patch series. To move to a newer minor series (for example 1.20.x), first install the target minor version of the kubeadm binary, then run kubeadm upgrade apply to upgrade control-plane components.
Always upgrade the
kubeadm binary to the target minor version before running kubeadm upgrade apply. kubeadm will refuse to apply upgrades to minor versions newer than the kubeadm binary itself.Select the target version and follow docs
For this lab we will upgrade from v1.19 to v1.20 (control-plane first, then worker). Follow the Kubernetes documentation for exact procedures and compatibility guidance:- Upgrading kubeadm clusters: https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/

kubeadm, kubelet, and kubectl (e.g., 1.20.0-00 or 1.20.15-00 — be consistent).
Upgrade plan (high-level checklist)
Upgrade the control-plane node (detailed)
- Drain and cordon the control-plane (evict non-DaemonSet pods).
- Upgrade
kubeadmto the chosen1.20.x-00package. - Run
kubeadm upgrade apply v1.20.x. - Upgrade
kubeletandkubectl, restart kubelet. - Uncordon the control-plane.
- Drain the control-plane (ignore DaemonSets like CNI and kube-proxy):
- Upgrade the
kubeadmbinary (example installs1.20.0-00). Useapt-markto manage holds where appropriate:
--allow-change-held-packages, use that in a single command.
- Verify version and run the plan, then apply the upgrade:
- Upgrade
kubeletandkubectlon the control-plane, restart kubelet, then uncordon:
Upgrade the worker node (node01)
Repeat the process on each worker, one node at a time. High-level worker steps:- Cordon and drain the worker from the control-plane:
kubectl drain node01 --ignore-daemonsets. - SSH to the worker and upgrade
kubeadmto the target package. - On the worker run
sudo kubeadm upgrade nodeto update the node’s kubelet configuration. - Upgrade
kubeletandkubectlon the worker, restart kubelet. - Exit worker SSH, then uncordon the worker from the control-plane.
Ready on v1.20.0:
Final notes and recommendations
Before upgrading control-plane and kubelets, confirm that addons (CNI plugin, CoreDNS, kube-proxy, etc.) are compatible with the target Kubernetes version. Always take etcd/cluster backups and test the upgrade path in a non-production environment first.
- Read the Kubernetes documentation: Upgrading kubeadm clusters — https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/
- Upgrade one node at a time and verify cluster health between steps:
kubectl get nodes,kubectl get cs,kubectl get pods -A. - Ensure package versions are consistent across
kubeadm,kubelet, andkubectl. - If control-plane nodes are tainted (unschedulable) or you have a single worker with strict availability needs, plan for additional capacity or schedule a maintenance window.
References
- Kubernetes: Upgrading kubeadm clusters — https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/
- Kubernetes Concepts — https://kubernetes.io/docs/concepts/