mirror of https://github.com/status-im/consul.git
add tcp in service/register
I found consul /service/register interface supprt TCP check as well.
This commit is contained in:
parent
ebf7ea1d75
commit
392c2605f3
|
@ -408,7 +408,7 @@ an empty `Address` field for a service, use the `Address` field of the agent nod
|
||||||
associated with that instance of the service, which is returned alongside the service
|
associated with that instance of the service, which is returned alongside the service
|
||||||
information.
|
information.
|
||||||
|
|
||||||
If `Check` is provided, only one of `Script`, `HTTP`, or `TTL` should be specified.
|
If `Check` is provided, only one of `Script`, `HTTP`, `TCP` or `TTL` should be specified.
|
||||||
`Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>".
|
`Script` and `HTTP` also require `Interval`. The created check will be named "service:\<ServiceId\>".
|
||||||
There is more information about checks [here](/docs/agent/checks.html).
|
There is more information about checks [here](/docs/agent/checks.html).
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue