Granis87's picture
Initial upload of MnemoCore
dbb04e4 verified
raw
history blame contribute delete
782 Bytes
{{/*
Pod Disruption Budget for MnemoCore
*/}}
{{- if .Values.mnemocore.podDisruptionBudget.enabled }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "mnemocore.fullname" . }}-pdb
labels:
{{- include "mnemocore.labels" . | nindent 4 }}
app.kubernetes.io/component: api
spec:
{{- if .Values.mnemocore.podDisruptionBudget.minAvailable }}
minAvailable: {{ .Values.mnemocore.podDisruptionBudget.minAvailable }}
{{- end }}
{{- if .Values.mnemocore.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ .Values.mnemocore.podDisruptionBudget.maxUnavailable }}
{{- end }}
selector:
matchLabels:
{{- include "mnemocore.selectorLabels" . | nindent 6 }}
app.kubernetes.io/component: api
{{- end }}