gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

Add API endpoint to reload the configuration

Open amuntean-godaddy opened this issue 1 year ago • 3 comments

I am using cousul kv to manage the subscriptions configuration and consul-template to render the gnmi config in k8s. In case I change the subscriptions configuration in kv, the gnmi does not reload it's config and requires a manual re-deployments of the pods.

It will be great if you can add api endpoint to force the reload.

Example: curl -X POST http://localhost:7890/-/reload

amuntean-godaddy avatar Dec 29 '24 06:12 amuntean-godaddy

Something similar was added before see here It respawns the whole pod but it will essentially achieve the same result.

karimra avatar Jan 06 '25 22:01 karimra

Thanks @karimra

amuntean-godaddy avatar Jan 07 '25 17:01 amuntean-godaddy

The only thing is that re-spawning the whole pod will take more time, which will result in a metrics gaps(~1m). I think with reloading config this time can be improved.

amuntean-godaddy avatar Jan 07 '25 17:01 amuntean-godaddy