Kubernetes
kubelet error
cgroups
node configuration
troubleshooting

How to fix The kubelet is unhealthy due to a misconfiguration of the node in some way required cgroups disabled error

System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design

Introduction

This kubelet error means the node does not expose the control-group features Kubernetes expects. In practice, the fix is usually at the host level, not inside Kubernetes itself: enable the required cgroup controllers, align the container runtime and kubelet driver settings, and then restart the node services. If you only restart kubelet without fixing the node, the error comes back immediately.

Why Kubernetes Cares About Cgroups

Kubernetes uses cgroups to track and enforce CPU, memory, and process limits for containers. If the required controllers are disabled or not mounted correctly, kubelet cannot manage pods safely and reports the node as unhealthy.

Common root causes are:

  • memory cgroup support disabled in the kernel boot configuration
  • cgroup controllers not mounted
  • mismatch between kubelet and container runtime cgroup driver
  • unusual minimal OS images with incomplete container prerequisites

On Raspberry Pi, old Ubuntu images, and custom VM templates, boot parameters are a particularly common cause.

Start With Host-Level Checks

Check whether the kernel exposes cgroup controllers:

bash
cat /proc/cgroups
mount | grep cgroup
stat -fc %T /sys/fs/cgroup

What you are looking for:

  • 'memory and other controllers enabled in /proc/cgroups'
  • cgroup mounts present under /sys/fs/cgroup
  • whether the machine is using cgroup v1 or v2

Also inspect the kubelet and runtime logs:

bash
journalctl -u kubelet -n 200 --no-pager
journalctl -u containerd -n 200 --no-pager

These logs usually confirm whether the complaint is about disabled controllers, driver mismatch, or boot-time configuration.

Fix Boot Parameters When Controllers Are Disabled

On systems where memory cgroups are disabled at boot, kubelet cannot recover on its own. You need to enable the kernel parameters and reboot.

A common legacy boot-line fix looks like this:

text
cgroup_enable=cpuset cgroup_enable=memory cgroup_memory=1

On systems that use /boot/cmdline.txt, append the parameters to the single existing line, reboot, and recheck /proc/cgroups.

After reboot:

bash
cat /proc/cgroups | grep memory

If the controller still shows as disabled, the boot parameters were not applied correctly or the image/kernel does not support the required configuration.

Align the Cgroup Driver Between Kubelet and Runtime

Even with cgroups enabled, kubelet can fail if its driver expectations do not match the runtime. The common pairing on modern Linux with containerd is systemd.

For containerd, inspect the config:

bash
grep SystemdCgroup /etc/containerd/config.toml

A common healthy setting is:

toml
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
  SystemdCgroup = true

If you change it, restart containerd and kubelet:

bash
sudo systemctl restart containerd
sudo systemctl restart kubelet

For kubeadm-managed clusters, also make sure the kubelet configuration is not forcing a conflicting cgroup driver.

Distinguish Cgroup v1 and v2 Issues

Modern Linux distributions increasingly use cgroup v2. Kubernetes and your container runtime need to support the host mode you are using. If the node is half-configured for one style and the runtime is expecting another, kubelet health checks can fail in ways that look like a generic cgroup problem.

This is why the stat -fc %T /sys/fs/cgroup output matters. It tells you whether you are on cgroup2fs or an older layout.

Validate the Fix End to End

Once you change the host configuration, do not stop at "kubelet restarted." Validate the node properly:

bash
systemctl status kubelet --no-pager
kubectl get nodes
kubectl describe node <node-name>

If the node reaches Ready, the host configuration is now acceptable to kubelet. If it stays unhealthy, inspect the logs again rather than repeating the same restarts.

When This Happens in Local Lab Environments

This issue is common in:

  • Raspberry Pi and ARM lab clusters
  • nested virtualization setups
  • old cloud images reused for Kubernetes without container prerequisites
  • custom Linux installs optimized for minimal footprint

In those environments, the host OS often needs a small amount of manual boot and runtime tuning before kubelet can work correctly.

Common Pitfalls

  • Restarting kubelet repeatedly without checking the host cgroup configuration.
  • Fixing the runtime driver but forgetting to reboot after changing kernel boot parameters.
  • Assuming every Linux image has memory cgroups enabled by default.
  • Ignoring the difference between cgroup controller availability and cgroup driver alignment.
  • Diagnosing only Kubernetes manifests when the failure is clearly at the node level.

Summary

  • This error is a node-configuration problem, not an application-level Kubernetes problem.
  • Check /proc/cgroups, cgroup mounts, and kubelet logs first.
  • Enable missing kernel cgroup controllers at boot and reboot the node.
  • Align kubelet and runtime cgroup-driver settings, especially with containerd.
  • Validate the fix with node readiness and logs instead of assuming a restart solved it.

Course
Beginner
27 lessons
10 hours
System Design Fundamentals

Build a strong foundation in designing scalable, reliable distributed systems.

View the course
System Design practice on Codemia

Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.

Practice system design