Skip to content

Commit 91709c0

Browse files
perf: try to ensure pods are evenly distributed
1 parent f774466 commit 91709c0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

deployment.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ spec:
1515
app: igneous
1616
spec:
1717
dnsPolicy: Default
18+
topologySpreadConstraints:
19+
- maxSkew: 1
20+
topologyKey: "kubernetes.io/hostname"
21+
whenUnsatisfiable: ScheduleAnyway
22+
labelSelector:
23+
matchLabels:
24+
app: igneous
25+
affinity:
26+
podAntiAffinity:
27+
preferredDuringSchedulingIgnoredDuringExecution:
28+
- weight: 100
29+
podAffinityTerm:
30+
topologyKey: "kubernetes.io/hostname"
31+
labelSelector:
32+
matchLabels:
33+
app: igneous
1834
containers:
1935
- name: igneous
2036
image: seunglab/igneous

0 commit comments

Comments
 (0)