Skip to content

Commit

Permalink
Merge pull request #272 from Ye-Ting/patch-1
Browse files Browse the repository at this point in the history
采用 preferredDuringSchedulingIgnoredDuringExecution 优化 hwameistor-scheduler 调度逻辑
  • Loading branch information
SSmallMonster authored Sep 5, 2022
2 parents d5df092 + dcd4620 commit 7f9cc57
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions helm/hwameistor/templates/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ spec:
labels:
app: hwameistor-scheduler
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: node-role.kubernetes.io/master
operator: Exists
containers:
- args:
- -v=2
Expand Down

0 comments on commit 7f9cc57

Please sign in to comment.