ipv6 так причудливо сказывается
https://github.com/hashicorp/consul/issues/3924
https://www.consul.io/docs/agent/options#_client опция вполне валидная сама по себе
-bind - The address that should be bound to for internal cluster communications. This is an IP address that should be reachable by all other nodes in the cluster. By default, this is "0.0.0.0", meaning Consul will bind to all addresses on the local machine and will advertise the private IPv4 address to the rest of the cluster. If there are multiple private IPv4 addresses available, Consul will exit with an error at startup. If you specify "[::]", Consul will advertise the public IPv6 address. If there are multiple public IPv6 addresses available, Consul will exit with an error at startup. Consul uses both TCP and UDP and the same port for both. If you have any firewalls, be sure to allow both protocols. In Consul 1.1.0 and later this can be dynamically defined with a go-sockaddr template that must resolve at runtime to a single address. Some example templates:
Обращу внимание на «f there are multiple private IPv4 addresses available, Consul will exit with an error at startup.»
У вас несколько айпи адресов у машины?
Похоже на то, что нужно, буду изучать... Я просто пока плохо понимаю концепцию сервера и агента в консуле и не понимаю как этот -bind связан с полем address в файле конфига, когда запускаешь через -config-dir=/tmp/.consul.d.
Обсуждают сегодня