traefik-helm-chart
traefik-helm-chart copied to clipboard
Pod disruption budget should allow percentages
A pod disruption budget should allow percentages for the .spec.minAvailable and .spec.maxUnavailable fields.
https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget
The chart casts them to integers which disallows this. https://github.com/containous/traefik-helm-chart/blob/289d2b2/traefik/templates/poddisruptionbudget.yaml#L17
Is there a particular reason to prevent percentages by converting to integer as mentionned above please ?
If there is none, I can make a PR to allow percentages if you want
We used to face a downtime of our production because of this conversion which lead to change 50% to 0.
Thanks for opening this issue guys, I created a corresponding PR to fix it.
Fixed with #528