poddisruptionbudget-ingester.yaml 537 B

1234567891011121314
  1. {{- if gt (int .Values.ingester.replicas) 1 }}
  2. {{ $dict := dict "ctx" . "component" "ingester" "memberlist" true }}
  3. apiVersion: {{ include "tempo.pdb.apiVersion" . }}
  4. kind: PodDisruptionBudget
  5. metadata:
  6. name: {{ include "tempo.resourceName" $dict }}
  7. labels:
  8. {{- include "tempo.labels" $dict | nindent 4 }}
  9. spec:
  10. selector:
  11. matchLabels:
  12. {{- include "tempo.selectorLabels" $dict | nindent 6 }}
  13. maxUnavailable: {{ sub (.Values.ingester.replicas) (add (div .Values.ingester.config.replication_factor 2) 1) }}
  14. {{- end }}