Reloader
Reloader copied to clipboard
Add HA support in Reloader
Is it possible to have two replicas running at the same time? I mean, are they able to coordinate so, when a configmap/secret changes, only one of them takes care of reloading the associated deployment/statefulset/etc?
The use case is being able to deploy reloader with HA guarantees in a K8S cluster.
Thanks. This project is really useful.
Hi @palmerabollo, you can run multiple instances of reloader at the same time but there will be no coordination between those instances.
Thanks @aliartiza75. That means that your deployment/statefulset/etc can be reloaded as many times as the number of reloader replicas you have, right?
I think that leveraging kubernetes leader-election capabilities would be a nice improvement.
yes, @palmerabollo your resources will be reloaded by each instance of reloader but it can cause concurrent modification error.
Thanks for the suggestion I will look at the requested feature.
We would also appreciate this feature 👍🏻
A simple leader election implementation would be great: https://itnext.io/leader-election-in-kubernetes-using-client-go-a19cbe7a9a85
This should be fixed now. Reloader now supports leader election.