From e3ed71f1fd9d84d0eb6230e21a7b49973254b067 Mon Sep 17 00:00:00 2001 From: Ilya Margolin Date: Wed, 2 Feb 2022 09:50:22 +0100 Subject: [PATCH] Fix kubelet_kubelet_cgroups_cgroupfs (#8500) If kubelet is run with systemd (as it always is when using kubespray), it starts in systemd's /system.slice/kubelet.service cgroup. This commit prevents a creation and usage of a second unrelated cgroup. --- roles/kubernetes/node/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/node/defaults/main.yml b/roles/kubernetes/node/defaults/main.yml index c97ee9acab8..f80ec767ff3 100644 --- a/roles/kubernetes/node/defaults/main.yml +++ b/roles/kubernetes/node/defaults/main.yml @@ -30,7 +30,7 @@ kubelet_kubelet_cgroups: "/systemd/system.slice" # Set runtime and kubelet cgroups when using cgroupfs as cgroup driver kubelet_runtime_cgroups_cgroupfs: "/system.slice/containerd.service" -kubelet_kubelet_cgroups_cgroupfs: "/system.slice/kubelet.slice" +kubelet_kubelet_cgroups_cgroupfs: "/system.slice/kubelet.service" ### fail with swap on (default true) kubelet_fail_swap_on: true