I’m setting up a 3 node Consul cluster to use as Vault’s data backend. Since the Vault docs recommend using custom ports so you don’t end up messing with a non-Vault instance of Consul, I configured my ports like so:
ports {
dns = 7600
http = 7500
serf_lan = 7301
serf_wan = 7302
server = 7300
sidecar_min_port = 21000
sidecar_max_port = 21255
}
I seem to have started it successfully if the output of journalctl is to be believed, but when I try to use the cli, it just doesn’t work.
As a specific example, here is what I get for my consul members
output:
Error retrieving members: Get "http://127.0.0.1:8500/v1/agent/members?segment=_all": dial tcp 127.0.0.1:8500: connect: connection refused
Why isn’t it using port 7500 like in the config file?
If I try consul members -config-dir=/etc/consul.d
I get this message: flag provided but not defined: -config-dir
.
How do I get the Consul cli tool to work?
My nodes are running Ubuntu 18.04 and Consul is installed via the HashiCorp repos.
Thanks in advance!