Did you know?
One command tells you whether a Linux machine uses cgroup v1 or v2.
Kubernetes 1.35+ needs cgroup v2 nodes; cgroup2fs means you are ready, tmpfs means cgroup v1.
- DevOps & cloud
- Last checked
Explained
Run stat -fc %T /sys/fs/cgroup/. It prints the file system type mounted at /sys/fs/cgroup: cgroup2fs means the machine uses cgroup v2, and tmpfs means the older cgroup v1 (or hybrid) layout.
This matters for containers. Since Kubernetes 1.35 the kubelet refuses to start on cgroup v1 nodes unless you set failCgroupV1: false, and cgroup v1 support is planned for removal in a future release. Current distributions, including Ubuntu 26.04 and 24.04, Debian 13 and RHEL 10, use cgroup v2 by default, so old nodes and long-lived images are the ones to check.
On a systemd distribution still on v1, you can switch by adding systemd.unified_cgroup_hierarchy=1 to the kernel command line and rebooting.
Learn more
- Kubernetes 1.38: Release Date, New Features and Deprecations Full guide · Updated Dec 2026
