poddisruptionbudget.yaml 469 B

1234567891011121314151617
  1. ---
  2. {{- if .Values.maxUnavailable }}
  3. apiVersion: policy/v1beta1
  4. kind: PodDisruptionBudget
  5. metadata:
  6. name: "{{ template "logstash.fullname" . }}-pdb"
  7. labels:
  8. app: "{{ template "logstash.fullname" . }}"
  9. chart: "{{ .Chart.Name }}"
  10. heritage: {{ .Release.Service | quote }}
  11. release: {{ .Release.Name | quote }}
  12. spec:
  13. maxUnavailable: {{ .Values.maxUnavailable }}
  14. selector:
  15. matchLabels:
  16. app: "{{ template "logstash.fullname" . }}"
  17. {{- end }}