CertGrid CertGrid
Hands-on Lab·Certified Kubernetes Security Specialist

Upgrading Kubernetes to Patch Vulnerabilities

"Upgrade Kubernetes to avoid vulnerabilities" is a competency and a task you can be handed, and it is the one place where getting the order wrong turns maintenance into an outage. This guide upgrades a live cluster, verifies the control plane and the node separately, and shows why the version in `kubectl get nodes` is the one that tells you whether you finished.

Cluster Hardening Guide 13 of 40 Advanced

Written against the versions above. Run on cka8001, the single-node cluster this path uses for anything that touches the control plane. kubeadm and kubelet binaries were backed up to /root before being replaced.

Every command on this page ran on cka8001.
Server NameIP AddressOSRolesCPURAMHDD
CKA8001192.168.0.56Ubuntu 26.04 LTSSingle Node (control plane, untainted)2 Core4 GB50 GB

Before you start

  1. Where the cluster is before anything is touched

  2. The plan, which is a read-only command

  3. Upgrade the kubeadm binary, verified first

  4. Upgrade the control plane, and read what it did not do

  5. Take the node out of service, then replace the kubelet

  6. Wait for it, check every layer, and put it back

Official sources