Skip to content
LF Cert Trainer

Lesson 63 · Section 6: Cluster Maintenance

Lesson 63: Kubernetes releases: reading versions and knowing what is supported

How Kubernetes is versioned and shipped: major, minor and patch numbers, the release rhythm, alpha, beta and stable features, which versions still get fixes, which components carry their own version, and how to find the version of everything in a cluster. · 15 min read · 4 min video

1/10Kubernetes releases
0:00 / 3:54

Narrated by the local narrator voice. Keys: Space plays and pauses, J and L step, C captions, F full screen.

What a Kubernetes release is

Every cluster you will ever work on runs a specific version of Kubernetes, and almost every maintenance decision starts with that version. Is this cluster still receiving security fixes? Can it be upgraded to the version the task asks for in one step? Will this feature exist here? Why does the manifest from a blog post fail with "no matches for kind"? The answers all come from reading a version number correctly.

A release is one published, tested set of Kubernetes binaries with a version such as v1.37.2. The same release contains the control plane programs (kube-apiserver, kube-controller-manager, kube-scheduler), the node programs (kubelet, kube-proxy) and the tools (kubectl, kubeadm). They are built together from one source tree and all carry the same number.

Reading a version number1372v1.37.2one Kubernetes releaseMajor: 1unchanged since 2015Minor: 37features, 3 per yearPatch: 2fixes, about monthly
Reading a version number. Three numbers, three different promises. The further right a number is, the more often it changes and the safer the change.

Parts:

  • v1.37.2 (one Kubernetes release)
  • Major: 1 (unchanged since 2015)
  • Minor: 37 (features, 3 per year)
  • Patch: 2 (fixes, about monthly)

Connections:

  • v1.37.2 to Major: 1: 1
  • v1.37.2 to Minor: 37: 37
  • v1.37.2 to Patch: 2: 2

How versions work

Major, minor and patch

Kubernetes versions are written vMAJOR.MINOR.PATCH.

PartExampleChangesWhat it brings
Major1.37.2Never so far. It has been 1 since the first release in July 2015A new major version would be allowed to break stable APIs. None is planned
Minor1.37.2About every four months, three times a yearNew features, features moving from alpha to beta to stable, and the removal of APIs whose deprecation period has ended
Patch1.37.2About once a month, and sooner for an urgent security fixBug fixes and security fixes only. No new features, no API changes

Two consequences follow from this table, and you will use both in every upgrade:

  • A patch upgrade is low risk. Going from 1.37.1 to 1.37.4 changes no APIs and no defaults. You should always be on a recent patch of your minor version.
  • A minor upgrade needs reading. Going from 1.36 to 1.37 can remove an API version you still use or change a default. The release notes list these under "Urgent Upgrade Notes".

People often say "Kubernetes 1.37" and leave out the patch number. That names the whole minor version: 1.37.0 and every patch after it.

The release rhythm

The project releases three minor versions per year. Before 2021 it was four. Each cycle takes roughly four months and ends on a date announced well in advance, so you can plan upgrades around it.

Between two minor releases you will see pre-release versions of the next one. They are complete builds of an unfinished version, published so that people can test early:

v1.38.0-alpha.1     early snapshot, anything may change
v1.38.0-beta.0      features are frozen, bugs are being fixed
v1.38.0-rc.1        release candidate: becomes v1.38.0 if no serious bug appears
v1.38.0             the release
v1.38.1             first patch

Alpha, beta and stable features

A new capability does not appear fully formed in one release. It moves through stages over several minor versions, and at every stage the project can still change it.

How a feature grows upacceptedtestedprovenorthenProposal (KEP)design is reviewedAlphaoff by defaultBetaon by defaultStable (GA)always onDroppedalpha may vanishGate removeda few releases later
How a feature grows up. A feature needs several minor releases to become stable. Its feature gate tells every component which stage it is in.

Parts:

  • Proposal (KEP) (design is reviewed)
  • Alpha (off by default)
  • Beta (on by default)
  • Stable (GA) (always on)
  • Dropped (alpha may vanish)
  • Gate removed (a few releases later)

Connections:

  • Proposal (KEP) to Alpha: accepted
  • Alpha to Beta: tested
  • Beta to Stable (GA): proven
  • Alpha to Dropped: or
  • Stable (GA) to Gate removed: then
