trillian icon indicating copy to clipboard operation
trillian copied to clipboard

Leader election using Kubernetes leases

Open divergentdave opened this issue 1 year ago • 1 comments

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.

divergentdave avatar Apr 05 '24 00:04 divergentdave

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.

roger2hk avatar Apr 05 '24 10:04 roger2hk