mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-18 03:30:07 -03:30
Fix Kubelet and Containerd when using cgroupfs as cgroup driver (#8123)
This commit is contained in:
@@ -14,11 +14,14 @@ kube_resolv_conf: "/etc/resolv.conf"
|
||||
# Set to empty to avoid cgroup creation
|
||||
kubelet_enforce_node_allocatable: "\"\""
|
||||
|
||||
# Set runtime cgroups
|
||||
# Set runtime and kubelet cgroups when using systemd as cgroup driver (default)
|
||||
kubelet_runtime_cgroups: "/systemd/system.slice"
|
||||
# Set kubelet cgroups
|
||||
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"
|
||||
|
||||
### fail with swap on (default true)
|
||||
kubelet_fail_swap_on: true
|
||||
|
||||
@@ -66,6 +69,11 @@ kubelet_max_pods: 110
|
||||
## Support parameters to be passed to kubelet via kubelet-config.yaml
|
||||
kubelet_config_extra_args: {}
|
||||
|
||||
## Parameters to be passed to kubelet via kubelet-config.yaml when cgroupfs is used as cgroup driver
|
||||
kubelet_config_extra_args_cgroupfs:
|
||||
systemCgroups: /system.slice
|
||||
cgroupRoot: /
|
||||
|
||||
## Support parameters to be passed to kubelet via kubelet-config.yaml only on nodes, not masters
|
||||
kubelet_node_config_extra_args: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user