Browse Source

SupportPodPidsLimit is locked to true of 1.20, making pids cgroup support mandatory

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/3992/head
Brad Davidson 3 years ago committed by Brad Davidson
parent
commit
90960ebf4e
  1. 5
      pkg/daemons/agent/agent_linux.go

5
pkg/daemons/agent/agent_linux.go

@ -139,10 +139,7 @@ func kubeletArgs(cfg *config.Agent) map[string]string {
argsMap["cpu-cfs-quota"] = "false"
}
if !hasPIDs {
logrus.Warn("Disabling pod PIDs limit feature due to missing cgroup pids support")
argsMap["cgroups-per-qos"] = "false"
argsMap["enforce-node-allocatable"] = ""
argsMap["feature-gates"] = util.AddFeatureGate(argsMap["feature-gates"], "SupportPodPidsLimit=false")
logrus.Fatal("PIDS cgroup support not found")
}
if kubeletRoot != "" {
argsMap["kubelet-cgroups"] = kubeletRoot

Loading…
Cancel
Save