pdb.yaml 767 B

12345678910111213141516171819
  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. namespace: {{ template "opentelemetry-collector.namespace" . }}
  7. labels:
  8. {{- include "opentelemetry-collector.labels" . | nindent 4 }}
  9. spec:
  10. {{- if .Values.podDisruptionBudget.minAvailable }}
  11. minAvailable: {{ .Values.podDisruptionBudget.minAvailable }}
  12. {{- end }}
  13. {{- if .Values.podDisruptionBudget.maxUnavailable }}
  14. maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}
  15. {{- end }}
  16. selector:
  17. matchLabels:
  18. {{- include "opentelemetry-collector.selectorLabels" . | nindent 6 }}
  19. {{- end }}