[docs] Sidecar Registration (#5998)
* missing service option * fixing the second example
This commit is contained in:
parent
8c7576298c
commit
703981eea4
|
@ -30,10 +30,12 @@ To register a service instance with a sidecar, all that's needed is:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"service": {
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
"connect": { "sidecar_service": {} }
|
"connect": { "sidecar_service": {} }
|
||||||
}
|
}
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
This will register the `web` service as normal, but will also register another
|
This will register the `web` service as normal, but will also register another
|
||||||
|
@ -44,9 +46,11 @@ definitions:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"service": {
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"port": 8080,
|
"port": 8080,
|
||||||
}
|
}
|
||||||
|
}
|
||||||
{
|
{
|
||||||
"name": "web-sidecar-proxy",
|
"name": "web-sidecar-proxy",
|
||||||
"port": 20000,
|
"port": 20000,
|
||||||
|
|
Loading…
Reference in New Issue