fix(helm): difference between preferred... and required...
- preferred (soft) pod (anti) affinity has weights and podAffinityTerm, required does not - required (hard) pod (anti) affinity has directly array with labelSelector (no weight and no podAffinityTerm)
This commit is contained in:
parent
aa0637e6fc
commit
0f7fee21e0
1 changed files with 7 additions and 7 deletions
|
|
@ -56,13 +56,13 @@ spec:
|
|||
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 100
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: app.kubernetes.io/instance
|
||||
operator: In
|
||||
values:
|
||||
- {{ .Release.Name }}
|
||||
podAffinityTerm:
|
||||
labelSelector:
|
||||
matchExpressions:
|
||||
- key: app.kubernetes.io/instance
|
||||
operator: In
|
||||
values:
|
||||
- {{ .Release.Name }}
|
||||
topologyKey: kubernetes.io/hostname
|
||||
|
|
|
|||
Reference in a new issue