Skip to content

Commit 272c66d

Browse files
committed
try topology constraints to balance
1 parent 46fdd0c commit 272c66d

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

test/integration/manifests/datapath/linux-deployment-ipv6.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,10 @@ spec:
8686
periodSeconds: 5
8787
nodeSelector:
8888
kubernetes.io/os: linux
89+
topologySpreadConstraints:
90+
- maxSkew: 1
91+
topologyKey: kubernetes.io/hostname
92+
whenUnsatisfiable: ScheduleAnyway
93+
labelSelector:
94+
matchLabels:
95+
app: "goldpinger"

test/integration/manifests/datapath/linux-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,10 @@ spec:
8484
periodSeconds: 5
8585
nodeSelector:
8686
kubernetes.io/os: linux
87+
topologySpreadConstraints:
88+
- maxSkew: 1
89+
topologyKey: kubernetes.io/hostname
90+
whenUnsatisfiable: ScheduleAnyway
91+
labelSelector:
92+
matchLabels:
93+
app: "goldpinger"

test/integration/manifests/datapath/windows-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ spec:
2020
args: ["sleep", "5000"]
2121
nodeSelector:
2222
kubernetes.io/os: windows
23+
topologySpreadConstraints:
24+
- maxSkew: 1
25+
topologyKey: kubernetes.io/hostname
26+
whenUnsatisfiable: ScheduleAnyway
27+
labelSelector:
28+
matchLabels:
29+
app: "datapod"

0 commit comments

Comments
 (0)