Files
HetznerTerra/infrastructure/charts/loki/templates/write/poddisruptionbudget-write.yaml
T

16 lines
487 B
YAML
Raw Normal View History

2026-05-04 10:49:46 +00:00
{{- $isSimpleScalable := eq (include "loki.deployment.isScalable" .) "true" -}}
{{- if and $isSimpleScalable (gt (int .Values.write.replicas) 1) }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "loki.writeFullname" . }}
namespace: {{ include "loki.namespace" . }}
labels:
{{- include "loki.writeLabels" . | nindent 4 }}
spec:
selector:
matchLabels:
{{- include "loki.writeSelectorLabels" . | nindent 6 }}
maxUnavailable: 1
{{- end }}