Skip to content

Commit

Permalink
Merge pull request #827 from shkrid/leader-election-for-controller
Browse files Browse the repository at this point in the history
Allow leader election for scheduler-plugins-controller in Helm chart
  • Loading branch information
k8s-ci-robot authored Nov 12, 2024
2 parents e42fe3d + 8438d1e commit 5b7116b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
serviceAccountName: {{ .Values.controller.name }}
containers:
- name: scheduler-plugins-controller
args:
{{- if .Values.controller.leaderElect }}
- --enableLeaderElection
{{- end }}
image: {{ .Values.controller.image }}
imagePullPolicy: IfNotPresent
{{- with .Values.controller.resources }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ rules:
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch", "update"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["create", "get", "update"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch", "patch"]
Expand Down
1 change: 1 addition & 0 deletions manifests/install/charts/as-a-second-scheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ controller:
name: scheduler-plugins-controller
image: registry.k8s.io/scheduler-plugins/controller:v0.30.6
replicaCount: 1
leaderElect: false
priorityClassName: ""
resources: {}
nodeSelector: {}
Expand Down

0 comments on commit 5b7116b

Please sign in to comment.