openmetadata-helm-charts icon indicating copy to clipboard operation
openmetadata-helm-charts copied to clipboard

fix pod disruption budget

Open aakashg7 opened this issue 11 months ago • 1 comments

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

aakashg7 avatar Mar 06 '24 11:03 aakashg7

Hey @aakashg7 - Thanks for raising this issue. Would you like to contribute here ?

akash-jain-10 avatar Apr 29 '24 05:04 akash-jain-10

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!

akash-jain-10 avatar May 30 '24 10:05 akash-jain-10