12 Steps for Kubernetes Upgrades Without Downtime

Upgrade Kubernetes without downtime in 12 steps: version skew, deprecated APIs, etcd backup, PDBs, kubeadm upgrade, node pool swaps and rollback plans.

Dec 24, 2025 - 16:25
Nov 9, 2026 - 08:47
 0  80
12 Steps for Kubernetes Upgrades Without Downtime

To upgrade Kubernetes without downtime, upgrade one minor version at a time, control plane first, then nodes; respect the version skew policy; remove deprecated APIs before you start; and make workloads disruption-tolerant with multiple replicas, PodDisruptionBudgets and readiness probes. Nodes are then drained in small batches or replaced through a new node pool, with a tested rollback plan.

This guide covers the full upgrade project, from planning to verification. The node-level mechanics (cordon, drain, PDB behaviour during maintenance) have their own guide: Kubernetes node maintenance tips. Application rollouts, which are a different problem, are covered in Kubernetes rollout strategies.

Key takeaways

  • Kubernetes releases about three minor versions a year, and each minor version gets roughly 14 months of patch support (12 months plus a two-month upgrade window), per the Kubernetes releases page.
  • Upgrade control planes one minor version at a time. You cannot jump from 1.31 to 1.33 directly with kubeadm.
  • The version skew policy allows kubelets to be up to three minor versions older than the API server (since v1.28), which gives node upgrades breathing room.
  • Deprecated API removal is the most common upgrade-day failure. Scan manifests and Helm releases first.
  • Zero downtime is a property of your workloads: replicas, PDBs, probes, graceful shutdown and spread across nodes and zones.
  • Managed services (EKS, AKS, GKE) handle the control plane, but node upgrades and API removals are still your job.

Upgrade order at a glance

OrderComponentRule
1etcd backupSnapshot before touching anything (self-managed clusters)
2kube-apiserverUpgrade first; in HA clusters, one instance at a time
3kube-controller-manager, kube-schedulerMust not be newer than the API server; may be one minor older
4Add-ons (CNI, CoreDNS, kube-proxy, CSI drivers)Check each project's compatibility matrix
5kubelet on worker nodesMay be up to three minor versions older than the API server
6kubectl clientsWithin one minor version of the API server

Source: Kubernetes version skew policy.

12 steps for Kubernetes upgrades without downtime

1. Read the changelog and upgrade notes for the target version

Each release has a changelog with "urgent upgrade notes", deprecations and removals. Read the notes for every minor version between where you are and where you are going. Note feature gates that change default, flags that are removed and API versions that stop being served.

2. Find and replace deprecated APIs

When an API version is removed, the API server stops accepting manifests that use it. Helm releases and CI pipelines that still send the old version will fail after the upgrade. The deprecated API migration guide lists removals per version.

Check the API server metric apiserver_requested_deprecated_apis to see which deprecated APIs clients still call, and scan your repositories with a tool such as Fairwinds Pluto. The kubectl convert plugin rewrites manifests to newer API versions.

kubectl get --raw /metrics | grep apiserver_requested_deprecated_apis

3. Check add-on and tool compatibility

Your CNI plugin, ingress or gateway controller, CSI drivers, service mesh, cert-manager, monitoring agents and operators each support specific Kubernetes versions. List them, look up each compatibility matrix and upgrade any that would block the target version. This step often takes longer than the cluster upgrade itself.

4. Back up cluster state

For self-managed clusters, take an etcd snapshot. Back up namespaced resources and persistent volumes with a tool such as Velero so you can restore applications to a new cluster if needed. Our list of Kubernetes backup tools compares options.

ETCDCTL_API=3 etcdctl snapshot save /backup/etcd-$(date +%F).db \
  --endpoints=https://127.0.0.1:2379 \
  --cacert=/etc/kubernetes/pki/etcd/ca.crt \
  --cert=/etc/kubernetes/pki/etcd/server.crt \
  --key=/etc/kubernetes/pki/etcd/server.key

5. Make workloads disruption-tolerant

Node upgrades evict pods. A workload survives this without user impact only if:

  • It runs at least two replicas, spread across nodes and ideally zones with topologySpreadConstraints or pod anti-affinity.
  • It has a readiness probe so traffic goes only to ready pods. See Kubernetes health checks.
  • It handles SIGTERM and finishes in-flight requests within terminationGracePeriodSeconds. A short preStop sleep gives load balancers time to remove the endpoint.
  • It has a PodDisruptionBudget.
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: web-pdb
spec:
  maxUnavailable: 1
  selector:
    matchLabels:
      app: web

A PDB that allows zero disruptions (for example minAvailable equal to the replica count) blocks drains forever. Audit PDBs before the upgrade window.

6. Rehearse on a staging cluster

Run the exact upgrade steps on a non-production cluster with the same add-ons and representative workloads. Time each step and run your smoke tests afterwards. A rehearsal finds the add-on that breaks or the PDB that blocks drains before production does.

7. Upgrade the control plane

On kubeadm clusters, upgrade one control plane node first, then the others. Kubernetes packages are published in per-minor-version repositories at pkgs.k8s.io, so update the repository definition to the target minor version before installing the new kubeadm.

# on the first control plane node, after installing the new kubeadm
sudo kubeadm upgrade plan
sudo kubeadm upgrade apply v1.34.x

# on the other control plane nodes
sudo kubeadm upgrade node

Replace v1.34.x with the exact patch version shown by kubeadm upgrade plan. The full procedure is in the kubeadm upgrade guide. In an HA control plane, the API stays available while each instance is upgraded in turn. On EKS, AKS and GKE, the provider upgrades the control plane when you trigger it.

8. Choose in-place or node pool replacement for workers

ApproachHow it worksBest when
In-place rollingDrain a node, upgrade kubelet and kubeadm, uncordon, repeatBare metal or fixed node counts
Surge rolling (managed)Provider adds new nodes, drains old ones in batchesManaged node groups with spare quota
Blue/green node poolsCreate a new pool on the new version, move workloads, delete the old poolCloud clusters wanting an easy rollback path

Blue/green node pools give the cleanest rollback: until the old pool is deleted, you can uncordon it and move pods back.

9. Drain in small batches and watch

For in-place upgrades, drain one node (or one small batch) at a time:

kubectl drain node-1 --ignore-daemonsets --delete-emptydir-data
# upgrade kubeadm and kubelet packages on node-1, then:
sudo kubeadm upgrade node
sudo systemctl daemon-reload && sudo systemctl restart kubelet
kubectl uncordon node-1

kubectl drain uses the eviction API, so it respects PDBs. Between batches, check that pods rescheduled and became ready, and watch error rates and latency on your dashboards.

10. Plan for stateful workloads separately

Databases, queues and other StatefulSets need extra care. Confirm volumes can attach in the zone where pods will land, check the operator's upgrade guidance, and drain nodes hosting primaries last, or fail over primaries deliberately first. Our comparison of StatefulSets and Deployments explains why their pods behave differently during eviction.

11. Verify after each phase

After the control plane and after each node batch, check:

  • kubectl get nodes shows the expected versions and all nodes Ready.
  • System pods in kube-system and add-on namespaces are running.
  • Smoke tests pass: DNS resolution, service-to-service calls, ingress traffic, volume mounts.
  • No spike in 5xx errors, restarts or latency.

12. Keep a rollback plan and stay current

Upstream Kubernetes does not support downgrading a kubeadm control plane in place. Amazon EKS is an exception: it lets you roll a cluster back to the previous minor version within 7 days of an upgrade (see the EKS update guide). Otherwise your rollback options are restoring from etcd backup (self-managed) or moving workloads to the old node pool or a standby cluster. Write down which applies before you start. Then schedule upgrades regularly: falling several versions behind means several sequential upgrades and more API removals at once. Managed providers also charge for or limit extended support on old versions, so check your provider's policy.

Pre-upgrade checklist

CheckHowDone when
Target version chosenReleases page and changelogOne minor version above current, latest patch
Deprecated APIs removedMetric, Pluto scan, Helm release manifestsNo calls to APIs removed in the target
Add-ons compatibleEach project's matrixCNI, CSI, ingress, mesh, operators support target
Backups takenetcd snapshot, Velero backupRestore tested at least once
Workloads tolerantReplicas, PDBs, probes, spreadNo single-replica critical services
Capacity headroomNode utilisationRoom to reschedule one batch of nodes
CommunicationChange ticket, status channelWindow and rollback owner agreed

Finding single points of failure before the window

Most "downtime during upgrade" stories come from a workload that was fragile before the upgrade started. A few quick queries find the usual suspects.

# Deployments running a single replica
kubectl get deploy -A -o jsonpath='{range .items[?(@.spec.replicas==1)]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'

# PDBs that currently allow zero disruptions
kubectl get pdb -A -o jsonpath='{range .items[?(@.status.disruptionsAllowed==0)]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'

# Pods not managed by a controller (these are deleted, not rescheduled, on drain)
kubectl get pods -A -o jsonpath='{range .items[?([email protected])]}{.metadata.namespace}/{.metadata.name}{"\n"}{end}'

Fix these first: raise replicas, relax PDBs that block all evictions, and move bare pods under a Deployment or Job. Also check for pods using local storage such as emptyDir, whose data is lost when the pod moves.

Communicating the upgrade

Even a zero-downtime upgrade deserves a change record. Share the window, the target version, the rollback owner and the dashboards being watched. Ask application teams to avoid deployments during the window so a failing release is not confused with an upgrade problem. After the upgrade, post the result and any follow-up items, such as add-ons that need their own upgrade next.

Managed Kubernetes notes

Managed services take over the control plane, but the planning steps above still apply. Each provider adds its own tools and rules.

ServiceControl planeNodesWorth knowing
Amazon EKSYou trigger the upgrade, one minor version at a timeManaged node groups roll nodes; EKS Auto Mode updates nodes after the control plane and respects PDBsRollback to the previous minor within 7 days
Azure AKSManual, or auto-upgrade channels: none, patch, stable, rapidNode pools upgrade with configurable max surgePlatform-initiated upgrades of unsupported clusters from 1 June 2027
Google GKERelease channels upgrade automatically, with maintenance windows and exclusionsSurge (default) or blue-green node pool upgrades; autoscaled blue-green is in previewBlue-green keeps old nodes for rollback during validation

Amazon EKS

EKS cluster insights scan for upgrade blockers such as deprecated API usage, and AWS recommends reviewing upgrade insights before every version change. The insight for deprecated APIs looks back over a rolling 30-day window, so a fixed client may still show up for a while. EKS needs up to five free IP addresses in the cluster subnets to replace API server instances, so check subnet capacity first. Before upgrading the control plane, AWS recommends that managed and Fargate nodes run the same minor version as the control plane. After the control plane upgrade, update the VPC CNI, CoreDNS and kube-proxy add-ons, and the Cluster Autoscaler image if you run it. The same 7-day rollback window covers EKS Auto Mode, where EKS rolls back worker nodes before reverting the control plane. Source: EKS: Update existing cluster to new Kubernetes version.

aws eks update-cluster-version --name my-cluster   --kubernetes-version 1.34 --region ap-south-1

Azure AKS

AKS auto-upgrade upgrades the control plane first, then node pools one by one. The stable channel moves clusters to the latest patch on minor version N-1, and Microsoft recommends pairing it with a planned maintenance window of four hours or more. Microsoft's documentation also states that, starting 1 June 2027, AKS will automatically upgrade clusters that stay on an unsupported version after a 60-day grace period, and those platform-initiated upgrades do not follow maintenance windows, do not stop for deprecated API usage and can override a blocking PDB. Staying current is the way to avoid that. Source: AKS: Automatically upgrade a cluster.

az aks update --resource-group my-rg --name my-aks   --auto-upgrade-channel stable

Google GKE

GKE node pools use surge upgrades by default, which replace nodes in a rolling window. Blue-green upgrades create a new set of nodes, keep the old ones available for rollback while you validate, then remove them. An autoscaled blue-green variant that delays draining the old nodes is in preview. Source: GKE node pool upgrade strategies.

Practise upgrades hands-on

Cluster upgrades with kubeadm and etcd backup are part of the CKA exam curriculum. Our CKA training in Pune (Kharadi classroom or live online) includes upgrade labs. For more deployment patterns, read 14 Kubernetes deployment strategies.

Frequently asked questions

Can you upgrade Kubernetes without downtime?

Yes, if the control plane is highly available and workloads run multiple replicas with PodDisruptionBudgets, readiness probes and graceful shutdown. Nodes are then upgraded in small batches.

Can I skip Kubernetes minor versions when upgrading?

No for the control plane. Upgrade one minor version at a time. Kubelets can lag the API server by up to three minor versions, so nodes can sometimes catch up in fewer steps.

What should be upgraded first, control plane or nodes?

The control plane. kubelets must never be newer than the API server.

How do I find deprecated APIs before upgrading?

Read the deprecated API migration guide, check the apiserver_requested_deprecated_apis metric and scan manifests and Helm releases with a tool such as Pluto.

Why is my node drain stuck during an upgrade?

Usually a PodDisruptionBudget allows zero disruptions, or a pod has no controller. Fix the PDB or the workload rather than forcing the drain.

Can Kubernetes be downgraded after an upgrade?

Upstream kubeadm control planes cannot be downgraded in place; plan rollback through etcd restore, a retained old node pool or a standby cluster. Amazon EKS allows rollback to the previous minor version within 7 days.

How often should I upgrade Kubernetes?

Often enough to stay on a supported minor version. Each minor version gets about 14 months of patches, and new minors arrive roughly three times a year.

References

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.