Skip to content
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 using Kubernetes leases #3431

Open
divergentdave opened this issue Apr 5, 2024 · 1 comment
Open

Leader election using Kubernetes leases #3431

divergentdave opened this issue Apr 5, 2024 · 1 comment

Comments

@divergentdave
Copy link

Kubernetes Lease resources could be used as an alternative backend for leader election. This could simplify deployments on Kubernetes (such as in examples/deployments/kubernetes) by eliminating the need for a second etcd cluster running as a Kubernetes workload.

@roger2hk
Copy link
Contributor

roger2hk commented Apr 5, 2024

The leader election example from k8s.io looks easy to implement.
https://pkg.go.dev/k8s.io/client-go/examples/leader-election

Unfortunately the Kubernetes deployment examples in this repo are outdated. It would be hard to test the end-to-end deployment for the leader election change without modernising the k8s deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants