Skip to content

Commit

Permalink
Merge pull request kosmos-io#118 from qiuming520/release-1.21
Browse files Browse the repository at this point in the history
fix kosmos-scheduler miss lease permission
  • Loading branch information
kosmos-robot authored Oct 18, 2023
2 parents 81cabc4 + aadce39 commit 9e424ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion deploy/scheduler/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ rules:
resources:
- leases
resourceNames:
- kube-scheduler
- kosmos-scheduler
- verbs:
- create
apiGroups:
Expand Down

0 comments on commit 9e424ef

Please sign in to comment.