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 }}
|
{{- toYaml .Values.backend.resources | nindent 12 }}
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
# requiredDuringSchedulingIgnoredDuringExecution
|
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
labelSelector:
|
podAffinityTerm:
|
||||||
matchExpressions:
|
labelSelector:
|
||||||
- key: app.kubernetes.io/instance
|
matchExpressions:
|
||||||
operator: In
|
- key: app.kubernetes.io/instance
|
||||||
values:
|
operator: In
|
||||||
- {{ .Release.Name }}
|
values:
|
||||||
|
- {{ .Release.Name }}
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
|
|
|
||||||
Reference in a new issue