bottlerocket-os / bottlerocket

An operating system designed for hosting containers
https://bottlerocket.dev
Other
8.57k stars 506 forks source link

Support for system-reserved pid setting #3788

Open alihassan-waters opened 6 months ago

alihassan-waters commented 6 months ago

What I'd like: Support for setting the pid resource reservation.

This is currently supported in Kubernetes here: https://kubernetes.io/docs/tasks/administer-cluster/reserve-compute-resources/#system-reserved

Kubelet Flag: --system-reserved=[cpu=100m][,][memory=100Mi][,][ephemeral-storage=1Gi][,][pid=1000]

Any alternatives you've considered: none applicable

ginglis13 commented 6 months ago

Hi @alihassan-waters, thanks for the issue. Can you provide more details on your use case for this setting?

alihassan-waters commented 4 months ago

Hi @alihassan-waters, thanks for the issue. Can you provide more details on your use case for this setting?

We have this setting in our kubernetes cluster without bottlerocket and we require to match the current settings to keep things consistent on the cluster nodes. It is to make sure the system has enough pids available to it to do what it needs to do without it being compromised.