Blogs / Why Kubernetes Is Phasing Out cgroup v1

Why Kubernetes Is Phasing Out cgroup v1

What the Kubernetes v1.37 sneak peek says happens to the kubelet on a cgroup v1 node, what the override is and what depends on cgroup v2.

  • Learning
  • 1 min read

For: Learners who know what a container is and want to understand Kubernetes nodes.

What changes on a cgroup v1 node

As modern Linux distributions and container runtimes use cgroup v2 as the default, support for the legacy cgroup v1 is officially being phased out.[1]

Since the v1.35 release, the failCgroupV1 setting has defaulted to true.[1]

Consequently, the kubelet will fail to initialize on any nodes that still rely on cgroup v1 unless an explicit configuration override is applied.[1]

Why the override is short-term

Using this override should be considered a short-term fix.[1]

While the override remains available in Kubernetes v1.37, users are encouraged to migrate to cgroup v2, as support for cgroup v1 is planned to be removed in a future release.[1]

A node still relyingon cgroup v1failCgroupV1 defaults totrueThe kubelet fails toinitializeunless an explicit overrideis appliedMigrate to cgroup v2In-Place Pod Resizing andTiered Memory Protectionneed itshort-term fix only
What happens on a cgroup v1 node and what the post says to do?

What depends on cgroup v2

Advanced resource management capabilities, such as In-Place Pod Resizing and Tiered Memory Protection, depend entirely on cgroup v2.[1]

Sources

  1. Kubernetes v1.37 sneak peek (kubernetes.io · checked )

More articles