The json consul service definition is as follows
{ "Address": "192.168.10.10", "TaggedAddresses": { "lan": "192.168.10.10", "wan": "10.0.10.10" }, "CreateIndex": 51, "ModifyIndex": 51, "Node": "foobar", "ServiceAddress": "172.17.0.3", "ServiceEnableTagOverride": false, "ServiceID": "32a2a47f7992:nodea:5000", "ServiceName": "foobar", "ServicePort": 5000, "ServiceTags": [ "tacos" ] }
Now according to the documentation provided at https://www.consul.io/docs/agent/http/catalog.html#catalog_service
The definition of the address and business address is as follows:
- Address : The IP address of the Consul node on which the service is registered
- ServiceAddress : service host IP address - if empty, node address should be used
a. Does this mean that the address is the address of the consul node server, and the service address is the address of the node where the service is located?
OR
Q. Does this mean that the address is the address of the agent of the consul living with the service. If so, is this address and business address the same?
which of the above is true?
source share