StageDefaultCan it change?Use it in production?
AlphaOff. You enable it with a feature gateYes, in any way, and it may be removed without noticeNo
BetaOn, in most cases. You can still turn it offDetails may change, but the feature will not be dropped without a deprecation periodWith care
Stable (also called GA, "generally available")Always on. It cannot be turned offNo, not in a way that breaks youYes

The switch is a feature gate: a named true or false setting passed to a component with --feature-gates. For example, a kubelet started with --feature-gates=SomeNewThing=true enables the alpha feature SomeNewThing on that node. Most features need the gate on the API server, and many need it on the kubelet or the scheduler as well.

When a feature becomes stable its gate is locked to true, and a few releases later the gate is deleted. This matters during upgrades: a component that is still started with a gate that no longer exists refuses to start, with an error such as unrecognized feature gate.

Under the hood · Feature stages and API versions are related, but not the same

You have seen apiVersion: v1, apps/v1 and names such as v1beta1 in manifests. Those are API versions. They describe how stable one resource type is, and they do not follow the release number: apps/v1 Deployments have been v1 since Kubernetes 1.9.

The naming follows the same three stages:

  • v1alpha1: an alpha API. Off by default, may disappear in any release.
  • v1beta1: a beta API. New beta APIs are off by default and must be enabled on the API server. They have a limited life: they are deprecated at most 9 months or 3 minor releases after they appear, and stop being served 9 months or 3 minor releases after that, whichever is longer.
  • v1: a stable API. It will not be removed within major version 1.

This is why an old manifest can fail after a minor upgrade. A Deployment written as extensions/v1beta1 stopped working in 1.16, and an Ingress written as networking.k8s.io/v1beta1 stopped working in 1.22. The object type still exists; only the old API version is gone. kubectl api-versions lists what your cluster serves, and kubectl explain <kind> shows the version it prefers.

Which versions are supported

The Kubernetes project maintains release branches for the three most recent minor versions. With 1.37 as the newest, that is 1.37, 1.36 and 1.35.

Three minor versions are supported at a timeupgradeupgradenext to leavenext to arrive1.35oldest supported1.36supported1.37newest, supported1.34end of life, no fixes1.38next, in about 4 months
Three minor versions are supported at a time. Each new minor release pushes the oldest one out of support. Upgrades move one minor version at a time, so a cluster that falls behind needs several upgrades to catch up.

Parts:

  • 1.35 (oldest supported)
  • 1.36 (supported)
  • 1.37 (newest, supported)
  • 1.34 (end of life, no fixes)
  • 1.38 (next, in about 4 months)

Connections:

  • 1.35 to 1.36: upgrade
  • 1.36 to 1.37: upgrade
  • 1.35 to 1.34: next to leave
  • 1.38 to 1.37: next to arrive

Each minor version receives patches for about one year: 12 months of regular support, followed by a 2 month maintenance period in which only critical fixes are released. After that it is end of life. An end of life version still runs, but nobody publishes fixes for it, including fixes for security holes.

With three releases a year and about a year of support each, the arithmetic is simple and a little uncomfortable: you must do a minor upgrade roughly every four months to stay on the newest version, and at least once a year to stay supported at all. That is why cluster upgrades are a core administrator skill, and why the next two lessons are about them.

One minor version at a time

You cannot jump from 1.34 straight to 1.37. Control plane upgrades must go through every minor version in between: 1.34 to 1.35, then 1.36, then 1.37. kubeadm enforces this and refuses a plan that skips a minor version. Within one minor version you may skip patches freely: 1.36.1 to 1.36.6 is one step.

The reason is that each minor version only knows how to read the stored data and talk to the components of the version just before it. The project tests that single step, not longer jumps.

Version skew: how far apart components may be

During an upgrade the components of one cluster are, for a while, on different versions. The version skew policy says which combinations are supported. Everything is measured against kube-apiserver.

How far apart the components may be1 older3 older1 either waykube-apiserver1.37Controllers, scheduler1.37 or 1.36kubelet, kube-proxy1.37 down to 1.34kubectl1.38, 1.37 or 1.36
How far apart the components may be. The API server sets the pace. Nothing in the cluster may be newer than it, and only kubectl may be one minor version ahead.

Parts:

  • kube-apiserver (1.37)
  • Controllers, scheduler (1.37 or 1.36)
  • kubelet, kube-proxy (1.37 down to 1.34)
  • kubectl (1.38, 1.37 or 1.36)

Connections:

  • kube-apiserver to Controllers, scheduler: 1 older
  • kube-apiserver to kubelet, kube-proxy: 3 older
  • kube-apiserver and kubectl: 1 either way
