Skip to content

Kind

Failed to Create Cluster due to cgroup Error

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

On commodity linux systems, the logic limit values are generally small. (Kinds of like abstract resource attacks)

In this sceneario, kind is possible to hit the logic limits. Anothor issue also mentioned the similar problem.

And kind also provides a workaround. This is to 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 the change towards /etc/sysctl.conf.

fs.inotify.max_user_instances = 2048

Failed to Delete Cluster

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

Disable AppArmor for containerd:

sudo systemctl disable apparmor
sudo service apparmor teardown