Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
manager: make leader election timeouts configurable
Adding the following options: -leader-election-lease-duration duration Duration, in seconds, that non-leader candidates will wait to force acquire leadership. Defaults to 15 seconds. (default 15s) -leader-election-renew-deadline duration Duration, in seconds, that the acting leader will retry refreshing leadership before giving up. Defaults to 10 seconds. (default 10s) -leader-election-retry-period duration Duration, in seconds, the LeaderElector clients should wait between tries of actions. Defaults to 5 seconds. (default 5s) Some container platforms (like OpenShift) have recommendations for these timeout that differ from the Kubernetes defaults. With these options, deployments can define the timeouts according to their own preferences. Signed-off-by: Niels de Vos <[email protected]>
- Loading branch information