Clarifies default behavior of blank service addresses.

This commit is contained in:
James Phillips 2016-04-20 10:16:06 -07:00
parent a0996ecb20
commit 24c2bc44f1
1 changed files with 7 additions and 1 deletions

View File

@ -400,7 +400,13 @@ in the case of a collision.
`Tags`, `Address`, `Port` and `Check` are optional.
`Address` will default to that of the agent if not provided.
If `Address` is not provided or left empty, then the agent's address will be used
as the address for the service during DNS queries. When querying for services using
HTTP endpoints such as [service health](/docs/agent/http/health.html#health_service)
or [service catalog](/docs/agent/http/catalog.html#catalog_service) and encountering
an empty `Address` field for a service, use the `Address` field of the agent node
associated with that instance of the service, which is returned alongside the service
information.
If `Check` is provided, only one of `Script`, `HTTP`, or `TTL` should be specified.
`Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>".