pdb.yaml 701 B

123456789101112131415161718
  1. {{- if and .Values.podDisruptionBudget.enabled (eq .Values.mode "deployment") }}
  2. apiVersion: {{ include "podDisruptionBudget.apiVersion" . }}
  3. kind: PodDisruptionBudget
  4. metadata:
  5. name: {{ include "opentelemetry-collector.fullname" . }}
  6. labels:
  7. {{- include "opentelemetry-collector.labels" . | nindent 4 }}
  8. spec:
  9. {{- if .Values.podDisruptionBudget.minAvailable }}
  10. minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
  11. {{- end }}
  12. {{- if .Values.podDisruptionBudget.maxUnavailable }}
  13. maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
  14. {{- end }}
  15. selector:
  16. matchLabels:
  17. {{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }}
  18. {{- end }}