STRRL / cloudflare-tunnel-ingress-controller

🚀 Expose the website directly into the internet! The Kuberntes Ingress Controller based on Cloudflare Tunnel.
MIT License
689 stars 39 forks source link

Feature request: Controller leader election #130

Open z0rc opened 1 month ago

z0rc commented 1 month ago

It's expected to run multiple controller replicas simultaneously for HA. In the same time, given the nature of controller's logic, it doesn't make sense to allow every replica do the actuall work, as this can trigger race condition.

https://sklar.rocks/kubernetes-leader-election/

STRRL commented 1 month ago

Yeah, that would be coll and could be easily supported with controller-runtime, https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/leaderelection .

I am very appriciate for your great idea for pushing this project near to production available step by step!

Do you have interests in building it? ❤️ Or I could make it in the next days. 🚀

z0rc commented 1 month ago

@STRRL my Go skills are at that level, so it's up to you. Thanks.