-
Notifications
You must be signed in to change notification settings - Fork 679
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 to configure leader election #6374
Comments
Hey @usiegl00! Thanks for opening your first issue. We appreciate your contribution and welcome you to our community! We are glad to have you here and to have your input on Contour. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace |
I would say this is actually intended behavior, since the leader facility is used to ensure status updates to resources are only ever written by a single contour instance at a time ensuring no conflicts in reported status, all contour instances continue to serve identical xDS configuration to the connected Envoys regardless of their individual leader status At your own risk, take a look at the existing |
Thank you for helping me with this issue. Setting Here are the new contour logs:
And these envoy messages appear when it loses connection to contour and stops serving requests:
Is there any flag for envoy to keep serving existing traffic upon losing connection to contour? |
The Contour project currently lacks enough contributors to adequately respond to all Issues. This bot triages Issues according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
Commenting here to prevent github-actions from closing. |
The Contour project currently lacks enough contributors to adequately respond to all Issues. This bot triages Issues according to the following rules:
You can:
Please send feedback to the #contour channel in the Kubernetes Slack |
Commenting here to prevent github-actions from closing. |
If the k8s apiserver stops responding, contour will assume that it lost a leader election and stop itself while any other contour pods will be unable to acquire the lease.
Here is the logs of the contour leader that crashes:
Here are the logs of the non-leaders:
Eventually, all contour pods will enter a CrashBackoffLoop and envoy is no longer able to serve traffic.
Having the option to disable leader election would help decouple contour from transient failures of the control-plane and improve reliability.
The text was updated successfully, but these errors were encountered: