Skip to content
IJK

Kubernetes cgroup v2: The Version Milestones and Dependent Features

By IJK ·

The version milestones the Kubernetes project's post gives for cgroup v1 and v2, what v2 adds and the feature it says requires v2.

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]

Kubernetes v1.25v2 cgroup management stableKubernetes v1.31v1 cgroup management in maintenance mode
Which Kubernetes version does the post tie to each cgroup milestone?

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

  1. 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
  2. The Kubernetes project source says: Support for v2 cgroup management has been stable since Kubernetes v1.25. The Shift to cgroup v2 in Kubernetes
  3. 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
  4. The Kubernetes project source says: Unlike cgroup v1, cgroup v2 officially supports delegation. The Shift to cgroup v2 in Kubernetes
  5. 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
  6. 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
  7. The Kubernetes project source says: Accurate aggregate enforcement for this v1.36 feature requires cgroup v2. The Shift to cgroup v2 in Kubernetes

Editorial (AI-assisted; automatically checked, not human-reviewed). Each statement is linked to its source; check the source before relying on a detail.

  • kubernetes
  • cgroups
  • linux
  • operations