mirror of https://github.com/easzlab/kubeasz.git
fix: kubelet failed when enabling kubeReserved or systemReserved
parent
104cba1875
commit
69da3353a1
|
@ -54,8 +54,8 @@ imageMinimumGCAge: 2m0s
|
|||
{% if KUBE_RESERVED_ENABLED == "yes" %}
|
||||
kubeReservedCgroup: /podruntime.slice
|
||||
kubeReserved:
|
||||
cpu: 200m
|
||||
memory: 400Mi
|
||||
cpu: 500m
|
||||
memory: 1000Mi
|
||||
pid: "1000"
|
||||
{% endif %}
|
||||
kubeAPIBurst: 100
|
||||
|
@ -80,8 +80,8 @@ syncFrequency: 1m0s
|
|||
{% if SYS_RESERVED_ENABLED == "yes" %}
|
||||
systemReservedCgroup: /system.slice
|
||||
systemReserved:
|
||||
cpu: 200m
|
||||
memory: 500Mi
|
||||
cpu: 500m
|
||||
memory: 1000Mi
|
||||
pid: "5000"
|
||||
{% endif %}
|
||||
tlsCertFile: {{ ca_dir }}/kubelet.pem
|
||||
|
|
|
@ -22,6 +22,8 @@ ExecStartPre=/bin/mkdir -p /sys/fs/cgroup/systemd/system.slice
|
|||
|
||||
ExecStartPre=/bin/mkdir -p /sys/fs/cgroup/hugetlb/podruntime.slice
|
||||
ExecStartPre=/bin/mkdir -p /sys/fs/cgroup/hugetlb/system.slice
|
||||
|
||||
ExecStartPre=/bin/mkdir -p /sys/fs/cgroup/podruntime.slice
|
||||
{% endif %}
|
||||
ExecStart={{ bin_dir }}/kubelet \
|
||||
--config=/var/lib/kubelet/config.yaml \
|
||||
|
|
Loading…
Reference in New Issue