poddisruptionbudget-index-gateway.yaml 690 B

12345678910111213141516171819
  1. {{- if and .Values.indexGateway.enabled (gt (int .Values.indexGateway.replicas) 1) }}
  2. {{- if not .Values.indexGateway.maxUnavailable }}
  3. {{- fail "`.Values.indexGateway.maxUnavailable` must be set when `.Values.indexGateway.replicas` is greater than 1." }}
  4. {{- else }}
  5. apiVersion: {{ include "loki.pdb.apiVersion" . }}
  6. kind: PodDisruptionBudget
  7. metadata:
  8. name: {{ include "loki.indexGatewayFullname" . }}
  9. labels:
  10. {{- include "loki.indexGatewayLabels" . | nindent 4 }}
  11. spec:
  12. selector:
  13. matchLabels:
  14. {{- include "loki.indexGatewaySelectorLabels" . | nindent 6 }}
  15. {{- with .Values.indexGateway.maxUnavailable }}
  16. maxUnavailable: {{ . }}
  17. {{- end }}
  18. {{- end }}
  19. {{- end }}