diff --git a/internal/cmd/cmd.go b/internal/cmd/cmd.go index 391aafe..1208f1f 100644 --- a/internal/cmd/cmd.go +++ b/internal/cmd/cmd.go @@ -101,6 +101,8 @@ func CreateControllerManager(config *controller.Config, logger logr.Logger) ( mgr, err = ctrl.NewManager(config.K8sConfig, ctrl.Options{ MetricsBindAddress: config.MetricsAddr, HealthProbeBindAddress: config.ProbeAddr, + LeaderElection: true, + LeaderElectionID: "kubelet-csr-approver", }) if err != nil {