AmadeusITGroup / Redis-Operator

Redis Operator creates/configures/manages Redis clusters atop Kubernetes
MIT License
167 stars 62 forks source link

PDB bug fix: should not use minUnavailable for arbitrary pods #53

Closed technicianted closed 4 years ago

technicianted commented 5 years ago

The current implementation uses maxUnavailable set to 1 for the PDB policy. However, according to Kubernetes documentation, pods with arbitrary controllers cannot use it. Instead, minAvailable should be used.

This fix is important since PDB policy will prevent node draining/rebooting forever.