Blogs / What a cgroup Is and What Kubernetes Uses It For

What a cgroup Is and What Kubernetes Uses It For

What the Kubernetes project's post says a cgroup is, what Kubernetes uses it for and what version 2 provides.

  • Learning
  • 1 min read

For: Learners new to containers.

What a cgroup is

In Linux, cgroups (control groups) are a kernel feature used for managing system resources.[1]

What Kubernetes uses it for

Kubernetes uses cgroups to allocate resources like CPU and memory to containers, ensuring that applications run smoothly without interfering with each other.[1]

Linux kernelprovides cgroupsKubernetesallocates CPU and memorythrough cgroupsContainersrun without interferingwith each other
What does Kubernetes use cgroups for?

What version 2 provides

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.[1]

Sources

  1. The Shift to cgroup v2 in Kubernetes (kubernetes.io · checked )

More articles