Skip to content

Commit

Permalink
try topology constraints to balance
Browse files Browse the repository at this point in the history
  • Loading branch information
QxBytes committed Jan 23, 2025
1 parent b41e45d commit eacd125
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,10 @@ spec:
periodSeconds: 5
nodeSelector:
kubernetes.io/os: linux
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: "goldpinger"
7 changes: 7 additions & 0 deletions test/integration/manifests/datapath/linux-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,10 @@ spec:
periodSeconds: 5
nodeSelector:
kubernetes.io/os: linux
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: "goldpinger"
7 changes: 7 additions & 0 deletions test/integration/manifests/datapath/windows-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ spec:
args: ["sleep", "5000"]
nodeSelector:
kubernetes.io/os: windows
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app: "datapod"

0 comments on commit eacd125

Please sign in to comment.