poddisruptionbudget-querier.yaml 653 B

1234567891011121314151617181920
  1. {{- if gt (int .Values.querier.replicas) 1 }}
  2. {{- if not .Values.querier.maxUnavailable }}
  3. {{- fail "`.Values.querier.maxUnavailable` must be set when `.Values.querier.replicas` is greater than 1." }}
  4. {{- else }}
  5. apiVersion: {{ include "loki.pdb.apiVersion" . }}
  6. kind: PodDisruptionBudget
  7. metadata:
  8. name: {{ include "loki.querierFullname" . }}
  9. namespace: {{ .Release.Namespace }}
  10. labels:
  11. {{- include "loki.querierLabels" . | nindent 4 }}
  12. spec:
  13. selector:
  14. matchLabels:
  15. {{- include "loki.querierSelectorLabels" . | nindent 6 }}
  16. {{- with .Values.querier.maxUnavailable }}
  17. maxUnavailable: {{ . }}
  18. {{- end }}
  19. {{- end }}
  20. {{- end }}