-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add option for disabling leader election #2423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option for disabling leader election #2423
Conversation
Signed-off-by: Yi Chen <[email protected]>
Signed-off-by: Yi Chen <[email protected]>
/assign @jacobsalway |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to have leader election on the webhook at all? It's a mostly stateless service that can have multiple replicas. The only part that might be relevant to have leader election on is the TLS certificate generation/setting the secret, but this only needs to be done once and exponentially retries on conflict or error anyway so I think it's fine if multiple replicas attempt to do this.
The core of this PR looks good to me though. Happy to tick and add a separate PR for removing leader election.
For the TLS certificate generation process, I think it can work fine even without leader election.
Multiple webhook server replicas can work at the same time with/without leader election. But for the controller part, |
I'll have a look at this myself. In the mean time this PR doesn't introduce any breaking changes so happy to approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jacobsalway The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Add option for disabling leader election Signed-off-by: Yi Chen <[email protected]> * Remove related RBAC rules when disabling leader election Signed-off-by: Yi Chen <[email protected]> --------- Signed-off-by: Yi Chen <[email protected]> (cherry picked from commit 1f2cfbc)
Purpose of this PR
Close #2384
Proposed changes:
controller.leaderElection.enable
andwebhook.leaderElection.enable
for disabling controller/webhook leader electionChange Category
Rationale
Checklist
Additional Notes