mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
feat: LimitMEMLOCK=infinity configuration to the containerd systemd service (#2609)
Signed-off-by: Kevinz <ruoshuidba@gmail.com>
This commit is contained in:
parent
acf1c51ea3
commit
e9a8ad5dd5
|
|
@ -17,8 +17,9 @@
|
|||
package templates
|
||||
|
||||
import (
|
||||
"github.com/lithammer/dedent"
|
||||
"text/template"
|
||||
|
||||
"github.com/lithammer/dedent"
|
||||
)
|
||||
|
||||
var ContainerdService = template.Must(template.New("containerd.service").Parse(
|
||||
|
|
@ -41,6 +42,7 @@ RestartSec=5
|
|||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
LimitNOFILE=1048576
|
||||
LimitMEMLOCK=infinity
|
||||
# Comment TasksMax if your systemd version does not supports it.
|
||||
# Only systemd 226 and above support this version.
|
||||
TasksMax=infinity
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ RestartSec=5
|
|||
LimitNPROC=infinity
|
||||
LimitCORE=infinity
|
||||
LimitNOFILE=1048576
|
||||
LimitMEMLOCK=infinity
|
||||
# Comment TasksMax if your systemd version does not supports it.
|
||||
# Only systemd 226 and above support this version.
|
||||
TasksMax=infinity
|
||||
|
|
|
|||
Loading…
Reference in New Issue