Skip to content

Commit

Permalink
Introduction of poddisruptionbudget for openmetadata server
Browse files Browse the repository at this point in the history
  • Loading branch information
preetsshah committed Nov 20, 2023
1 parent eba3bf4 commit 2034f0d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
20 changes: 20 additions & 0 deletions charts/openmetadata/templates/poddisruptionbudget.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{{- if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "OpenMetadata.fullname" . }}-poddisruptionbudget
labels:
{{- include "OpenMetadata.labels" . | indent 4 }}
spec:
{{- with .Values.podDisruptionBudget.config }}
{{- if .minAvailable }}
minAvailable: {{ .minAvailable }}
{{- end }}
{{- if .maxUnavailable }}
maxUnavailable: {{ .maxUnavailable }}
{{- end }}
{{- end }}
selector:
matchLabels:
{{- include "OpenMetadata.selectorLabels" . | nindent 6 }}
{{- end }}
8 changes: 7 additions & 1 deletion charts/openmetadata/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -389,5 +389,11 @@ startupProbe:
path: /healthcheck
port: http-admin

podDisruptionBudget:
enabled: true
config:
maxUnavailable: 1
# minAvailable: 1

commonLabels: {}
podAnnotations: {}
podAnnotations: {}

0 comments on commit 2034f0d

Please sign in to comment.