Skip to content

Commit

Permalink
Merge pull request #16300 from kubernetes/revert-16151-limitnofile-patch
Browse files Browse the repository at this point in the history
Revert "Don't set LimitNoFile for containerd systemd unit file"
  • Loading branch information
k8s-ci-robot authored Jan 30, 2024
2 parents dd7548c + f445dfc commit 6a1783b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions nodeup/pkg/model/containerd.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func (b *ContainerdBuilder) buildSystemdService(sv semver.Version) *nodetasks.Se

manifest.Set("Service", "LimitNPROC", "infinity")
manifest.Set("Service", "LimitCORE", "infinity")
manifest.Set("Service", "LimitNOFILE", "infinity")
manifest.Set("Service", "TasksMax", "infinity")

// make killing of processes of this unit under memory pressure very unlikely
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ definition: |
RestartSec=5
LimitNPROC=infinity
LimitCORE=infinity
LimitNOFILE=infinity
TasksMax=infinity
OOMScoreAdjust=-999
Expand Down
1 change: 1 addition & 0 deletions nodeup/pkg/model/tests/containerdbuilder/simple/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ definition: |
RestartSec=5
LimitNPROC=infinity
LimitCORE=infinity
LimitNOFILE=infinity
TasksMax=infinity
OOMScoreAdjust=-999
Expand Down

0 comments on commit 6a1783b

Please sign in to comment.