There are official utilities like consul-template and envconsul that allow to launch a service as a child-process and manage it based on information from KV storage.
But why there is no such a tool for the most obvious use-case - service registration?
I think it would be very useful to have a command-line tools that could spawn a service as a child process and ensure that it is registered in Consul as long as the process is alive.
1 Like
There are multiple ways to do what you want.
The least obtrusive way would be to use a proxy like the sidecar
pattern with Consul
Hi @AndreiPashkin,
There are a few tools developed by the community which provide the functionality you’re for.
- GitHub - ncbi/consul-announcer: Service announcer for Consul (https://www.consul.io/).
- GitHub - ClearcodeHQ/ianitor: Doorkeeper for consul discovered services
Hopefully one of them will work for your needs.
1 Like