openmetadata-helm-charts
openmetadata-helm-charts copied to clipboard
fix pod disruption budget
Checks
- [X] I have checked for existing issues.
- [X] This report is about the Openmetadata Helm Chart.
- [ ] This report is about the Openmetadata Dependencies Helm Chart.
Description
pod disruption budget can only have either maxUnavailable or minAvailable because minAvailable and maxUnavailable are mutually exclusive, it's basically in the K8s docs
Steps to reproduce
just enable podDisruptionBudget in helm values file and you will see the error
Chart Version
1.3.1
App Version
1.3.1
Kubernetes Version
1.25
Helm Version
3.12.0
Relevant Logs
Failed sync attempt to: one or more objects failed to apply, reason: PodDisruptionBudget.policy "openmetadata-poddisruptionbudget" is invalid: spec: Invalid value: policy.PodDisruptionBudgetSpec{MinAvailable:(*intstr.IntOrString)(0xc046c6f5e0), Selector:(*v1.LabelSelector)(0xc046c6f600), MaxUnavailable:(*intstr.IntOrString)(0xc046c6f5c0)}: minAvailable and maxUnavailable cannot be both set .
Custom Helm Values
podDisruptionBudget:
enabled: true
config:
maxUnavailable: "1"
minAvailable: "1"
Have you joined Openmetadata Slack community?
Yes
Hey @aakashg7 - Thanks for raising this issue. Would you like to contribute here ?
Hey @aakashg7 - As per the official documentation of Kubernetes PodDisruptionBudget, minAvailable
and maxUnavailable
values are mutually exclusive!
You can specify only one of maxUnavailable and minAvailable in a single PodDisruptionBudget.
Ref - https://kubernetes.io/docs/tasks/run-application/configure-pdb/
Closing this issue!