24 lines
853 B
YAML
24 lines
853 B
YAML
{{- if .Values.podDisruptionBudget.enabled }}
|
|
apiVersion: {{ include "k8s-prometheus-adapter.pdb.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ template "k8s-prometheus-adapter.fullname" . }}
|
|
namespace: {{ include "k8s-prometheus-adapter.namespace" . }}
|
|
{{- if .Values.customAnnotations }}
|
|
annotations:
|
|
{{- toYaml .Values.customAnnotations | nindent 4 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "k8s-prometheus-adapter.labels" . | indent 4 }}
|
|
spec:
|
|
{{- if .Values.podDisruptionBudget.minAvailable }}
|
|
minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.podDisruptionBudget.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "k8s-prometheus-adapter.selectorLabels" . | indent 6 }}
|
|
{{- end }}
|