1
0
Fork 0

feat(helm): add podAntiAffinity (soft), run instances across nodes

This commit is contained in:
Vojtěch Mareš 2023-09-03 10:53:25 +02:00
parent e66c493366
commit 60d455c938
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -54,3 +54,14 @@ spec:
name: {{ .Release.Name }}-nextauth
resources:
{{- toYaml .Values.backend.resources | nindent 12 }}
affinity:
podAntiAffinity:
# requiredDuringSchedulingIgnoredDuringExecution
preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/instance
operator: In
values:
- {{ .Release.Name }}
topologyKey: kubernetes.io/hostname