Back to articles

Leaving Kubernetes 1.34: check for cgroup v1 before your kubelets refuse to start

Kubernetes 1.34 is end of life, and from 1.35 the kubelet refuses to start on cgroup v1 nodes by default. Here is how to find those nodes before you upgrade, what changes for JVM, Node.js and Go workloads on cgroup v2, and why the failCgroupV1 override only buys you a release or two.

Kubernetes 1.34 reached end of life on 27 October 2026. If you are still on it, the next step is 1.35, and 1.35 is the release where the kubelet stops starting on cgroup v1 nodes unless you tell it otherwise. The upgrade doesn't degrade on such a node. The kubelet exits, the node goes NotReady, and with kubeadm the upgrade stops at preflight before it gets that far.

Clusters that are entirely on cgroup v2 will never notice. The ones that will are the ones with a few old node images in a forgotten pool, a long-lived bare-metal fleet, or a kernel command line somebody set years ago. This article is about finding those nodes before the upgrade does.

Who this is for: engineers planning the move off 1.34 (or already on 1.35 to 1.37 with an override in place) on self-managed clusters, and on managed clusters with custom or old node images.

What you walk away with: a way to check every node, a list of what changes for workloads when a node moves to cgroup v2, a migration order, and a clear view of what the failCgroupV1 override buys you.

What changed, and when

Release Date cgroup v1 status
v1.25 August 2022 cgroup v2 support stable
v1.31 August 2024 cgroup v1 support in maintenance mode
v1.34 released 27 August 2025, end of life 27 October 2026 last release where the kubelet starts on cgroup v1 by default
v1.35 released 17 December 2025 cgroup v1 deprecated; failCgroupV1 defaults to true
v1.36, v1.37 April and August 2026 unchanged: failCgroupV1 still exists and still defaults to true
v1.38 planned 16 December 2026 earliest release in which the fallback may be removed; still present in v1.38.0-beta.0

The cgroup documentation puts it in two sentences: "Kubelet will no longer start on a cgroup v1 node by default. To disable this setting a cluster admin should set failCgroupV1 to false in the kubelet configuration file."

In the v1.35 and v1.37 source the refusal is a configuration validation error at startup: kubelet is configured to not run on a host using cgroup v1. cgroup v1 support is unsupported and will be removed in a future release.

kubeadm fails earlier than the kubelet. According to the Kubernetes blog's cgroup v2 guide of 6 October 2026, the SystemVerification preflight check returns an error during kubeadm init, kubeadm join and kubeadm upgrade when it detects cgroup v1 with a kubelet of v1.35 or later. With an older kubelet it remains a warning. During an upgrade, kubeadm's source evaluates the installed kubelet's version plus one minor, so the error already fires on the step from 1.34 to 1.35. That is the better failure of the two: it happens before anything is changed.

The removal date is not fixed in one place. KEP-5573 says removal "will be done no earlier than 1.38". The October blog post goes further and says the fallback "is scheduled for removal in Kubernetes v1.38", in a paragraph that still calls 1.36 the current release. The code doesn't settle it yet. On 16 November 2026 the latest pre-release, v1.38.0-beta.0, still has failCgroupV1 with a default of true, its changelog lists no cgroup v1 removal, and the release-1.38 branch has not been cut. Check the v1.38 urgent upgrade notes when the release is out, and treat the override as temporary either way.

Find your cgroup v1 nodes

The cgroup version is a property of the node's operating system, not of Kubernetes, and it is not a field on the Node object.

On the node

stat -fc %T /sys/fs/cgroup/

cgroup2fs means cgroup v2. tmpfs means cgroup v1. This is the check the Kubernetes documentation gives, and it is the one to trust.

Without SSH

kubectl debug can start a pod in the node's host namespaces with the node's filesystem mounted at /host:

for n in $(kubectl get nodes -l kubernetes.io/os=linux -o name); do
  printf '%s: ' "$n"
  kubectl debug "$n" -q --attach --image=ubuntu:24.04 -- stat -fc %T /host/sys/fs/cgroup/
done
kubectl logs -l app.kubernetes.io/managed-by=kubectl-debug --prefix --tail=1 --max-log-requests=50

--attach (or -i) makes kubectl debug print the output, but not reliably: on our GKE 1.36 test cluster each node's first run, during the image pull, printed an empty line and exited 0. So the last line reads the results from pod logs. And the image needs GNU coreutils: the stat in BusyBox 1.36 has no name for the cgroup v2 filesystem and prints UNKNOWN where the documentation says cgroup2fs.

