diff --git a/roles/kubernetes/node/defaults/main.yml b/roles/kubernetes/node/defaults/main.yml index 82c416b03..afa9dc7b2 100644 --- a/roles/kubernetes/node/defaults/main.yml +++ b/roles/kubernetes/node/defaults/main.yml @@ -12,11 +12,11 @@ kube_resolv_conf: "/etc/resolv.conf" kubelet_enforce_node_allocatable: "\"\"" # Set runtime and kubelet cgroups when using systemd as cgroup driver (default) -kubelet_runtime_cgroups: "{{ kube_reserved_cgroups }}/containerd.service" +kubelet_runtime_cgroups: "{{ kube_reserved_cgroups }}/{{ container_manager }}.service" kubelet_kubelet_cgroups: "{{ kube_reserved_cgroups }}/kubelet.service" # Set runtime and kubelet cgroups when using cgroupfs as cgroup driver -kubelet_runtime_cgroups_cgroupfs: "/system.slice/containerd.service" +kubelet_runtime_cgroups_cgroupfs: "/system.slice/{{ container_manager }}.service" kubelet_kubelet_cgroups_cgroupfs: "/system.slice/kubelet.service" ### fail with swap on (default true)