---
title: "The Shift to cgroup v2 in Kubernetes: What You Need to Know"
description: "Kubernetes has deprecated cgroup v1: from v1.35 the kubelet refuses to start on cgroup v1 nodes by default (`failCgroupV1: true`), kubeadm preflight errors on it, and the fallback is slated for removal in v1.38. cgroup v2 enables Memory QoS with `memory.high` throttling and tiered `memory.min`/`memory.low` reservations, container-wide OOM kills via `memory.oom.group`, safe rootless delegation, eBPF-based device control, PSI metrics, and accurate Pod-level in-place resizing."
url: "https://swe.quest/articles/the-shift-to-cgroup-v2-in-kubernetes-what-you-need-to-know-ef93aafe6f995ba1"
canonical: "https://kubernetes.io/blog/2026/10/06/kubernetes-cgroups-v2-shift/"
source: "Kubernetes Blog"
published: "2026-10-06"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 11
tags: ["kubernetes","linux","containers","memory-management"]
---

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

A post on [Kubernetes Blog](https://swe.quest/sources/kubernetes.md), published 2026-10-06, 11 min read, Deep dive. Original: [https://kubernetes.io/blog/2026/10/06/kubernetes-cgroups-v2-shift/](https://kubernetes.io/blog/2026/10/06/kubernetes-cgroups-v2-shift/)

## Summary

Kubernetes has deprecated cgroup v1: from v1.35 the kubelet refuses to start on cgroup v1 nodes by default (\`failCgroupV1: true\`), kubeadm preflight errors on it, and the fallback is slated for removal in v1.38. cgroup v2 enables Memory QoS with \`memory.high\` throttling and tiered \`memory.min\`/\`memory.low\` reservations, container-wide OOM kills via \`memory.oom.group\`, safe rootless delegation, eBPF-based device control, PSI metrics, and accurate Pod-level in-place resizing. Migration requires kernel 5.8+ (5.9+ for Memory QoS), a cgroup v2-capable runtime, and matching cgroup drivers, ideally systemd with CRI auto-detection. A step-by-step procedure traces Pod resource limits from the API through CRI, OCI spec, and systemd scope down to the actual cgroup files.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Kubernetes](https://swe.quest/tags/kubernetes.md) (Infrastructure)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Memory management](https://swe.quest/tags/memory-management.md) (Compilers & runtimes)

## Prerequisites

- Kubernetes kubelet and Pod resources ([easy posts on Kubernetes](https://swe.quest/tags/kubernetes.md?difficulty=easy))
- Linux cgroups ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))
- container runtimes (CRI) ([easy posts on Runtimes & VMs](https://swe.quest/tags/runtimes.md?difficulty=easy))

## Keywords

cgroup v2, kubelet, Memory QoS, containerd, CRI-O, systemd, PSI, kubeadm

## Related posts

- [Kubernetes v1.38 Sneak Peek](https://swe.quest/articles/kubernetes-v1-38-sneak-peek-0b9c569924e11f5d.md): Kubernetes Blog · 2026-11-23 · Hard · 7 min read · Kubernetes, Containers, Linux, Deployment
  Kubernetes v1.38, planned for December 16, 2026, will require container runtimes to report the cgroup driver via the CRI RuntimeConfig RPC.
- [Kubernetes v1.37: Memory QoS Graduates to Beta](https://swe.quest/articles/kubernetes-v1-37-memory-qos-graduates-to-beta-fd0e7f486b964589.md): Kubernetes Blog · 2026-09-14 · Medium · 4 min read · Kubernetes, Linux, Memory management, Configuration management
  Memory QoS is Beta and on by default in Kubernetes v1.37, using the cgroup v2 memory controller to guide how the kernel throttles and protects container memory.
- [Kubernetes v1.37 Sneak Peek](https://swe.quest/articles/kubernetes-v1-37-sneak-peek-c4169a25f549491d.md): Kubernetes Blog · 2026-07-31 · Medium · 6 min read · Kubernetes, Storage systems, Linux, Networking
  Kubernetes v1.37 deprecates kube-proxy's ipvs mode, which still relies on iptables underneath. ipvs is slated to be off by default by v1.40 and removed by v1.43.
- [Spin Infrastructure Adventures: Containers, Systemd, and CGroups](https://swe.quest/articles/spin-infrastructure-adventures-containers-systemd-and-cgroups-5a9e742638fea62c.md): Shopify Engineering · 2022-07-15 · Hard · 8 min read · Containers, Linux, Kubernetes, Debugging, Multi-tenancy
  Spin development instances run systemd inside Kubernetes containers, and processes launched through systemd escaped the pod's memory cgroup, so pod memory limits were not enforced and instances could exceed their allotment and disturb neighbours.
- [Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups](https://swe.quest/articles/debugging-systems-in-the-cloud-mysql-kubernetes-and-cgroups-a5ded3f862ca5b21.md): Shopify Engineering · 2021-10-21 · Hard · 8 min read · Debugging, Linux, MySQL, Kubernetes, Performance engineering
  Slow MySQL Pod startup and degraded query performance on long-running GKE nodes in Shopify's KateSQL platform traced back to a Linux kernel memory cgroup leak: roughly 50K zombie memory cgroups made mem\_cgroup\_commit\_charge slow, so each 128MB mmap during InnoDB buffer pool initialization took about 100 ms. The investigation used strace, perf flamegraphs, slabtop and /proc/cgroups, and Google kernel engineers confirmed it as a side effect of slab reparenting on cgroup removal.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
