I have used docker-bench-security on one of the kube-node to check best practices, I found one warning that PID limit is not set on containers. So Please provide a solution that how do I set PID limit for container in Kubernetes.


Since Kubernetes 1.14, the kubelet supports limiting the number of PIDs a container can start.

The configuration parameter is called PodPidsLimit so depending on your Kubernetes distribution, you'll have to set that in your kubelet configuration.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.