Add PodDisruptionBudget

This commit is contained in:
Caleb Woodbine
2021-05-15 20:21:37 +12:00
parent f9aadb39bc
commit 07317f55e1
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{{ if .Values.podDisruptionBudget.enabled }}
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: {{ include "plausible-analytics.fullname" . }}
labels:
{{- include "plausible-analytics.labels" . | nindent 4 }}
{{- if .Values.labels }}
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
annotations:
{{- if .Values.annotations }}
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
spec:
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
selector:
matchLabels:
{{- include "plausible-analytics.selectorLabels" . | nindent 6 }}
{{- end }}