kubeasz/roles/containerd/templates/containerd.service.j2

23 lines
585 B
Plaintext
Raw Normal View History

2019-05-18 16:48:58 +08:00
[Unit]
Description=containerd container runtime
Documentation=https://containerd.io
After=network.target
[Service]
Environment="PATH={{ bin_dir }}:/bin:/sbin:/usr/bin:/usr/sbin"
2020-08-21 19:55:17 +08:00
ExecStartPre=-/sbin/modprobe overlay
2019-05-18 16:48:58 +08:00
ExecStart={{ bin_dir }}/containerd
Restart=always
RestartSec=5
Delegate=yes
KillMode=process
OOMScoreAdjust=-999
LimitNOFILE=1048576
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNPROC=infinity
LimitCORE=infinity
[Install]
WantedBy=multi-user.target