The version milestones
With the release of Kubernetes v1.31, support for v1 cgroup management moved into maintenance mode. [1]
Support for v2 cgroup management has been stable since Kubernetes v1.25. [2]
What v2 adds
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. [3]
Unlike cgroup v1, cgroup v2 officially supports delegation. [4]
Most implementations of rootless containers rely on systemd for delegating v2 controllers to non-root users. [5]
Features that depend on v2
The kubelet coordinates changes between the Pod-level and container cgroups so that increases create headroom before container limits grow, while decreases constrain containers before shrinking the Pod-level boundary. [6]
Accurate aggregate enforcement for this v1.36 feature requires cgroup v2. [7]
Sources
- The Kubernetes project source says: With the release of Kubernetes v1.31, support for v1 cgroup management moved into maintenance mode. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: Support for v2 cgroup management has been stable since Kubernetes v1.25. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: 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. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: Unlike cgroup v1, cgroup v2 officially supports delegation. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: Most implementations of rootless containers rely on systemd for delegating v2 controllers to non-root users. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: The kubelet coordinates changes between the Pod-level and container cgroups so that increases create headroom before container limits grow, while decreases constrain containers before shrinking the Pod-level boundary. The Shift to cgroup v2 in Kubernetes
- The Kubernetes project source says: Accurate aggregate enforcement for this v1.36 feature requires cgroup v2. The Shift to cgroup v2 in Kubernetes