Files
service-catalog/charts/rancher-monitoring/charts/prometheus-adapter/templates/pdb.yaml
T
2024-12-02 11:32:46 +09:00

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 }}