-
Notifications
You must be signed in to change notification settings - Fork 333
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
Leader election seems broken for Kubernetes #3611
Comments
Leader election is either handled by When we start the The solution we have now is to delay calling Our controllers also end up as components and unfortunately, there seems to be no way with I think the best fix is to change this upstream in |
Leader election was changed in #3023 |
Created kubernetes-sigs/controller-runtime#1766 with proposed change |
Don't we need leader election to be working for the next release though? |
@jpeach yeah I think we can maintain a fork until it's upstreamed, it's not a very significant change. |
Closes kumahq#3611 Signed-off-by: Mike Beaumont <[email protected]>
Never mind, there's an easy fix that works for our use case that doesn't require an upstream change! |
Closes kumahq#3611 Signed-off-by: Mike Beaumont <[email protected]>
Closes #3611 Signed-off-by: Mike Beaumont <[email protected]>
What happened?
When updating
kuma-cp
, the new control plane starts thecontroller-runtime.Manager
immediately, leading to reconciliation errors because of concurrent resource updates.This likely has to do with
LeaderElection
being disabled in thecontroller-runtime.Manager
. It may be possible to hook our leader-for-life election into theManager
.The text was updated successfully, but these errors were encountered: