Operate and shipLesson 7 of 10
- Metrics, logs, events and traces, not reconciled
- Horizontal pod autoscaling, not reconciled
- Right-sizing and in-place resize, not reconciled
- A troubleshooting method, not reconciled
- kubectl debug and ephemeral containers, not reconciled
- Debugging from the node: crictl, journalctl and nsenter, not reconciled
- Upgrades and version skew, not reconciled
- etcd, backup and disaster recovery, not reconciled
- GitOps with Argo CD, not reconciled
- Progressive delivery, not reconciled
Upgrades and version skew
Kubernetes ships three minors a year and patches each for about 14 months, so every cluster upgrades often. The skew policy fixes the order, and deprecated APIs and node drains decide whether an upgrade is boring.
Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.
A Kubernetes cluster is never finished. Every minor release adds APIs, deprecates others and changes defaults, and every release line stops receiving security fixes about fourteen months after it ships. A cluster that is not upgraded falls out of support within a year and a bit. This lesson covers what the project promises about versions, the order those promises force on an upgrade, and the three things that make upgrades fail in practice: API removals, node drains and changed defaults.
Reconcile, in 7 scenes
Cadence and support
Kubernetes versions read major.minor.patch. Minor releases carry features, deprecations and removals; patch releases carry bug and security fixes only. Since 1.22 the project ships about three minor releases a year, each on a cycle of roughly fifteen weeks. Patch releases come roughly monthly.
The project maintains release branches for the three most recent minors. When 1.37 was the newest minor, that meant 1.37, 1.36 and 1.35. Each minor gets about 14 months of patches: twelve months of standard support, then two months of maintenance modeThe last two months of a release line’s support, when release managers ship only fixes for CVEs, dependency and base-image issues, and critical core bugs., then end of life. 1.34, for example, entered maintenance mode on 2026-08-27 and reached end of life on 2026-10-27.
Put those numbers together: three new minors a year and three supported branches mean a cluster has to advance about three minors a year to stay supported. Some teams follow the release train, one minor every four months; others batch the minors into one or two upgrade windows a year, still one minor at a time. The version skew policy recommends reaching the newest patch of your current minor before you move, then going to the newest patch of the target minor, so you carry as many regression fixes as possible through the change.
The skew policy
A cluster is never all one version during an upgrade. Components restart one at a time, so for minutes or days old and new binaries talk to each other. The version skew policyThe upstream rules for how far apart in minor version each Kubernetes component may be from kube-apiserver and from each other. says which combinations are tested and supported. Every rule is measured against kube-apiserver:
| Component | Allowed skew against kube-apiserver |
|---|---|
| Other kube-apiserver instances (HA) | Newest and oldest within one minor |
| kube-controller-manager, kube-scheduler, cloud-controller-manager | Never newer; may be one minor older |
| kubelet | Never newer; may be up to three minors older |
| kube-proxy | Never newer; up to three minors older, and within three minors of the kubelet beside it |
| kubectl | One minor older or newer |
The asymmetry has one cause. A newer API server still serves the API versions and fields that older clients use, because the deprecation policy makes it keep them for a while. An older API server has never heard of fields a newer client sends: it drops them, or rejects the request under strict field validation. So the server goes first and clients follow. The kubelet gets the widest window because nodes are the most expensive part to touch: a three-minor window means you can upgrade the control plane on the release train and roll nodes less often.
kx is a single-version cluster, so every column agrees:
kubectl version
Client Version: v1.37.0 Kustomize Version: v5.8.1 Server Version: v1.37.0
kubectl get nodes -o custom-columns=NAME:.metadata.name,KUBELET:.status.nodeInfo.kubeletVersion,RUNTIME:.status.nodeInfo.containerRuntimeVersion
NAME KUBELET RUNTIME kx-control-plane v1.37.0 containerd://2.3.4 kx-worker v1.37.0 containerd://2.3.4 kx-worker2 v1.37.0 containerd://2.3.4 kx-worker3 v1.37.0 containerd://2.3.4
kubectl version reports the client and the server; the KUBELET column here, like the VERSION column of plain kubectl get nodes, is each kubelet’s version. Run both before any upgrade, because the oldest kubelet decides how far the control plane may go.
Order of operations
The skew rules fix the order of a minor upgrade:
- Prepare. Read the release notes for the target minor, fix deprecated API usage, confirm every add-on supports the target version, and check that admission webhooks can handle any new resource versions the new API server will send them.
- kube-apiserver. Upgrade every instance, one minor at a time. The project forbids skipping minors for kube-apiserver even on a single-node cluster, because its deprecation and API change policies only guarantee compatibility between adjacent minors. To go from 1.34 to 1.37 you upgrade three times.
- kube-controller-manager, kube-scheduler and cloud-controller-manager, in any order, once every API server they can reach is upgraded.
- Add-ons. CNI plugin, CoreDNS, kube-proxy, CSI drivers, Gateway or Ingress controllers, metrics-server and any operator that watches the API. Each project publishes which Kubernetes versions it supports.
- Nodes. Kubelets may lag, but plan to bring them up before they reach the edge of the window.
- Clients. kubectl, CI runners and controllers built against client libraries, kept within one minor.
On a cluster built with kubeadm, that sequence looks like this. kubeadm upgrade plan checks that the cluster can be upgraded and lists the versions it can move to; kubeadm upgrade apply upgrades the first control-plane node’s static pods; kubeadm upgrade node does the same on every other control-plane node. During the upgrade kubeadm writes backups of the local etcd data and the old static pod manifests under /etc/kubernetes/tmp, so a failed upgrade can be put back by hand. Node packages come from pkgs.k8s.io, which publishes one repository per minor, so the repository definition changes before apt or dnf can see the new version.
sudo kubeadm upgrade plan
sudo kubeadm upgrade apply v1.37.2 # first control-plane node
sudo kubeadm upgrade node # each other control-plane node, then each worker
kind, which runs kx, has no in-place upgrade at all: a kind cluster’s version is its node image, and moving to a new version means creating a new cluster from a newer image. That is the replacement strategy in miniature, and it is how many managed platforms upgrade nodes too.
Deprecated and removed APIs
The deprecation policyThe upstream rules for how long each API version must keep being served after it is deprecated, by stability level. sets how long you have. A GA version such as apps/v1 may be deprecated but is never removed within Kubernetes 1.x. A beta version is served for at least nine months or three minor releases after its deprecation, whichever is longer. An alpha version can disappear in any release. Except for beta versions introduced before 1.22, built-in beta APIs are also off by default, so a cluster serves a newer beta API only if you turn it on.
Removal is what breaks things, and it breaks requests, not objects. The API server stores every object once, in a storage version, and converts it on the way out to whichever version the client asked for. When a version stops being served, objects created through it stay where they are and are read through the versions that remain. What fails is anything that still names the old version: a manifest in Git, a Helm chart, a controller compiled against an old client.
kubectl apply -f pdb.yaml
error: resource mapping not found for name: "web" namespace: "default" from "pdb.yaml": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1" ensure CRDs are installed first
kubectl api-versions | grep policy
policy/v1
kubectl get endpoints kubernetes
Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice NAME ENDPOINTS AGE kubernetes 172.18.0.2:6443 60s
policy/v1beta1 PodDisruptionBudgets were removed in 1.25, so the first request fails outright; kubectl api-versions shows that only policy/v1 is served. The v1 Endpoints API, deprecated in 1.33 in favour of EndpointSlices, still works but carries a warning. Since 1.19 the API server attaches a warning header to every response for a deprecated API, and kubectl prints it on stderr.
Warnings only reach whoever reads stderr. To find every caller, including controllers, use the two server-side records:
- The metric
apiserver_requested_deprecated_apis, exposed on the API server’s/metricsendpoint, is a gauge set to 1 for each deprecated API that has been requested, with labels forgroup,version,resourceandsubresource, plusremoved_releasefor the release that stops serving it. Joining it withapiserver_request_totalon those labels gives request counts. - Audit events for requests to deprecated APIs carry the annotation
k8s.io/deprecated: "true", and the audit log names the user agent that made each request.
Then fix the sources before the upgrade, not after. The deprecated API migration guide lists every removal with its replacement; the guide lists no built-in API version removals in releases 1.33 through 1.37, while 1.32 removed flowcontrol.apiserver.k8s.io/v1beta3. Update manifests and charts to the replacement version; the kubectl convert plugin, installed separately, rewrites a file to a given --output-version. Helm needs one extra step, because each release stores the manifest it last applied. If that stored manifest names a removed API, helm upgrade fails with current release manifest contains removed kubernetes api(s) and Helm can no longer manage the release; the mapkubeapis plugin rewrites the stored release. Upgrading charts while the old version is still served avoids the problem.
Upgrading nodes
A kubelet minor upgrade happens with the node empty: the skew policy says to drain the node first, because in-place minor kubelet upgrades are not supported. That leaves two ways to upgrade a pool.
- In place. Cordon and drain one node, upgrade the kubelet and runtime packages, restart the kubelet, uncordon, move to the next. Capacity drops by one node at a time.
- Replacement. Add nodes built from the new version’s image, then cordon and drain the old ones and delete them. This is a surge upgradeAn upgrade that adds new nodes before removing old ones, so capacity never drops below the original size.: capacity never drops, nodes stay immutable, and a bad image is undone by draining back. Cloud providers’ managed node pools, Karpenter and most Cluster API providers work this way.
Both depend on kubectl drain, which cordons the node and then asks the Eviction API to remove each pod. The Eviction API honours each pod’s termination grace period and its PodDisruptionBudgetA policy object that limits how many pods matching a selector may be voluntarily disrupted at once.. A budget that allows no disruption stops the drain cold:
kubectl get pdb web
NAME MIN AVAILABLE MAX UNAVAILABLE ALLOWED DISRUPTIONS AGE web 3 N/A 0 30s
kubectl drain kx-worker --ignore-daemonsets --timeout=12s
node/kx-worker cordoned Warning: ignoring DaemonSet-managed Pods: kube-system/kindnet-gxcgn, kube-system/kube-proxy-rxfcc evicting pod default/web-549795f985-5z7ph error when evicting pods/"web-549795f985-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget. evicting pod default/web-549795f985-5z7ph error when evicting pods/"web-549795f985-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget. evicting pod default/web-549795f985-5z7ph error when evicting pods/"web-549795f985-5z7ph" -n "default" (will retry after 5s): Cannot evict pod as it would violate the pod's disruption budget. There are pending pods in node "kx-worker" when an error occurred: error when evicting pods/"web-549795f985-5z7ph" -n "default": global timeout reached: 12s pod/web-549795f985-5z7ph error: unable to drain node "kx-worker" due to error: error when evicting pods/"web-549795f985-5z7ph" -n "default": global timeout reached: 12s, continuing command... There are pending nodes to be drained: kx-worker error: error when evicting pods/"web-549795f985-5z7ph" -n "default": global timeout reached: 12s
minAvailable: 3 on a three-replica Deployment means no pod may ever be evicted, so the drain retries every five seconds until its timeout and the node stays cordoned. Without --timeout, it retries forever, which is how a node upgrade stalls overnight. The fix belongs in the budget, not the drain: maxUnavailable: 1, or minAvailable below the replica count, lets one pod move at a time while the rest keep serving. A few more things make drains slow or stuck: pods with no controller, which drain refuses to delete without --force because nothing would recreate them; pods using emptyDir, whose data is lost and which need --delete-emptydir-data; and single-replica workloads whose budget demands one available pod, which can never be evicted at all.
Replacement needs headroom: the scheduler must find room for every evicted pod on the nodes that remain, including topology spread and anti-affinity rules. Surge one node or one zone at a time, and keep spare capacity during the window.
Release notes that bite
Most upgrades fail on a default that changed, not on a new feature. Each release’s changelog opens with a section of urgent upgrade notes, and that section is required reading. These are the changes from 1.24 through 1.37 that stop nodes or workloads outright:
- cgroup v1. cgroup v1 entered maintenance mode in 1.31 and was deprecated in 1.35. From 1.35 the kubelet refuses to start on a cgroup v1 node unless
failCgroupV1is set tofalsein its configuration file. That override still exists in 1.37, and SIG Node has scheduled its removal for 1.38. cgroup v2 needs Linux 5.8 or later, and the kubelet and the runtime both configured for the systemd cgroup driver. - containerd 1.x. 1.35 was the last release to support the containerd 1.x series. Before moving nodes to 1.36 or later they need containerd 2.0 or newer; the kubelet metric
kubelet_cri_losing_supportflags nodes that would be left behind. kx’s nodes run containerd 2.4. - dockershim. Removed in 1.24. Docker Engine is not a CRI runtime, and nodes that used it need containerd, CRI-O or the external
cri-dockerdadapter. - kube-proxy
ipvsmode. Deprecated in 1.35, when kube-proxy started logging a warning at startup in that mode; SIG Network plans to remove it in 1.40. Plan the move tonftables, GA since 1.33. - Endpoints. The
v1Endpoints API has been deprecated since 1.33. It is still served, but anything that reads it, from scripts to monitoring, should move to EndpointSlices.
Feature gates reaching beta can also switch a behaviour on by default, and a gate reaching GA can remove the switch you used to turn it off. Read the notes for every minor you cross, not just the last one.
Change management
Most incidents follow a change, and a cluster upgrade changes every component at once, so it gets the same controls as any risky release.
- Staged environments. Upgrade development, then staging, then production, with enough time between them for problems to surface, and run the same workloads and add-ons in each so staging can actually fail first.
- A rollback plan written before you start. Upstream documents upgrades forward only. On a self-managed cluster the rollback for the control plane is the etcd snapshot taken immediately before the upgrade, plus the kubeadm backups under
/etc/kubernetes/tmp. The other way back is a second cluster: build a new one at the target version, move workloads with GitOps, and keep the old one until traffic has settled. Federation projects such as KubeFed are archived; GitOps and fleet tooling carry workloads between clusters. - A change window with an owner, a communication plan, and a freeze on unrelated deploys, so that a regression has one suspect.
- Delivery metrics. DORA measures software delivery with five metrics: change lead time, deployment frequency and failed deployment recovery time for throughput, and change fail rate and deployment rework rate for instability. Track cluster upgrades in the same records as application releases.
Workload releases can go more gradually than a whole cluster. A Deployment’s rolling update is the built-in tool; canary and blue-green releases with metric gates come from controllers such as Argo Rollouts, covered in the progressive delivery lesson.
kubectl --context kind-kx versionkubectl --context kind-kx get nodes -o widekubectl --context kind-kx get endpoints -Akubectl --context kind-kx get --raw /metrics | grep apiserver_requested_deprecated_apis
For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The Endpoints request prints a deprecation warning, and the metric then carries a series for the endpoints resource. On a real cluster, every controller that still lists Endpoints shows up there too.
Actual state
Check your understanding
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
Lesson not yet reconciled
Desired: 5 objectives, 0 metReconciled: 5 of 5 objectives met
- State the release cadence and support window, about three minors a year and roughly 14 months of patches for each. (not yet met)
- Apply the version skew policy to the control plane, kubelets, kube-proxy and kubectl. (not yet met)
- Find and fix deprecated API usage before an upgrade removes it. (not yet met)
- Upgrade nodes by draining in place or by replacement without losing availability. (not yet met)
- Read release notes for default changes, such as cgroup v1 and containerd 1.x, that stop nodes from starting. (not yet met)
Pass every check above to reconcile this lesson.
Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.
Practice
Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.
Changed since the notes
This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.
Show 12 corrections
The notes saidEKS supports each version for about 14 months
CorrectedEach version gets 14 months of standard support, then 12 months of extended support. Extended support is on by default and costs $0.60 per cluster-hour instead of $0.10. As of 2026-11-19, standard support covers 1.34-1.37 and extended support covers 1.31-1.33.
Sourcedocs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html
The notes saidEKS-optimized Amazon Linux AMI … bootstrap script
CorrectedEKS AL2 AMIs ended support on 2025-11-26 (1.32 was the last). Use AL2023 with nodeadm, or Bottlerocket.
Sourcedocs.aws.amazon.com/eks/latest/userguide/eks-ami-deprecation-faqs.html
The notes saidkube-proxy: both iptables and IPVS modes are supported
CorrectedThe EKS kube-proxy add-on supports iptables (the default) and nftables (EKS 1.33+). IPVS is deprecated upstream.
Sourcedocs.aws.amazon.com/eks/latest/best-practices/nftables.html
The notes saidaws-auth maps IAM entities; IRSA lets pods assume IAM roles
CorrectedAccess entries replace aws-auth. AWS recommends EKS Pod Identity whenever possible. IRSA is still needed on Fargate, Windows EC2, Outposts, EKS Anywhere and non-EKS clusters, where Pod Identity isn't available.
Sourcedocs.aws.amazon.com/eks/latest/userguide/service-accounts.html
The notes saidControl plane scaling happens automatically
CorrectedTrue in Standard mode, the default. Optional Provisioned Control Plane tiers (XL, 2XL, 4XL, 8XL) pre-allocate capacity and are billed hourly per tier.
Sourcedocs.aws.amazon.com/eks/latest/userguide/eks-provisioned-control-plane.html
The notes saidThe AWS Load Balancer Controller (installed separately)
CorrectedTrue for standard clusters. EKS Auto Mode has built-in ALB/NLB provisioning (IP target mode by default) and supports Gateway API.
Sourcedocs.aws.amazon.com/eks/latest/userguide/auto-networking.html
The notes saidCluster federation
CorrectedSIG Multicluster archived KubeFed (planned for 2023-01-03). Multi-cluster management now uses GitOps or fleet tooling.
Sourcemulticluster.sigs.k8s.io/blog/2022/2022-11-16_archiving-kubefed-on-jan-3-2023
The notes saidKubernetes releases new versions approximately quarterly
CorrectedSince v1.22 (2021), Kubernetes ships three minor releases a year in roughly 15-week cycles.
The notes saidWarm IP pool trades memory usage against pod startup latency
CorrectedThe warm pool trades idle VPC IP addresses and ENIs, which consume subnet capacity, for faster Pod startup. It is tuned with WARM_ENI_TARGET, WARM_IP_TARGET and MINIMUM_IP_TARGET.
Sourcedocs.aws.amazon.com/eks/latest/best-practices/vpc-cni.html
The notes saidLists AWS Distro for OpenTelemetry and ADOT as two different add-ons
CorrectedThey are the same product and the same EKS add-on.
Sourcedocs.aws.amazon.com/eks/latest/userguide/workloads-add-ons-available-eks.html
The notes saidTrack deployment frequency, lead time, change failure rate, time to restore.
CorrectedDORA renamed time to restore (MTTR) to 'failed deployment recovery time' in 2023, scoped to failures caused by a change, and added a fifth metric, deployment rework rate, in 2024. The five metrics are grouped as throughput (change lead time, deployment frequency, failed deployment recovery time) and instability (change fail rate, deployment rework rate).
The notes saidBlue-green and canary are available through tools like Argo Rollouts.
CorrectedStill accurate (Argo Rollouts v1.10.2, 2026-11-04). Gateway API traffic routing is provided through the argoproj-labs traffic-router plugin rather than a built-in router; the plugin system is marked alpha in the Rollouts docs.
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- kubernetes.io/releases
- kubernetes.io/releases/patch-releases
- kubernetes.io/releases/version-skew-policy
- kubernetes.io/docs/reference/using-api
- kubernetes.io/docs/reference/using-api/deprecation-policy
- kubernetes.io/docs/reference/using-api/deprecation-guide
- kubernetes.io/blog/2020/09/03/warnings
- kubernetes.io/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade
- kubernetes.io/docs/tasks/administer-cluster/safely-drain-node
- kubernetes.io/docs/concepts/architecture/cgroups
- kubernetes.io/blog/2025/12/17/kubernetes-v1-35-release
- kubernetes.io/blog/2026/10/06/kubernetes-cgroups-v2-shift
- kubernetes.io/blog/2026/11/16/ipvs-removal
- helm.sh/docs/topics/kubernetes_apis
- docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html
- docs.aws.amazon.com/eks/latest/userguide/update-cluster.html
- docs.aws.amazon.com/eks/latest/userguide/rollback-cluster.html
- docs.aws.amazon.com/eks/latest/userguide/cluster-insights.html
- docs.aws.amazon.com/eks/latest/userguide/eks-ami-deprecation-faqs.html
Upgrades and version skew
↓ ↑ step, 1 to 7 scene, Esc leave