16 lines
557 B
YAML
16 lines
557 B
YAML
{{- if .Values.server.podDisruptionBudget.enabled }}
|
|
{{- $pdbSpec := omit .Values.server.podDisruptionBudget "enabled" }}
|
|
apiVersion: {{ template "prometheus.podDisruptionBudget.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "prometheus.server.fullname" . }}
|
|
namespace: {{ include "prometheus.namespace" . }}
|
|
labels:
|
|
{{- include "prometheus.server.labels" . | nindent 4 }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
{{- include "prometheus.server.matchLabels" . | nindent 6 }}
|
|
{{- toYaml $pdbSpec | nindent 2 }}
|
|
{{- end }}
|