Consul + Vault

From Federal Burro of Information
Revision as of 18:22, 23 May 2019 by David (talk | contribs) (Created page with " == Consul == == removing a service == first list the service: consul catalog services Then deregister it: consul service deregister -id=<name servicename> But that wo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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