kubezero/charts/kubezero-metrics/charts/kube-prometheus-stack/charts/grafana/templates/poddisruptionbudget.yaml

23 lines
667 B
YAML
Raw Normal View History

{{- if .Values.podDisruptionBudget }}
2022-08-24 15:13:39 +00:00
apiVersion: {{ include "grafana.podDisruptionBudget.apiVersion" . }}
kind: PodDisruptionBudget
metadata:
2022-12-06 20:43:11 +00:00
name: {{ include "grafana.fullname" . }}
namespace: {{ include "grafana.namespace" . }}
labels:
{{- include "grafana.labels" . | nindent 4 }}
2022-12-06 20:43:11 +00:00
{{- with .Values.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
2022-12-06 20:43:11 +00:00
{{- with .Values.podDisruptionBudget.minAvailable }}
minAvailable: {{ . }}
{{- end }}
{{- with .Values.podDisruptionBudget.maxUnavailable }}
maxUnavailable: {{ . }}
{{- end }}
selector:
matchLabels:
{{- include "grafana.selectorLabels" . | nindent 6 }}
{{- end }}