Each run leaves a completed pod named node-debugger-<node>-<suffix> in the current namespace, so delete those afterwards. kubectl v1.35 and later labels them app.kubernetes.io/managed-by=kubectl-debug. The pod runs in the host namespaces with a hostPath mount of /, so you need permission to create such pods, and with Pod Security admission a namespace at the privileged level.

From metrics

The kubelet exposes a gauge named kubelet_cgroup_version. If you already scrape kubelets, one query covers the fleet:

kubelet_cgroup_version == 1

Or per node, through the API server:

kubectl get --raw "/api/v1/nodes/<node>/proxy/metrics" | grep '^kubelet_cgroup_version'

The value is the cgroup version as a number, 1 or 2: the kubelet sets it once at startup. A kubelet that refused to start exports nothing, so the query only finds cgroup v1 nodes whose kubelet still runs (v1.34 and older, or with the override). The metric is marked alpha in the v1.37 source, so it can change without notice. Use it to find candidates, and confirm with stat.

Narrowing it down first

kubectl get nodes -o wide shows the OS image, kernel version and container runtime for every node. That won't tell you the cgroup version, but it tells you where to look:

What you see What it implies
Kernel older than 5.8 Below the documented minimum for cgroup v2. The node needs a new image whichever mode it runs in.
RHEL or a RHEL-like distribution, version 8 or older The Kubernetes docs list cgroup v2 by default "since 9".
Ubuntu older than 21.10 v2 by default since 21.10; the docs recommend 22.04 or later.
Debian 10 or older v2 by default since Debian 11 (bullseye).
containerd older than 1.4, CRI-O older than 1.20 Runtime has no cgroup v2 support at all.
A recent distribution Probably v2, but not proven.

The last row is the trap. A distribution that defaults to v2 can be booted in v1 mode with a kernel argument such as systemd.unified_cgroup_hierarchy=0 (from systemd v256 only together with SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1), and that setting survives image upgrades if it lives in your provisioning templates. Check cat /proc/cmdline on any node you can't explain.

On managed platforms, the node image decides. The providers' docs on 17 November 2026: GKE removed cgroup v1 support in 1.35. EKS published its cgroup v1 image, Amazon Linux 2, only up to Kubernetes 1.32; AL2023 and Bottlerocket default to v2. On AKS, Ubuntu 22.04 and Azure Linux 3.0 use v2. AWS and Microsoft both document a way back to v1, so check every node pool, including the ones nobody has touched in a year. AKS Ubuntu 24.04 (default from 1.35) is undocumented.

What else changes on cgroup v2

The Kubernetes documentation says there "should not be any noticeable difference in the user experience when switching to cgroup v2, unless users are accessing the cgroup file system directly, either on the node or from within the containers." That exception covers more software than it sounds like, because language runtimes read the cgroup filesystem to size themselves.

Runtimes that don't recognise cgroup v2

The documentation spells out the failure for Node.js: a version without cgroup v2 support "may read the host's total memory instead of the limit applied to the pod", which leads to a wrongly sized heap and OOM kills. Expect the same class of problem from the other runtimes in its list.

Runtime or library Minimum version per the Kubernetes docs
OpenJDK / HotSpot jdk8u372, 11.0.16, 15 and later
IBM Semeru Runtimes 8.0.382.0, 11.0.20.0, 17.0.8.0 and later
IBM Java 8.0.8.6 and later
Node.js v20.3.0 and later; the v18 line "does not reliably detect cgroup v2 memory limits"
uber-go/automaxprocs v1.5.1 or higher
cAdvisor (stand-alone DaemonSet) v0.43.0 or later

For workloads you can't upgrade in time, set the sizes explicitly so that detection doesn't matter: -Xmx plus -XX:ActiveProcessorCount for the JVM (not -XX:MaxRAMPercentage, which is a percentage of the memory the JVM detects), --max-old-space-size for Node.js, GOMAXPROCS for Go. That is worth doing regardless.

Third-party monitoring and security agents are the other group the documentation names. Check every DaemonSet that reads /sys/fs/cgroup against its vendor's compatibility notes.

OOM kills take the whole container

On cgroup v2 the kubelet's singleProcessOOMKill setting defaults to false. The kubelet sets memory.oom.group on each container cgroup, so when a container hits its memory limit the kernel kills every process in that container together. On cgroup v1 the kernel could kill a single process and leave the rest running.

It is a behaviour change for anything that relied on the old way, such as a process manager that respawns killed workers. If you need the v1 behaviour on a v2 node, set singleProcessOOMKill: true in the kubelet configuration. The memory pressure article covers the kill order in detail.

Memory accounting is unified, but one old problem stays

cgroup v2 accounts for more kinds of memory in one place, including network and kernel memory, and tracks page cache writeback. Usage figures for the same workload can therefore differ between a v1 and a v2 node, so compare before you tighten any limit.

One thing doesn't change. The kubelet still treats active_file page cache as not reclaimable when it calculates memory pressure, so I/O-heavy pods can still trigger evictions. The October guide is explicit that "migrating to cgroup v2 does not by itself change that calculation".

CPU weights

cgroup v1 uses cpu.shares and v2 uses cpu.weight. The conversion is done by the OCI runtime, and newer runtimes (crun v1.23, runc v1.3.2) use a different, non-linear formula. After a runtime upgrade, tools that predict exact cpu.weight values may need updating.

Features you gain

Pressure Stall Information metrics, Memory QoS and accurate enforcement when pod-level resources are resized in place all require cgroup v2.

A migration order

The documentation's recommendation is to "use a Linux distribution that enables and uses cgroup v2 by default". In practice that means replacing nodes with a newer image, not flipping a kernel argument on existing ones. The docs do describe switching in place (add systemd.unified_cgroup_hierarchy=1 to the kernel command line and reboot).

The version skew policy gives you room to do this in the right order. A kubelet may be up to three minor versions older than the API server, so nothing forces the node migration and the control plane upgrade into the same change. Do the node migration first, on the Kubernetes version you already run.

  1. Inventory. Run the checks above. Record cgroup version, kernel, OS image and runtime per node pool.
  2. Check the node requirements. Kernel 5.8 or later, containerd v1.4 or later or CRI-O v1.20 or later, and the systemd cgroup driver for both kubelet and runtime. With containerd v2.0+ or CRI-O v1.28+, the kubelet takes the driver from the runtime automatically.
  3. Check workloads and agents against the runtime table above. Set explicit heap and CPU settings where you can't upgrade.
  4. Add a cgroup v2 node pool on your current version. cgroup v2 has been stable since v1.25, so this works on 1.34.
  5. Move a canary. Pick workloads that represent your risk: a JVM service, something I/O heavy, your monitoring agents. Watch OOM kills, restarts, memory usage and CPU throttling for long enough to cover a normal load cycle.
  6. Move the rest pool by pool. Cordon and drain the v1 nodes so that PodDisruptionBudgets are respected, then delete them.
  7. Verify nothing is left. Rerun the inventory. On kubeadm clusters, remember the control plane nodes: they run a kubelet too.
  8. Then upgrade Kubernetes, one minor version at a time. The upgrade article covers that part.

The cost of this order is time spent on an unsupported release. 1.34 no longer receives patches, so every week on it is a week without security fixes. If the migration will take months, the override below is the lesser risk.

The override, and why it is a stopgap

To let a v1.35 to v1.37 kubelet start on a cgroup v1 node, set this in the kubelet configuration file:

apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
failCgroupV1: false

Set it before the kubelet package is upgraded, not after the new kubelet has failed. A v1.34 kubelet already knows the field, where it defaults to false. When the override is active, the kubelet records a CgroupV1 warning event on the node at every start.

On kubeadm clusters the v1.35 changelog asks for two things: add failCgroupV1: false to the kube-system/kubelet-config ConfigMap before upgrading, and ignore the preflight error. In the kubeadm source the check is named SystemVerification, and kubeadm upgrade apply and kubeadm upgrade node both accept --ignore-preflight-errors=SystemVerification. That skips the whole check, including its kernel validation, not only the cgroup part.

What the override doesn't give you:

Use the override when being on an unsupported Kubernetes version is the bigger risk. Don't use it as the plan.

Checklist

  1. Every Linux node reports cgroup2fs, including control plane nodes and rarely used pools.
  2. No node has systemd.unified_cgroup_hierarchy=0 or SYSTEMD_CGROUP_ENABLE_LEGACY_FORCE=1 on its kernel command line.
  3. Kernel is 5.8 or later; runtime is containerd v1.4+ or CRI-O v1.20+; kubelet and runtime use the systemd cgroup driver.
  4. JVM, Node.js and Go workloads are on versions that detect cgroup v2, or have explicit heap and CPU settings.
  5. Monitoring and security agents are on versions that support cgroup v2.
  6. Workloads that depend on single-process OOM kills are identified.
  7. If failCgroupV1: false is set anywhere, there is a date for removing it.