[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,9 +30,11 @@ To register a service instance with a sidecar, all that's needed is:
```json
{
"name": "web",
"port": 8080,
"connect": { "sidecar_service": {} }
"service": {
"name": "web",
"port": 8080,
"connect": { "sidecar_service": {} }
}
}
```
@ -44,8 +46,10 @@ definitions:
```json
{
"name": "web",
"port": 8080,
"service": {
"name": "web",
"port": 8080,
}
}
{
"name": "web-sidecar-proxy",