k3s/pkg/kubelet/cm
Kubernetes Submit Queue bf111161b7
Merge pull request #57973 from dims/set-pids-limit-at-pod-level
Automatic merge from submit-queue (batch tested with PRs 57973, 57990). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Set pids limit at pod level

**What this PR does / why we need it**:

Add a new Alpha Feature to set a maximum number of pids per Pod.
This is to allow the use case where cluster administrators wish
to limit the pids consumed per pod (example when running a CI system).

By default, we do not set any maximum limit, If an administrator wants
to enable this, they should enable `SupportPodPidsLimit=true` in the
`--feature-gates=` parameter to kubelet and specify the limit using the
`--pod-max-pids` parameter.

The limit set is the total count of all processes running in all
containers in the pod.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #43783

**Special notes for your reviewer**:

**Release note**:

```release-note
New alpha feature to limit the number of processes running in a pod. Cluster administrators will be able to place limits by using the new kubelet command line parameter --pod-max-pids. Note that since this is a alpha feature they will need to enable the "SupportPodPidsLimit" feature.
```
2018-01-25 18:29:31 -08:00
..
cpumanager Remove unused code in UT files in pkg/ 2018-01-15 16:02:35 +08:00
cpuset Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
devicemanager Rename package deviceplugin => devicemanager. 2018-01-24 22:32:43 -08:00
util Autogenerate BUILD files 2017-12-23 13:12:11 -08:00
BUILD Rename package deviceplugin => devicemanager. 2018-01-24 22:32:43 -08:00
OWNERS Add ConnorDoyle as approver in /pkg/kubelet/cm. 2017-12-06 09:05:59 -06:00
cgroup_manager_linux.go Set pids limit at pod level 2018-01-11 21:22:38 -05:00
cgroup_manager_linux_test.go new testcase to cgroup_manager_linux.go 2017-11-30 14:14:59 +08:00
cgroup_manager_test.go Lift embedded structure out of eviction-related KubeletConfiguration fields 2017-11-16 18:35:13 -08:00
cgroup_manager_unsupported.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -08:00
container_manager.go Merge pull request #57973 from dims/set-pids-limit-at-pod-level 2018-01-25 18:29:31 -08:00
container_manager_linux.go Merge pull request #57973 from dims/set-pids-limit-at-pod-level 2018-01-25 18:29:31 -08:00
container_manager_linux_test.go use GetFileType per mount.Interface to check hostpath type 2017-09-26 09:57:06 +08:00
container_manager_stub.go Merge pull request #57266 from vikaschoudhary16/unhealthy_device 2018-01-12 19:55:54 -08:00
container_manager_unsupported.go Remove redundant code in container manager. 2017-11-24 03:15:55 -08:00
container_manager_windows.go Extends deviceplugin to gracefully handle full device plugin lifecycle. 2017-11-20 23:40:14 -08:00
fake_internal_container_lifecycle.go Un-revert "CPU manager wiring and `none` policy" 2017-09-04 07:24:59 -07:00
helpers_linux.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -08:00
helpers_linux_test.go update cadvisor, docker, and runc godeps 2017-09-05 12:38:57 -07:00
helpers_unsupported.go Add pod-level metric for CPU and memory stats 2017-11-22 09:25:23 -08:00
internal_container_lifecycle.go Fixed nil InternalContainerLifecycle in cm stubs. 2017-09-04 07:24:59 -07:00
node_container_manager.go Move some kubelet constants to a common place. 2017-12-01 11:24:04 +08:00
node_container_manager_test.go Fix --kube-reserved storage key name and add test cases for node allocatable reservation 2017-09-26 09:32:21 +08:00
pod_container_manager_linux.go Set pids limit at pod level 2018-01-11 21:22:38 -05:00
pod_container_manager_stub.go run hack/update-all 2017-06-22 11:31:03 -07:00
pod_container_manager_unsupported.go Remove redundant code in container manager. 2017-11-24 03:15:55 -08:00
qos_container_manager_linux.go Merge pull request #52977 from yanxuean/improvecgroup 2017-11-18 13:13:28 -08:00
types.go Set pids limit at pod level 2018-01-11 21:22:38 -05:00