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