mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 08:18:44 -03:30
Add LimitMEMLOCK parameter configuration in containerd.service (#9269)
Signed-off-by: bo.jiang <bo.jiang@daocloud.io> Signed-off-by: bo.jiang <bo.jiang@daocloud.io>
This commit is contained in:
@@ -46,3 +46,9 @@ containerd_registry_auth: []
|
|||||||
# - registry: 10.0.0.2:5000
|
# - registry: 10.0.0.2:5000
|
||||||
# username: user
|
# username: user
|
||||||
# password: pass
|
# password: pass
|
||||||
|
|
||||||
|
# Configure containerd service
|
||||||
|
containerd_limit_proc_num: "infinity"
|
||||||
|
containerd_limit_core: "infinity"
|
||||||
|
containerd_limit_open_file_num: "infinity"
|
||||||
|
containerd_limit_mem_lock: "infinity"
|
||||||
|
|||||||
@@ -28,9 +28,10 @@ Restart=always
|
|||||||
RestartSec=5
|
RestartSec=5
|
||||||
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||||
# in the kernel. We recommend using cgroups to do container-local accounting.
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
||||||
LimitNPROC=infinity
|
LimitNPROC={{ containerd_limit_proc_num }}
|
||||||
LimitCORE=infinity
|
LimitCORE={{ containerd_limit_core }}
|
||||||
LimitNOFILE=infinity
|
LimitNOFILE={{ containerd_limit_open_file_num }}
|
||||||
|
LimitMEMLOCK={{ containerd_limit_mem_lock }}
|
||||||
# Comment TasksMax if your systemd version does not supports it.
|
# Comment TasksMax if your systemd version does not supports it.
|
||||||
# Only systemd 226 and above support this version.
|
# Only systemd 226 and above support this version.
|
||||||
TasksMax=infinity
|
TasksMax=infinity
|
||||||
|
|||||||
Reference in New Issue
Block a user