Browse Source

Fix kube_reserved_cgroups_for_service_slice

The default value is used across kubespray but only defined in
kubernetes/node.
Move it to kubespray-defaults
pull/10643/head
Max Gautier 2 months ago
parent
commit
1533d40411
Failed to extract signature
2 changed files with 3 additions and 1 deletions
  1. 1
      roles/kubernetes/node/defaults/main.yml
  2. 3
      roles/kubespray-defaults/defaults/main/main.yml

1
roles/kubernetes/node/defaults/main.yml

@ -36,7 +36,6 @@ kubelet_secure_addresses: "localhost link-local {{ kube_pods_subnet }} {{ kube_n
# Reserve this space for kube resources
# Whether to run kubelet and container-engine daemons in a dedicated cgroup. (Not required for resource reservations).
kube_reserved: false
kube_reserved_cgroups_for_service_slice: kube.slice
kube_reserved_cgroups: "/{{ kube_reserved_cgroups_for_service_slice }}"
kube_memory_reserved: 256Mi
kube_cpu_reserved: 100m

3
roles/kubespray-defaults/defaults/main/main.yml

@ -29,6 +29,9 @@ kube_proxy_mode: ipvs
## The timeout for init first control-plane
kubeadm_init_timeout: 300s
# TODO: remove this
kube_reserved_cgroups_for_service_slice: kube.slice
## List of kubeadm init phases that should be skipped during control plane setup
## By default 'addon/coredns' is skipped
## 'addon/kube-proxy' gets skipped for some network plugins

Loading…
Cancel
Save