Skip to content

Commit

Permalink
feat: enable leader-election
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed May 31, 2023
1 parent 3ebd69c commit 8aae096
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8aae096

Please sign in to comment.