sched: --leader-elect
flag is not honored well
#105704
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
sig/scheduling
Categorizes an issue or PR as relevant to SIG Scheduling.
What happened?
When
--leader-elect=false
is specified to start the scheduler, it's not honored well - the scheduler still tries to acquire leader election obj and it causes the scheduler to fail scheduling pods.What did you expect to happen?
The
--leader-elect
flag is always honored, no matter its corresponding fields in ComponentConfig is set or not.How can we reproduce it (as minimally and precisely as possible)?
See detailed steps reported by the user: kubernetes/website#29342 (comment)
Anything else we need to know?
No response
Kubernetes version
This issue occurs in k8s version >= 1.22.
Cloud provider
OS version
Install tools
Container runtime (CRI) and and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: