Upgrading Clusters on VMware vSphere
This document explains how to upgrade Kubernetes clusters on VMware vSphere after the platform-side distribution upgrade is complete. The documented workflow focuses on updating the control plane and worker nodes through Cluster API resources.
Upgrade Sequence
Upgrade VMware vSphere clusters in the following order:
- Complete the distribution-version upgrade described in Upgrading Clusters.
- Verify that the control plane is healthy and the current cluster is stable.
- Upgrade the control plane Kubernetes version.
- Upgrade worker nodes to the target Kubernetes version.
Prerequisites
Before you begin, ensure the following conditions are met:
- The distribution-version upgrade is complete.
- The control plane is healthy and reachable.
- All nodes are in the
Readystate. - The target VM template is compatible with the target Kubernetes version.
- The CAPV static allocation pools have enough capacity for rolling updates.
Steps
Prepare the target templates and versions
Before you start the rolling upgrade, review the current worker and control plane manifests and prepare the target values:
- The target Kubernetes version
- The target VM template name
- The target image tags required by kubeadm
- Any worker or control plane sizing changes that must be rolled out together with the version upgrade
Upgrade the control plane
Update the control plane manifest used by KubeadmControlPlane.
Typical changes include:
- Updating
spec.versioninKubeadmControlPlane - Updating
spec.template.spec.templateinVSphereMachineTemplateif a new VM template is required - Updating related image tags such as
dns.imageTagandetcd.local.imageTagwhen the target release requires them
Apply the updated control plane manifest:
Monitor the control plane rollout:
Upgrade the worker nodes
After the control plane upgrade completes, update the worker manifests.
Typical changes include:
- Updating
spec.template.spec.versioninMachineDeployment - Updating the referenced
VSphereMachineTemplateif a new worker VM template is required - Updating the referenced
KubeadmConfigTemplateif bootstrap settings must change
Apply the updated worker manifest:
Monitor the worker rollout:
Verification
Confirm the following results after the upgrade:
KubeadmControlPlanereaches the target version and desired replica count.MachineDeploymentreaches the target version and desired replica count.- Control plane and worker nodes return to the
Readystate. - The vSphere CPI daemonset remains available in the workload cluster.
Next Steps
After the Kubernetes upgrade is complete, continue with routine node operations in Managing Nodes on VMware vSphere.