poddisruptionbudget.yaml 602 B

123456789101112131415161718
  1. {{- if .Values.podDisruptionBudget -}}
  2. apiVersion: policy/v1beta1
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ template "docker-registry.fullname" . }}
  6. namespace: {{ .Values.namespace | default .Release.Namespace }}
  7. labels:
  8. app: {{ template "docker-registry.name" . }}
  9. chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
  10. release: {{ .Release.Name }}
  11. heritage: {{ .Release.Service }}
  12. spec:
  13. selector:
  14. matchLabels:
  15. app: {{ template "docker-registry.name" . }}
  16. release: {{ .Release.Name }}
  17. {{ toYaml .Values.podDisruptionBudget | indent 2 }}
  18. {{- end -}}