Version skew and upgrade sequencing
Why upgrades need an order
A Kubernetes cluster contains several cooperating binaries, not one application version. A rolling control-plane upgrade deliberately creates a temporary mixed-version environment. Version skew is the permitted difference between the minor versions of components that communicate. A patch upgrade changes the last part of a version; a minor upgrade changes the middle part. A permitted skew does not by itself establish that the distribution, add-ons or workloads are ready. The examples in this chapter use a hypothetical 1.36 to 1.37 transition, not a deployable version pin.
1.36.x → 1.37.y (one minor)1.35.x → 1.37.y (unsupported direct kubeadm minor jump)Calculate compatibility against every API server
In the modern upstream policy, HA API servers differ by at most one minor. A kubelet must not be newer than any API server it talks to and may be up to three minors older. kubectl may differ by one minor in either direction. Controller manager and scheduler should match the API server and can be one minor older for upgrades, never newer than servers they contact. Mixed API versions narrow the intersection of acceptable versions. These are selected modern upstream rules; kubeadm and managed platforms may impose tighter limits.
API servers: 1.36 and 1.37kubelet allowed: 1.34, 1.35, 1.36kubectl allowed: 1.36, 1.37A 1.37 kubelet would be too new for the 1.36 API server.Prepare a reviewed upgrade plan
Inventory component and add-on versions, available packages, control-plane health, API removals, node capacity, disruption budgets and application dependencies. Establish a maintenance window and acceptance checks. Protect etcd state, application data and configuration; rehearse restoration separately. Select supported patched source and target releases using the release-specific kubeadm guide. Do not treat a backup file as evidence of successful recovery. Never install or upgrade from an unknown host or context.
Preflight evidence: supported path + tested restoration + healthy API/quorum + compatible add-ons + workload capacity + approved windowSequence kubeadm and worker maintenance
On a reviewed disposable cluster, update kubeadm on the first control-plane node, inspect its upgrade plan, then apply the approved target. Upgrade remaining control-plane nodes in sequence with kubeadm upgrade node. Before upgrading a kubelet across a minor boundary, drain its node. For workers, update kubeadm and node configuration following the exact release guide, drain, upgrade and restart kubelet, verify and return the node to service. Review kubectl compatibility throughout. Do not copy this outline as a shell script: packages and ordering details depend on the release and topology.
Illustrative commands, not executed:kubeadm upgrade plankubeadm upgrade apply <reviewed-target-version>kubeadm upgrade nodeVerify API, node readiness and application traffic at each gate.Stop before compounding a failure
If API requests fail, etcd loses safe quorum, the network add-on breaks, or workload checks fail, pause and retain evidence. Do not advance the next node while a previous node remains unhealthy. Reverting a package is not a general rollback strategy because configuration, certificates and persisted data may have changed. Use the documented recovery procedure for the specific failure and a rehearsed restore plan. Managed providers have their own upgrade and recovery contracts.
cp-a upgraded → API healthy → cp-b eligiblecp-b unhealthy → STOP; investigate, do not proceed to cp-cPractice and verification
Use skew-cases.json and upgrade-cases.json to explain permitted component versions and identify stop conditions. Use only the offline fixtures in lab-fixtures/cluster-maintenance. State which checks require a real authorized cluster.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Version skew and upgrade sequencing — knowledge check
Plan a component-aware Kubernetes upgrade, check version skew across API servers, and decide when to stop a maintenance operation.
Can kubeadm skip directly from minor 35 to minor 37?
API servers are 1.36 and 1.37. Which kubelet is too new?
Which kubectl version fits both API 1.36 and 1.37?
What should happen before a minor kubelet upgrade?
The upgraded control-plane node fails acceptance checks. Next action?