XenitAB / gatekeeper-library

Collection of OPA Gatekeeper policies that can be used in your Kubernetes cluster.
MIT License
14 stars 7 forks source link

HPA minReplicas vs PDB minAvailable check #79

Open NissesSenap opened 2 years ago

NissesSenap commented 2 years ago

Create a upstream issue in the gatekeeper-libary on how to solve the issue of having to small minReplicas vs minAvaliable on your PDB.

In PDB setting minAvailable: 2 and in HPA setting minReplicas: 1 will potentially lock a node from draining when cordoned thanks to the PDB rule.

https://github.com/open-policy-agent/gatekeeper-library/issues/202