ComponentAllowed, with kube-apiserver at 1.37Rule
Other kube-apiserver instances (HA)1.37, 1.36Within one minor version of each other
kube-controller-manager, kube-scheduler1.37, 1.36Not newer than the API server, at most one older
kubelet, kube-proxy1.37, 1.36, 1.35, 1.34Not newer than the API server, at most three older
kubectl1.38, 1.37, 1.36One newer or one older

Two things to take from the table:

  • Nothing inside the cluster may be newer than the API server. This fixes the upgrade order: control plane first, nodes afterwards. It is also why a new node cannot join an older cluster with a newer kubelet.
  • The kubelet may lag by three minor versions. In theory you can upgrade the control plane three times before touching the nodes. In practice, upgrade the nodes with each step, because old nodes miss fixes too.

The next lesson, Cluster Upgrade Introduction, turns these rules into an upgrade plan.

What is not part of the release

A running cluster contains software that is not versioned with Kubernetes. These are separate projects with their own numbers and their own release dates:

ComponentOwn version, for exampleHow it gets its version
etcd3.6.4Each Kubernetes release is tested with one etcd version; kubeadm installs that one
CoreDNS1.12.1The same: chosen by kubeadm for the release
pause image3.10.1Chosen by kubeadm; must match the container runtime's setting
Container runtime (containerd, CRI-O)2.1Installed by you from the operating system's packages
Network plugin (Calico, Cilium, Flannel and others)variesInstalled by you; has its own list of supported Kubernetes versions

So "the cluster is on 1.37" does not mean etcd is 1.37. When you check versions, the Kubernetes components should agree with each other within the skew rules, and the others should be whatever that release expects.

Where releases come from

You will meet four sources. Each fits a different job.

SourceWhat you getTypical use
kubernetes.io/releasesThe list of supported versions, their latest patch, end of life dates and release notesDeciding what to upgrade to
Package repositories at pkgs.k8s.iokubeadm, kubelet, kubectl as deb and rpm packagesInstalling and upgrading kubeadm clusters. This is what the exam uses
dl.k8s.ioSingle binaries and the server archive for any versionInstalling kubectl by hand, or building a cluster without packages
registry.k8s.ioContainer images of the control plane, tagged with the versionPulled automatically by kubeadm and the kubelet

The package repositories are organised one repository per minor version. The minor version is part of the address:

https://pkgs.k8s.io/core:/stable:/v1.37/deb/
https://pkgs.k8s.io/core:/stable:/v1.37/rpm/

A machine configured for v1.36 sees every patch of 1.36 and nothing of 1.37. For a patch upgrade you change nothing. For a minor upgrade you first edit the repository file to the new minor version. The older shared repositories apt.kubernetes.io and yum.kubernetes.io were shut down in 2024; instructions that mention them are out of date.

Using it

Example · Find the version of everything in a cluster

Start with the two commands that cover the API server and the nodes:

kubectl version
Client Version: v1.37.2
Kustomize Version: v5.7.1
Server Version: v1.37.2

"Client" is your kubectl. "Server" is the kube-apiserver that answered. The Kustomize line is the version built into kubectl.

kubectl get nodes
NAME           STATUS   ROLES           AGE   VERSION
controlplane   Ready    control-plane   90d   v1.37.2
node01         Ready    <none>          90d   v1.36.6

The VERSION column is the kubelet version on each node, not the API server's. Here the control plane has been upgraded and node01 is one minor version behind, which the skew policy allows.

For the remaining pieces:

kubeadm version -o short                           # v1.37.2: the kubeadm binary on this machine
kubelet --version                                  # Kubernetes v1.37.2
kubectl get nodes -o wide                          # adds OS image, kernel and container runtime version
kubectl -n kube-system get pods -o custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image

The last command prints the image of every system Pod, so you can read the versions of the API server, etcd, CoreDNS and kube-proxy from their image tags.

Example · See which versions you can install

On a Debian or Ubuntu node, ask the package manager what the configured repository offers:

cat /etc/apt/sources.list.d/kubernetes.list
deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.36/deb/ /
sudo apt-get update
apt-cache madison kubeadm
   kubeadm | 1.36.6-1.1 | https://pkgs.k8s.io/core:/stable:/v1.36/deb  Packages
   kubeadm | 1.36.5-1.1 | https://pkgs.k8s.io/core:/stable:/v1.36/deb  Packages
   kubeadm | 1.36.4-1.1 | https://pkgs.k8s.io/core:/stable:/v1.36/deb  Packages

Only 1.36 patches are listed, because the repository is the v1.36 one. The package version is the Kubernetes version plus a package revision (-1.1). To see 1.37, change v1.36 to v1.37 in the file and run sudo apt-get update again.

On a Red Hat family system the file is /etc/yum.repos.d/kubernetes.repo and the listing command is yum list --showduplicates kubeadm --disableexcludes=kubernetes.

Example · Ask the download server for the latest version

dl.k8s.io publishes small text files that always contain the newest version number:

curl -L -s https://dl.k8s.io/release/stable.txt          # newest stable release, for example v1.37.2
curl -L -s https://dl.k8s.io/release/stable-1.36.txt     # newest patch of 1.36, for example v1.36.6

The same server holds every binary under a predictable path, which is how the documented kubectl install works:

VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
curl -LO "https://dl.k8s.io/release/${VERSION}/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/release/${VERSION}/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256)  kubectl" | sha256sum --check

Replace kubectl with kubeadm or kubelet for the other binaries, and amd64 with arm64 for ARM machines.

Example · List what a release is made of

kubeadm knows the full set of images that belong to a Kubernetes version, including the parts with their own numbers:

kubeadm config images list --kubernetes-version v1.34.1
registry.k8s.io/kube-apiserver:v1.34.1
registry.k8s.io/kube-controller-manager:v1.34.1
registry.k8s.io/kube-scheduler:v1.34.1
registry.k8s.io/kube-proxy:v1.34.1
registry.k8s.io/coredns/coredns:v1.12.1
registry.k8s.io/pause:3.10.1
registry.k8s.io/etcd:3.6.4-0

Four images carry the Kubernetes version. CoreDNS, pause and etcd carry their own. Without the flag, kubeadm lists the images for its own version. The kubelet is missing from the list because it is not a container: it is installed as a package and runs as a system service.

Tricks

Common mistakes

  • Reading kubectl get nodes as the cluster version. It shows kubelet versions. The API server's version is the "Server Version" line of kubectl version.
  • Skipping a minor version. 1.35 to 1.37 in one step is not supported, and kubeadm refuses it. Skipping patches inside one minor version is fine.
  • Upgrading a node before the control plane. A kubelet must never be newer than the API server.
  • Forgetting the package repository. After a control plane upgrade to 1.37, apt on a node still configured for v1.36 cannot find any 1.37 package.
  • Confusing an alpha build with an alpha feature. v1.38.0-alpha.1 is an unfinished release. An alpha feature is a switched-off part of a finished one.
  • Leaving old feature gates in place. A gate that was needed in 1.34 may no longer exist in 1.37, and the component then fails to start. Check the gates in the static Pod manifests and the kubelet configuration before a minor upgrade.
  • Assuming etcd and CoreDNS share the Kubernetes version. They have their own numbers, chosen by kubeadm for each release.

Recap

  • A version is vMAJOR.MINOR.PATCH. The major number is 1; minor versions bring features and API removals about every four months; patches bring fixes only.
  • Features move from alpha (off by default) to beta (usually on) to stable (always on), controlled by feature gates. API versions such as v1beta1 and v1 follow the same stages.
  • The three newest minor versions are supported, each for about a year. After that there are no more fixes.
  • Upgrades go one minor version at a time. Patches can be skipped.
  • Nothing may be newer than kube-apiserver. Controllers and the scheduler may be one minor version older, kubelet and kube-proxy up to three, and kubectl one in either direction.
  • etcd, CoreDNS, the container runtime and the network plugin have their own versions.
  • kubectl version, kubectl get nodes, kubeadm version and apt-cache madison kubeadm tell you what you have and what you can install. Packages live in one repository per minor version at pkgs.k8s.io.

Official docs

Quiz: check what you learned

5 questions on this lesson · about 3 min · instant feedback. Missed questions come back in your review queue.

Sign in to take the quiz and keep your score.

Practise: try it on a real cluster

A hands-on lab for this lesson. You get goals, not steps: any solution that reaches them passes.

  • Upgrade a whole kubeadm cluster to the next minor version, control plane first and then the worker, with a drained node at each step and the shop running throughout.

    Build · Level 3 · challenge · target 40 min

Discussion

Learners ask and answer questions here. Sign in to read and join the discussion.