I am trying to install kubernetes on a fedora34 machine. The preflight fails with the following error:

[ERROR SystemVerification]: missing required cgroups: memory

I have been trying to find out where this comes from, and what to do about it. So far with no success. What I found out is that fedora 34 uses cgroups v2 by default. And according to the docs you can finds out which controllers are active the following way:

[root@pi43 cgroup]# cat cgroup.controllers
cpuset cpu io pids

And there I see no mention of memory.

According to the official cgroups v2 doc enabling a controller is done by writing to cgroup.subtree_control

[root@pi43 cgroup]# echo "+memory" > cgroup.subtree_control
-bash: echo: write error: Invalid argument

However, as you see in the above example, this does not work as expected.

So I am stuck. How do I solve this?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy