mirror of https://github.com/status-im/consul.git
docs: clean-up expanded service def
This commit is contained in:
parent
6682a0d4be
commit
49ac06a51e
|
@ -48,32 +48,34 @@ definitions:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"service": {
|
"services": [
|
||||||
"name": "web",
|
|
||||||
"port": 8080
|
|
||||||
}
|
|
||||||
}
|
|
||||||
{
|
|
||||||
"name": "web-sidecar-proxy",
|
|
||||||
"port": 20000,
|
|
||||||
"kind": "connect-proxy",
|
|
||||||
"checks": [
|
|
||||||
{
|
{
|
||||||
"Name": "Connect Sidecar Listening",
|
"name": "web",
|
||||||
"TCP": "127.0.0.1:20000",
|
"port": 8080
|
||||||
"Interval": "10s"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Connect Sidecar Aliasing web",
|
"name": "web-sidecar-proxy",
|
||||||
"alias_service": "web"
|
"port": 20000,
|
||||||
|
"kind": "connect-proxy",
|
||||||
|
"checks": [
|
||||||
|
{
|
||||||
|
"Name": "Connect Sidecar Listening",
|
||||||
|
"TCP": "127.0.0.1:20000",
|
||||||
|
"Interval": "10s"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Connect Sidecar Aliasing web",
|
||||||
|
"alias_service": "web"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"proxy": {
|
||||||
|
"destination_service_name": "web",
|
||||||
|
"destination_service_id": "web",
|
||||||
|
"local_service_address": "127.0.0.1",
|
||||||
|
"local_service_port": 8080
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"proxy": {
|
|
||||||
"destination_service_name": "web",
|
|
||||||
"destination_service_id": "web",
|
|
||||||
"local_service_address": "127.0.0.1",
|
|
||||||
"local_service_port": 8080,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue