# The Shift to cgroup v2 in Kubernetes: What You Need to Know

DevFeed: [The Shift to cgroup v2 in Kubernetes: What You Need to Know](<https://devfeed.tech/articles/the-shift-to-cgroup-v2-in-kubernetes-what-you-need-to-know-65880.md>)

Original publisher: [Read original article](<https://kubernetes.io/blog/2026/10/06/kubernetes-cgroups-v2-shift/>)

Author: Paco Xu

Published: 2026-10-06T18:00:00Z

Content type: tutorial

Language: en

Sources: [Kubernetes Blog](<https://devfeed.tech/sources/kubernetes-blog.md>)

Topics: [cgroups](<https://devfeed.tech/topics/cgroups.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Headless Browser](<https://devfeed.tech/topics/headless-browser.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [containers](<https://devfeed.tech/tags/containers.md>), [control](<https://devfeed.tech/tags/control.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [deprecation](<https://devfeed.tech/tags/deprecation.md>), [error](<https://devfeed.tech/tags/error.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [linux](<https://devfeed.tech/tags/linux.md>), [maintenance](<https://devfeed.tech/tags/maintenance.md>), [management](<https://devfeed.tech/tags/management.md>), [memory](<https://devfeed.tech/tags/memory.md>), [migrate](<https://devfeed.tech/tags/migrate.md>), [upgrade](<https://devfeed.tech/tags/upgrade.md>)

## AI overview

Kubernetes is deprecating cgroup v1, with the kubelet defaulting to reject cgroup v1 nodes from v1.35 and fallback support scheduled for removal in v1.38. The article explains migration requirements and cgroup v2 behavior, including Memory QoS, resource controls, runtime configuration, and diagnostic commands.

## Source excerpt

In Linux, cgroups (control groups) are a kernel feature used for managing system resources. Kubernetes uses cgroups to allocate resources like CPU and memory to containers, ensuring that applications run smoothly without interfering with each other. With the release of Kubernetes v1.31, support for v1 cgroup management moved into maintenance mode. Support for v2 cgroup management has been stable since Kubernetes v1.25. Compared with cgroup v1, cgroup v2 provides a single unified hierarchy, a more consistent interface, and a stronger foundation for resource isolation and modern resource-management features. Deprecation of cgroup v1 Kubernetes has deprecated cgroup v1. Starting with Kubernetes v1.35, failCgroupV1 defaults to true, so the kubelet does not start on a cgroup v1 node by default. Administrators can temporarily set failCgroupV1: false in the kubelet configuration file, but removal will follow the Kubernetes deprecation policy. Further removal work is tracked in KEP-5573: Remove cgroup v1 support. If you are still on a release older than v1.35, migrate every Linux node to cgroup v2 before upgrading, or plan to set the temporary failCgroupV1: false override. If you are already on v1.35 or later, confirm that every Linux node runs cgroup v2 (or that you intentionally keep the override). Under the default configuration, a remaining cgroup v1 node fails during kubelet startup. For kubeadm-managed clusters, Kubernetes v1.35 also makes this an earlier, stricter check. The SystemVerification preflight check, provided by k8s.io/system-validators, returns an error during kubeadm init, kubeadm join, and kubeadm upgrade when it detects cgroup v1 with kubelet v1.35 or later; with an older kubelet, the check remains a warning. See kubernetes/system-validators#1.12.1 release notes for details. The top FAQs cover three main areas: why to migrate, the benefits and drawbacks, and key points to keep in mind when using cgroup v2. Limitations of cgroup v1 and Improvements with