Sub topic 8
Planning the upgrade: release notes, staging, and sequencing
This chapter assumes you can use kubectl, know the control plane and worker node roles, and have read the earlier chapters on version skew and deprecated APIs. Planning turns those facts into a written, ordered runbook before you touch a node.
Read the release notes first
Read the changelog for every minor version between your current version and the target. Kubernetes supports upgrading one minor version at a time, so going from 1.28 to 1.30 means reading both the 1.29 and 1.30 notes. Look for these sections:
- Urgent upgrade notes, which list changes that need action before you upgrade.
- Deprecations and removals, which you compare against your findings from the detection step.
- Feature gate changes, which can alter default behavior.
Write down each item that applies to your cluster, and mark the rest as not applicable. The list becomes your checklist.
Check the inputs to the plan
Before you schedule anything, confirm these inputs:
- Your control plane, kubelets, and kubectl versions, and that the target respects the skew policy.
- The result of the deprecated API scan from the previous chapter, with every finding fixed or accepted.
- Compatibility of CNI, CSI, ingress controllers, CRDs, and webhooks, covered in the next chapter.
- A recent etcd snapshot and a tested way to restore it.
kubectl version
kubectl get nodes -o wideRehearse in staging
Run the whole procedure in a staging cluster that resembles production. Match the Kubernetes version, the add-ons, the node operating system, and the kinds of workloads. A staging cluster that differs from production hides the failures you most need to find.
During the rehearsal, time each step and record every surprise. The timings feed your maintenance window estimate.
Decide the sequence
The order follows the skew policy. The API server must never be older than the components that talk to it.
In production, the order is:
- Upgrade the control plane nodes, starting with the first one.
- Upgrade add-ons that need a newer version for the new release.
- Upgrade worker nodes in small batches, draining each one first.
- Verify, then repeat for the next minor version if needed.
Never combine two minor versions in one step. Finish and verify one version before starting the next.
Set the window and the stop conditions
Choose a window with low traffic and people available to respond. Define in advance what makes you stop, for example a control plane Pod that does not become ready in a set time, or an error rate above a threshold on a critical service. Decide who can call a rollback. The recovery options are covered in a later chapter.
Exercise
Your cluster runs 1.28 and you want to reach 1.30. Which release notes do you read, and how many upgrade passes do you plan?
Show answer
Read the 1.29 and 1.30 release notes. Plan two separate passes, 1.28 to 1.29 and then 1.29 to 1.30, with verification between them.