[docs] Sidecar Registration (#5998)

* missing service option

* fixing the second example
This commit is contained in:
kaitlincarter-hc 2019-06-20 12:31:17 -05:00 committed by GitHub
parent 8c7576298c
commit 703981eea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 5 deletions

View File

@ -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,