-
Notifications
You must be signed in to change notification settings - Fork 90
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
Reload when config is updated #46
Comments
Hi @jackiepg12, there's (currently) no support for reloading the config on the fly - either automatically or via a signal. The config is only read on startup, so if you need to modify it, you'll need to restart the exporter. If you'd like to work on a config reload feature, I'd be happy to discuss how it might work? |
@jackiepg12 best way to reload the config is just redeploy the exporter or kill the pod. This is pretty common with many apps when it comes to initializing config at runtime. |
@jackiepg12 |
+2 on |
@opsforce @jonny-wg2 Could you please give a example ? |
The reloader docs will help. But here you go, with the configmap name being
|
@braedon I think this definitely a plus. I had this requirement today, and had a look at the code. Shouldn't be too hard to implement, if I get around at learning how to reset the scheduler from scratch. I'm wondering if you have any thoughts on the best way forward? Currently, this is what I'm doing:
So far, seems to work well.... but it's definitely more convoluted than a simple SIGHUP or dnotify... |
How to reload when the config is updated?
The text was updated successfully, but these errors were encountered: