Update _common.tpl
Signed-off-by: laiminhtrung1997 <68812829+laiminhtrung1997@users.noreply.github.com>
This commit is contained in:
parent
99932a96c2
commit
72602d8b6e
1 changed files with 1 additions and 7 deletions
|
@ -79,8 +79,8 @@ Node affinity
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $preset := .context.Values.global.affinity -}}
|
{{- $preset := .context.Values.global.affinity -}}
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
{{- if (eq $preset.podAntiAffinity "soft") }}
|
{{- if (eq $preset.podAntiAffinity "soft") }}
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
podAffinityTerm:
|
podAffinityTerm:
|
||||||
labelSelector:
|
labelSelector:
|
||||||
|
@ -88,12 +88,6 @@ podAntiAffinity:
|
||||||
app.kubernetes.io/name: {{ include "argo-cd.name" .context }}-{{ .component.name }}
|
app.kubernetes.io/name: {{ include "argo-cd.name" .context }}-{{ .component.name }}
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
{{- else }}
|
{{- else }}
|
||||||
- weight: 100
|
|
||||||
podAffinityTerm:
|
|
||||||
labelSelector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/name: {{ include "argo-cd.name" .context }}-{{ .component.name }}
|
|
||||||
topologyKey: topology.kubernetes.io/zone
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
|
Loading…
Reference in a new issue