Skip to content

Conversation

stefanprodan
Copy link
Member

This PR allows fine tuning the leader election with cmd args:

--enable-leader-election=true
--leader-election-release-on-cancel=true
--leader-election-lease-duration=35s
--leader-election-renew-deadline=30s
--leader-election-retry-period=5s

To make the leader election more tolerant to transient Kubernetes API outages, the renewal deadline was increased from 10s to 30s and the retry interval was bumped to 5 seconds.

Test image:

docker.io/stefanprodan/source-controller:ls-config-a034c5d

Part of: fluxcd/pkg#94
Ref: #317

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit eaec164 into main Mar 25, 2021
@stefanprodan stefanprodan deleted the le-config branch March 25, 2021 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants