How to upgrade Kubernetes clusters managed by Cluster API
For a platform team running workload clusters declared through Cluster API, the upgrade is driven by the management cluster and the machine images, and it moves one minor version at a time. Before any workload cluster changes, confirm that the Cluster API version installed on the management cluster supports the Kubernetes minor version you are targeting. Cluster API does not stretch across arbitrary jumps, so the sequence of minor versions is set by your plan, not by what you would like to reach. This matters because Kubernetes ships about three times per year on a cycle of roughly 14 weeks, and the project maintains only the three most recent minor releases. A cluster left several minors behind will fall out of patch support, and each hop adds API removals and add-on checks that compound.
The sequence follows the Kubernetes version skew policy: kube-apiserver is upgraded first, one minor version at a time, before kube-controller-manager, kube-scheduler and kubelets. Cluster API maps this order onto its objects. The KubeadmControlPlane resource rolls the control plane nodes, and only after the control plane reports the new version do you move the MachineDeployment objects, whose machine images must carry a matching kubeadm and kubelet pair. Infrastructure providers for kubeadm-based clusters expect those images to be prepared in advance, so image build is a prerequisite step, not something the rollout creates. Your image pipeline and the Cluster API release notes are the two documents to read before you choose a target.
Plan the management cluster as its own change. Upgrade Cluster API itself, and its infrastructure provider, only to a release that supports both your current and target workload versions, and test that combination in a non-production environment first. Ask your provider or internal platform owner to confirm which Cluster API releases list each Kubernetes minor version as supported, because that compatibility table is the gate for every later step. The Cluster API upgrade guide sets out the management and workload steps in order, and it is the reference your runbook should cite for each version hop.
What changes in a Cluster API upgrade and what each change requires
This table compares each change a Cluster API upgrade brings with its operational impact and the action your team needs to take before or during the rollout. Read it top to bottom as a checklist: the management cluster and version rules come first, then the component order, then the machine rollout itself. The main takeaway is that the Cluster API version and machine images are prerequisites, and the rollout only replaces machines once both are in place.
| Change | Impact | Action needed |
|---|---|---|
| Cluster API version on the management cluster must support the target Kubernetes version | A workload cluster cannot move to a Kubernetes version that the management cluster's Cluster API release does not support | Confirm the target version against the Cluster API release notes and the upgrade guide before changing anything else |
| Minor versions must be upgraded in sequence | Skipping a minor version is not a supported path, so a cluster several releases behind needs one hop per minor version | Plan each hop as a separate rollout and verify the cluster is healthy before starting the next |
| kube-apiserver is upgraded first, then controller-manager, scheduler and kubelets | Control plane components must follow the version skew order, and the rollout sequence in Cluster API follows it | Set the control plane version in the KubeadmControlPlane object first and let it roll before changing machine deployments |
| Kubelets may be up to three minor versions older than kube-apiserver | Worker machines can lag the control plane during a staged upgrade, but the lag has a limit | Track the kubelet version on each machine deployment and finish worker rollouts before the lag reaches the limit |
| Machine images must carry matching kubeadm and kubelet versions | Cluster API boots new machines from pre-built images, so a stale image installs the old version even when the spec is updated | Build or obtain a machine image for the target version and reference it in the infrastructure template before rolling |
| Control plane and machine deployment rollouts replace machines | Each rollout creates new machines and removes old ones, so workloads are rescheduled and capacity and disruption budgets matter | Confirm spare capacity, pod disruption budgets and rollout surge settings, and watch node drains during the change |
What to prepare before the first rollout
Most failed Cluster API upgrades trace back to preparation gaps rather than the upgrade itself. The six items below cover the management cluster, the templates and images that define each workload cluster, the safety net of backups and a test run, and the workloads that could break at the next API removal.
Confirm the management cluster and Cluster API matrix
Cluster API must support the Kubernetes version you are moving to, and the management cluster has its own upgrade path that must be planned first. Check the Cluster API release notes and compatibility table for the exact pairing of Cluster API, infrastructure provider and target Kubernetes version. Record the current versions of every provider, because a workload cluster cannot be upgraded past what the management components understand. Ask your team to confirm which Cluster API version is installed today and whether it needs its own upgrade before the first hop.
Cluster API upgrade guideInventory templates and custom patches
List every cluster template, ClusterClass definition, KubeadmControlPlane and MachineDeployment object, and every custom patch applied on top of them. Each patch that pins a kubelet flag, a kubeadm setting or a node image reference can silently override the new version during an upgrade. Export the live objects from the management cluster so you compare what is running with what is in Git. Note which clusters share a template, because a single template change can roll out to several clusters at once.
Build images with matching kubeadm and kubelet
For kubeadm-based clusters, the infrastructure provider expects a machine image with kubeadm and kubelet already installed at the target version. Build the image with image-building tooling for your platform, then register it with the infrastructure provider so the machine templates can reference it. Confirm that the kubeadm version matches the control plane version and the kubelet version matches the version your machine deployments will run. Plan who owns image rebuilds for security patches, since each rebuild needs its own test.
Take etcd snapshots before any change
Take an etcd snapshot of every workload cluster control plane with etcdctl snapshot save before the first rollout, and store it outside the cluster. Confirm you can restore it with etcdutl in a test environment, since an unverified backup does not protect a failed upgrade. Check the snapshot size and the certificates used for the etcd endpoint so the backup job does not fail at the moment you need it. Record who can run the restore and how long your team expects a restore to take, using measurements from your own environment.
Operating etcd clustersRehearse on a non-production cluster
Create a workload cluster from the same templates, images and patches as production, then run the full upgrade sequence on it. The rehearsal shows whether the management cluster, the custom patches and the new image behave as the templates predict. Use a cluster with similar node counts and the same add-ons, such as CNI, storage and ingress, because those components often block a rollout. Record every manual step, every warning and the time each machine rollout took so the production runbook reflects what actually happened.
Check deprecated APIs before each hop
Scan the workload clusters and Git repositories for objects that use APIs removed or deprecated in the Kubernetes version you are moving to, including Cluster API resources that reference older API versions. Remove or convert them before the management cluster moves, because a removed API can stop reconciliation mid-rollout. Check Helm charts and operators in the cluster as well, since they often apply older manifests on each sync. Repeat the check at every minor version in the path, not only at the final target.
How Cluster API rolls control planes and machine deployments
Cluster API upgrades a workload cluster by replacing its machines, not by patching packages in place. The management cluster holds the Cluster API controllers and the objects that describe each workload cluster, including the Cluster object, a KubeadmControlPlane for the control plane and one or more MachineDeployment objects for worker pools. When you change the Kubernetes version or the machine image reference in those objects, the controllers create new machines from the new image, join them to the cluster, and delete the old ones. The image is the upgrade unit, which is why the kubeadm and kubelet versions baked into each image must match the target release before any rollout starts.
The control plane rolls first and needs the most care. A KubeadmControlPlane replaces one control plane machine at a time, so each replacement removes an etcd member and adds a new one. Confirm that the control plane runs at least three nodes and that a TCP load balancer forwards port 6443 to the kube-apiserver endpoints, as the kubeadm high availability guide describes. Before each replacement, check etcd member health and quorum, and confirm that the cluster can lose one member at a time without losing quorum. Look at the rollout in the KubeadmControlPlane status and in the etcd member list, and do not advance to the next machine while either shows a degraded member. The etcd backup plan should be verified before the first replacement, not after a failure.
Worker MachineDeployment rollouts follow the control plane, consistent with the version skew policy that lets kubelets trail kube-apiserver. Your decisions here are the rollout strategy settings, such as how many machines may be unavailable at once, and whether workloads have PodDisruptionBudget objects that let drains proceed without taking down a service. Ask your team or partner to show, for a test cluster, how a stuck drain or a failed new machine is detected and rolled back. Illustrative example: if a worker machine fails to join with the new image, the deployment should pause rather than remove more old machines, and an operator should find that state in the MachineDeployment and Machine status before the rollout continues.
How the management cluster, images and workload clusters move through one upgrade hop
The hop starts on the management cluster, where you confirm that the installed Cluster API version supports the target Kubernetes minor version. If it does not, upgrade Cluster API first. Next, build a machine image with kubeadm and kubelet at the target version, since infrastructure providers use that image for new machines. Then roll the control plane and the machine deployments in that order. Finish with a validation gate before you start the next minor version.
One upgrade hop across the management cluster, machine images and workload cluster.
Upgrade sequence for one minor version
This sequence moves one Cluster API workload cluster through a single Kubernetes minor version with a verified checkpoint at each stage. It keeps the management cluster, machine images and manifests in a state you can roll back to before anyone starts the next hop.
Confirm Cluster API supports the target version
Before touching anything, check the Cluster API release running on the management cluster against the Kubernetes version you plan to reach. Cluster API documents which Kubernetes versions each release supports, so confirm that entry in the upstream release notes and compatibility documentation rather than relying on memory. Minor versions must be crossed in sequence, so the target should be the next minor version only. Checkpoint: a written note in the change record naming the Cluster API version, the target Kubernetes version and the source you checked, with the decision to proceed or to upgrade Cluster API first.
Back up etcd and management cluster state
Take an etcd snapshot of the workload cluster's control plane using etcdctl snapshot save, and confirm the file is readable with a status check. Export the Cluster API objects on the management cluster, including the Cluster, KubeadmControlPlane, MachineDeployment, MachineSet and infrastructure template resources, so the current topology can be reconstructed. Store both copies outside the clusters they protect. Checkpoint: a snapshot file, an exported manifest set and a restore test plan that the on-call engineer has read, with the storage location recorded.
Build and register the new machine image
For kubeadm-based clusters, the infrastructure provider needs an image with kubeadm and kubelet pre-installed at the exact target version. Build the image with your standard image pipeline, pinning the packages to the target minor and patch version, and scan it under your normal policy. Register it with the infrastructure provider and update the machine template so new machines reference it. Checkpoint: the image ID, the installed kubeadm and kubelet versions confirmed on a test boot, and the template change committed to version control.
Upgrade Cluster API on the management cluster when required
If the check in the first step showed that the current Cluster API release does not support the target version, upgrade the management cluster's Cluster API components first and leave workload clusters untouched until the management cluster is stable. Follow the upgrade procedure in the Cluster API documentation for your provider versions, and verify that the controllers report healthy and that existing clusters are still reconciled without changes. Checkpoint: controller pods running, no new reconcile errors in the logs, and existing workload clusters showing no unexpected drift.
Update the topology version and roll the control plane
Set the Kubernetes version in the cluster topology or KubeadmControlPlane spec to the target minor version and point the machine template at the new image. Cluster API replaces control plane machines one at a time, so watch each replacement finish before the next begins. The version skew policy requires kube-apiserver to move first, so the control plane rolls before any machine deployment. Checkpoint: all control plane machines report the target version, the API server responds through the load balancer and etcd reports healthy members.
Roll machine deployments
Update each MachineDeployment to the same Kubernetes version and new machine template, one deployment at a time so that a problem stays contained to one pool. Cluster API drains each node and replaces it with a machine built from the new image. Confirm that workloads with disruption budgets are rescheduled as expected and that stateful workloads reattach their volumes. Checkpoint: every node reports the target kubelet version, no nodes are cordoned, and the pods that were running before the roll are back in the Running state.
Run checks after each stage
After the control plane and after each machine deployment, run the same check set: node readiness, system pods in kube-system, the API server health endpoints, DNS resolution from a test pod, and a sample of application health probes. Compare the results with the baseline you recorded before the upgrade. Record the outcome in the change record so that any regression has a clear starting stage. Checkpoint: a signed-off check sheet for each stage, with failed checks linked to a decision to continue, pause or roll back.
Define the rollback point and stop before the next hop
Keep the previous machine image, the previous manifests and the etcd snapshot until the cluster has run stably for the period your change policy sets. Rolling back a control plane change means restoring the previous topology version and image and then replacing machines again, so the rollback path must be tested on a non-production cluster first. Do not begin the next minor version until this one is accepted and the rollback artifacts are archived. Checkpoint: a written acceptance record, the archived artifacts with their locations, and an explicit go or no-go decision for the next minor version.
How the upgrade differs by infrastructure provider
Cloud infrastructure providers for Cluster API typically replace machines by creating new instances from a machine image, so the image pipeline is the main variable. Your team must make sure the image referenced by each machine template already contains kubeadm and kubelet at the target version. Scaling and replacement behavior, instance quotas and load balancer handling for the control plane endpoint also vary by provider, and they affect how long a rolling update takes.
- Image references: Confirm how the provider selects the image for a new machine template and whether old and new templates can coexist during a rollout.
- Quota headroom: Rolling updates usually create replacement machines before old ones are removed, so check instance and address quotas in each zone.
- Control plane endpoint: Confirm how the provider manages the load balancer or endpoint in front of kube-apiserver on port 6443.
- Node identity and storage: Check how root volumes, instance metadata and attached disks are handled when a machine is replaced.
- Provider release pairing: Confirm which infrastructure provider release supports your Cluster API version and target Kubernetes version.
Confirm every provider-specific behavior with the provider's own Cluster API documentation before the first upgrade in that environment.
Bare metal and VMware environments usually rely on a provider that provisions machines from pre-built images, a pool of hosts or a hypervisor template. Replacement is slower and more dependent on physical capacity, because a host must be freed, reimaged or cloned before the new machine joins. Image building and boot media distribution are often separate tasks owned by the infrastructure team, so the handoff needs a written process.
- Capacity for replacement: Confirm there are spare hosts or enough hypervisor resources to start a new control plane node before an old one is removed.
- Image build and distribution: Confirm who builds the image with matching kubeadm and kubelet, and how it reaches hypervisor templates or host provisioning.
- Host lifecycle: Check how the provider reimages a host, clears old node state and reattaches storage.
- Hypervisor and firmware dependencies: Verify that drivers and guest tools in the image are supported on your hypervisor or server generation.
- Rollback path: Decide whether an old template or image stays available until the upgrade is verified.
Confirm the provider's supported host and hypervisor versions and its replacement behavior with its documentation before scheduling the upgrade.
In an air-gapped network, nodes cannot pull control plane images or packages from public sources during an upgrade. kubeadm supports this model: kubeadm config images list and kubeadm config images pull identify and fetch the control plane images, and --image-repository on kubeadm init points at a private registry. The same mirror must hold the target version images before any Cluster API machine is created, since a machine that cannot pull its images will fail to join.
- Image mirror completeness: Mirror the control plane, pause and etcd images for the target version, then verify them with
kubeadm config images list. - Machine image contents: Build the machine image with the kubeadm and kubelet packages already installed, so new nodes do not need public package repositories.
- Private package mirror: Host the operating system and Kubernetes package repositories internally and pin the target versions.
- Provider access: Confirm that the infrastructure provider and Cluster API controllers can reach your internal endpoints without public egress.
- Transfer process: Define how new images and packages cross the air gap, who approves them and how their checksums are verified.
Confirm your provider's registry and image settings with its documentation and test the full image set on a staging cluster first.
What makes a Cluster API upgrade take longer
This table lists the factors that stretch a Cluster API upgrade and what each one changes in the work. Read it before estimating effort, since most rows add time per cluster, per hop or per template, so the total grows multiplicatively when several apply at once.
| Driver | Effect on effort | What to check |
|---|---|---|
| Number of workload clusters | Each cluster repeats the control plane and machine deployment rollout, so effort grows with fleet size and sequencing across clusters. | Inventory every workload cluster, its Kubernetes version, and whether they share templates or images. |
| Number of minor hops from the current version | Minor versions must be upgraded in sequence, so each skipped-over release adds a full upgrade cycle with its own checks. | Confirm the current minor version and the path to the target, and whether the Cluster API release supports each step. |
| Custom cluster templates and patches | Hand-edited templates and patches must be reviewed against new Cluster API and provider fields, and drift between clusters adds rework. | Count template variants and patch sets, and check whether they are kept in version control. |
| Custom machine images and image pipelines | Kubeadm-based clusters need images with matching pre-installed kubeadm and kubelet versions, so each target version may require a new image build and test. | Confirm who builds the images, how long the pipeline takes, and whether it works without internet access. |
| Add-ons and CNI compatibility | Add-ons, the CNI plugin and CSI drivers may each need a version change before or after the control plane moves, which adds test cycles. | List each add-on and its supported Kubernetes range, and confirm the order of upgrades with each vendor. |
| Deprecated API usage in manifests | Manifests, Helm charts and cluster templates that use removed APIs block the upgrade until they are migrated. | Scan templates, workloads and charts for deprecated APIs before the first hop, not during it. |
| etcd size and backup method | Larger etcd data slows snapshots and makes rollback slower, and a missing tested backup forces a more cautious rollout. | Measure the etcd database size, confirm snapshots use etcdctl, and test a restore on a non-production cluster. |
| Workload disruption budgets | Tight PodDisruptionBudgets or single-replica workloads slow node drains and extend each machine rollout. | Review PodDisruptionBudgets and replica counts, and agree maintenance windows with application owners. |
Questions teams ask before upgrading Cluster API clusters
How much effort and cost does a Cluster API Kubernetes upgrade involve?
The effort depends on how many minor versions you cross, how many workload clusters you run, and how much of the image and rollout process already exists. Each minor version needs its own machine image build, a control plane rollout, and machine deployment rollouts, so cost grows with each hop. Costs fall into two groups: one-time work such as building the image pipeline, writing runbooks and testing in a non-production cluster, and recurring work such as repeating the cycle for each release, which arrives about three times per year. Ask any partner for a fixed-scope quote that lists the clusters, the version path, the image pipeline work, the test environment and the handover. No price is estimated here.
How long does a Cluster API upgrade take, and what sets the duration?
Duration is set by the number of clusters, the number of minor versions to cross, the size of each control plane and node pool, and how many change windows your organization allows. Kubernetes minor releases arrive about every 14 weeks, so a team that falls behind adds more hops to every later upgrade. Other factors include how long your image build and approval steps take, how many workloads need a drain and recovery check, and whether the management cluster must be upgraded first. Ask for a schedule that shows each hop as a separate gate with its own validation window, rather than a single date for the whole path.
What does the upgrade need from our team before work starts?
The work needs named owners and access in four areas:
- Management cluster access with rights to edit Cluster API objects, such as
Cluster,KubeadmControlPlaneandMachineDeploymentresources, and to view their status. - Infrastructure provider credentials and access to the cloud, VMware or bare-metal APIs used to create machines.
- An image pipeline that can build machine images with matching kubeadm and kubelet versions and publish them where the provider can reach them.
- Change windows, a rollback owner and a business contact who can accept or stop each hop.
Without these in place, the engagement stalls at the first image or approval step.
Can our own team upgrade Cluster API clusters without outside help?
Yes, a team can do it alone if it has working knowledge of Kubernetes upgrades, Cluster API objects and the infrastructure provider it uses. The required skills include reading version skew rules, managing kubeadm and kubelet packages, building machine images, interpreting rollout status, and restoring etcd from a snapshot if a control plane fails. Teams often need outside help when they have no image pipeline, when many clusters share one management cluster, or when workloads have strict availability needs. Check the team's skills against each hop before deciding, and confirm the etcd backup and restore steps with the platform documentation for your setup.
Can a Cluster API upgrade skip minor versions to reach the target faster?
No. Cluster API requires Kubernetes minor versions to be upgraded in sequence, so each intermediate minor version must be run and validated before moving to the next. The Kubernetes version skew policy also requires the kube-apiserver to move one minor version at a time, with control plane components before kubelets. Before starting, check that the installed Cluster API version supports each target version in the path, and plan a separate validation step at every hop. Skipping a hop is not a faster route; it creates an unsupported state that is harder to recover from.
How do we validate each step and roll back safely?
Validate each hop before the next one starts. Check that the management cluster and Cluster API version support the target, confirm the new machine image boots and joins, and verify that control plane and node pool rollouts finish with healthy nodes and no failed machines. Run your workload smoke tests and confirm that critical pods are scheduled and serving. Take an etcd snapshot with etcdctl snapshot save before each control plane change and record how to restore it with etcdutl. Rollback is more reliable when the previous machine image stays available and the team has rehearsed the restore in a non-production cluster. Confirm the exact rollback path with your provider and Cluster API version, since it depends on the change made.
What does DeployOpen do for a Cluster API upgrade, and how is scope agreed?
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure, including Kubernetes clusters managed by Cluster API. For an upgrade, the work can include checking the management cluster version against the target, building machine images with matching kubeadm and kubelet versions, running the control plane and machine deployment rollouts, validating each hop, and upgrading Cluster API itself. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing upgrades and testing are available as retainers. Ask for the version path, cluster list and validation criteria to be written into the scope.
How to test an upgrade and roll back if a rollout fails
Test every Cluster API upgrade on a staging workload cluster whose machine templates, machine images and add-ons mirror production. The goal is to run the same sequence you plan for production: management cluster check, new machine image, control plane rollout, then MachineDeployment rollouts. Keep the staging cluster's Kubernetes version and Cluster API version on the same path as production so that a failure there tells you something about production. Confirm with your infrastructure provider and Cluster API infrastructure provider how they expose images and templates in staging, and whether the staging environment can be recreated from the same definitions in version control.
After each stage, run two kinds of checks. Conformance checks confirm that the cluster still serves the APIs your workloads depend on, and smoke checks confirm that representative applications schedule, pull images, resolve DNS, reach their dependencies and pass their health probes. During each rollout, watch node readiness and the Machine objects in the cluster, and when the control plane is managed by kubeadm, watch etcd member health and leader stability as control plane machines are replaced. Treat a stalled Machine or a node that does not return to Ready as a stop condition, not a retry. Keep the previous machine image, its template and the matching KubeadmControlPlane and MachineDeployment specs available in version control until the upgrade is accepted.
Rollback is realistic only for the parts of the upgrade that Cluster API replaces by rolling forward through machines. Reverting a MachineDeployment to a previous image and template can replace worker nodes again, but it cannot undo a Kubernetes control plane minor version that has already been stored in etcd, and Kubernetes does not support downgrading the control plane. Confirm with your provider whether a previous image can still be used to build replacement nodes once the new version has run, and whether your Cluster API release can still manage the older version. Where control plane state or data is damaged, the only path is a restore from an etcd snapshot taken before the upgrade, using the documented snapshot and restore procedure. Verify that snapshot restores in staging before production, and record who authorizes that restore.
How DeployOpen scopes and delivers Cluster API upgrades
DeployOpen plans, implements, tests, documents and supports self-hosted open-source platforms inside your own infrastructure, including Kubernetes clusters managed by Cluster API. For upgrades, we start from the management cluster's compatibility with the target version and work through each minor version in sequence, with written scope and handover before any production change.
How we scope
- We confirm the Cluster API version on your management cluster against the target Kubernetes version before any work is quoted.
- The written scope lists each workload cluster, each hop in the minor version path, and the machine images and providers involved.
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, and a quote follows from that scope.
How we build
- We build machine images with kubeadm and kubelet versions that match each target release, inside your build pipeline and registry.
- We test a rolling control plane and machine deployment upgrade in a non-production cluster that mirrors your production configuration.
- We check etcd snapshots, workload disruption settings and add-on compatibility at every step before the next minor version starts.
How we hand over
- You receive the upgrade runbook, rollback steps and the image build procedure, written for your own operators to repeat.
- Your team runs at least one supervised upgrade with us so the sequence, checks and approvals are familiar before handover.
- Documentation records the versions, providers, images and verification results used for each cluster, for your change records.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers for clusters that need regular minor version moves.
- Retainer work can cover the next Cluster API release check, image rebuilds and reviews of new Kubernetes minor versions against your clusters.
- Confirm the support hours, response expectations and change approval process in the written scope before you sign.

