feat(helm): add podAntiAffinity (soft), run instances across nodes
This commit is contained in:
parent
e66c493366
commit
60d455c938
1 changed files with 11 additions and 0 deletions
|
|
@ -54,3 +54,14 @@ spec:
|
||||||
name: {{ .Release.Name }}-nextauth
|
name: {{ .Release.Name }}-nextauth
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.backend.resources | nindent 12 }}
|
{{- 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
|
||||||
|
|
|
||||||
Reference in a new issue