Skip to content

Commit

Permalink
fix kosmos-scheduler miss lease permission
Browse files Browse the repository at this point in the history
Signed-off-by: qiuming520 <[email protected]>
  • Loading branch information
qiuming520 committed Oct 13, 2023
1 parent 81cabc4 commit 1bc154d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deploy/scheduler/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ spec:
- name: kosmos-scheduler
image: ghcr.io/kosmos-io/scheduler:0.0.2
command:
- /scheduler
- scheduler
- --leader-elect=true
- --leader-elect-resource-name=kosmos-scheduler
- --leader-elect-resource-namespace=kosmos-system
- --config=/etc/kubernetes/kube-scheduler/scheduler-config.yaml
resources:
requests:
Expand Down
1 change: 1 addition & 0 deletions deploy/scheduler/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ rules:
- leases
resourceNames:
- kube-scheduler
- kosmos-scheduler
- verbs:
- create
apiGroups:
Expand Down

0 comments on commit 1bc154d

Please sign in to comment.