pdb.yaml 518 B

1234567891011121314
  1. {{- if .Values.server.podDisruptionBudget.enabled }}
  2. apiVersion: {{ template "prometheus.podDisruptionBudget.apiVersion" . }}
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ template "prometheus.server.fullname" . }}
  6. {{ include "prometheus.namespace" . | indent 2 }}
  7. labels:
  8. {{- include "prometheus.server.labels" . | nindent 4 }}
  9. spec:
  10. maxUnavailable: {{ .Values.server.podDisruptionBudget.maxUnavailable }}
  11. selector:
  12. matchLabels:
  13. {{- include "prometheus.server.labels" . | nindent 6 }}
  14. {{- end }}