Skip to content

Kind

Failed to Create Cluster due to cgroup Error

This happens while creating the second cluster with kind. The process halts with warnings about cgroups.

On commodity Linux systems, the logical limit values are generally small. (Kind of like abstract resource attacks.)

In this scenario, kind may hit the logical limits. Another issue also mentions a similar problem.

kind also provides a workaround: set fs.inotify.max_user_instances to a large number.

sudo sysctl fs.inotify.max_user_instances=2048

To make the change persistent, we can also write it to /etc/sysctl.conf.

fs.inotify.max_user_instances = 2048

Failed to Delete Cluster

This problem may be caused by AppArmor. (Sadly, I cannot find other possible causes.)

Disable AppArmor for containerd:

sudo systemctl disable apparmor
sudo service apparmor teardown