diff --git a/cmd/machine-healthcheck/main.go b/cmd/machine-healthcheck/main.go index c42467dbb7..812f8b61fb 100644 --- a/cmd/machine-healthcheck/main.go +++ b/cmd/machine-healthcheck/main.go @@ -59,7 +59,7 @@ func main() { leaderElectLeaseDuration := flag.Duration( "leader-elect-lease-duration", - 15*time.Second, + 90*time.Second, "The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.", ) diff --git a/cmd/machineset/main.go b/cmd/machineset/main.go index 7ed5dddbee..109b306bbb 100644 --- a/cmd/machineset/main.go +++ b/cmd/machineset/main.go @@ -75,7 +75,7 @@ func main() { leaderElectLeaseDuration := flag.Duration( "leader-elect-lease-duration", - 15*time.Second, + 90*time.Second, "The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.", ) diff --git a/cmd/nodelink-controller/main.go b/cmd/nodelink-controller/main.go index 73bae14dac..99572c5a54 100644 --- a/cmd/nodelink-controller/main.go +++ b/cmd/nodelink-controller/main.go @@ -44,7 +44,7 @@ func main() { leaderElectLeaseDuration := flag.Duration( "leader-elect-lease-duration", - 15*time.Second, + 90*time.Second, "The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.", ) diff --git a/cmd/vsphere/main.go b/cmd/vsphere/main.go index 5a9758739b..89d3e767f6 100644 --- a/cmd/vsphere/main.go +++ b/cmd/vsphere/main.go @@ -45,7 +45,7 @@ func main() { leaderElectLeaseDuration := flag.Duration( "leader-elect-lease-duration", - 15*time.Second, + 90*time.Second, "The duration that non-leader candidates will wait after observing a leadership renewal until attempting to acquire leadership of a led but unrenewed leader slot. This is effectively the maximum duration that a leader can be stopped before it is replaced by another candidate. This is only applicable if leader election is enabled.", ) diff --git a/pkg/operator/sync.go b/pkg/operator/sync.go index 7b7c48d537..7c2b51d742 100644 --- a/pkg/operator/sync.go +++ b/pkg/operator/sync.go @@ -423,6 +423,7 @@ func newContainers(config *OperatorConfig, features map[string]bool) []corev1.Co "--logtostderr=true", "--v=3", "--leader-elect=true", + "--leader-elect-lease-duration=90s", fmt.Sprintf("--namespace=%s", config.TargetNamespace), }