How does leader election work for the scheduler and controller manager?
AdvancedConceptArchitecture & Control Plane
Answer
You can run several replicas, but only one is active. They compete for a Lease object in kube-system (kube-scheduler, kube-controller-manager); the holder renews it every few seconds, and if it stops, another replica takes over after the lease duration. This gives HA without split-brain actions.
kubectl -n kube-system get lease kube-scheduler -o yaml