feat: LimitMEMLOCK=infinity configuration to the containerd systemd service (#2609)
Some checks failed
CI / Build (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Sync Feature Branch to Main / sync-feature (push) Has been cancelled
Kubernetes-Auto-Support / update-kubernetes-version (push) Has been cancelled

Signed-off-by: Kevinz <ruoshuidba@gmail.com>
This commit is contained in:
Kevin 2025-06-11 14:38:26 +08:00 committed by GitHub
parent acf1c51ea3
commit e9a8ad5dd5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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