14 lines
467 B
YAML
14 lines
467 B
YAML
{{- if .Values.podDisruptionBudget -}}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "prometheus-pushgateway.fullname" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ template "prometheus-pushgateway.defaultLabels" merge (dict "extraLabels" .Values.podLabels) . }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ template "prometheus-pushgateway.name" . }}
|
|
{{ toYaml .Values.podDisruptionBudget | indent 2 }}
|
|
{{- end -}} |