Consul + Vault
From Federal Burro of Information
Jump to navigationJump to search
Consul
removing a service
first list the service:
consul catalog services
Then deregister it:
consul service deregister -id=<name servicename>
But that won't do it, you need to tell each agent to remove it's service.
curl -s -S http://127.0.0.1:8500/v1/health/service/vault | jq . | more
in the Service clause there is an ID, for example "vault:127.0.0.1:8200"
curl -XPUT http://localhost:8500/v1/agent/service/deregister/vault:127.0.0.1:8200
all done:
consul catalog services