diff --git a/deploy/scheduler/deployment.yaml b/deploy/scheduler/deployment.yaml index c92742e3b..8acc679c2 100644 --- a/deploy/scheduler/deployment.yaml +++ b/deploy/scheduler/deployment.yaml @@ -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: diff --git a/deploy/scheduler/rbac.yaml b/deploy/scheduler/rbac.yaml index 5f9aa3ddb..fb460fd67 100644 --- a/deploy/scheduler/rbac.yaml +++ b/deploy/scheduler/rbac.yaml @@ -48,7 +48,7 @@ rules: resources: - leases resourceNames: - - kube-scheduler + - kosmos-scheduler - verbs: - create apiGroups: