pdb.yaml 448 B

1234567891011121314
  1. {{- if and .Values.podDisruptionBudget (gt (int .Values.replicaCount) 1) }}
  2. apiVersion: policy/v1
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ include "podinfo.fullname" . }}
  6. namespace: {{ include "podinfo.namespace" . }}
  7. labels:
  8. {{- include "podinfo.labels" . | nindent 4 }}
  9. spec:
  10. selector:
  11. matchLabels:
  12. {{- include "podinfo.selectorLabels" . | nindent 6 }}
  13. {{- toYaml .Values.podDisruptionBudget | nindent 2 }}
  14. {{- end }}