Skip to content

Commit 2fe0d8d

Browse files
committed
Add podAntiAffinity
1 parent b4c046c commit 2fe0d8d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

infra/argo-apps/aws-load-balancer.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ spec:
1212
replicaCount: 1
1313
clusterName: code4ro-prod
1414
affinity:
15+
podAntiAffinity:
16+
preferredDuringSchedulingIgnoredDuringExecution:
17+
- podAffinityTerm:
18+
labelSelector:
19+
matchExpressions:
20+
- key: app.kubernetes.io/name
21+
operator: In
22+
values:
23+
- aws-load-balancer-controller
24+
topologyKey: kubernetes.io/hostname
25+
weight: 100
1526
nodeAffinity:
1627
requiredDuringSchedulingIgnoredDuringExecution:
1728
nodeSelectorTerms:

0 commit comments

Comments
 (0)