Cgroup v2 support #2710
-
Hello, I'm having troubles running rke2 v1.22.7 version on a cluster based on RHEL 8 nodes with cgroup v2. I followed the indications from k8s website : So, I use :
And I set grub with these parameters :
The Server node is running without troubles, but the Agent node has kubelet stucked in a starting loop with the following error : Do you have any idea about this issue ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 19 replies
-
You shouldn't need to change anything in RKE2 to support cgroupv2. The correct cgroup driver should be detected and configured automatically.
There should be other errors prior to this; can you attach the actual log contents? |
Beta Was this translation helpful? Give feedback.
-
Hi, I finally managed to run rke2-agent properly on my RHEL 8 node using cgroup v2 through systemd. The kernel documentation indicates the following restriction on the CPU controller :
Indeed, the rtkit-daemon was running on the node, so the related cgroup slice made this RT process not in the root cgroup. I added the following element to the rke2 service configuration to move the MainPID service into the root cgroup : Then, the rke2-agent service starts working as expected. Note that this solution suppose that rtkit-daemon:
|
Beta Was this translation helpful? Give feedback.
Hi,
I finally managed to run rke2-agent properly on my RHEL 8 node using cgroup v2 through systemd.
The kernel documentation indicates the following restriction on the CPU controller :
Indeed, the rtkit-daemon was running on the node, so the related cgroup slice made this RT process not in the root cgroup.
…