docs: Fix example service registration for built-in proxy (#20336)

Fix the sample service registration for the built-in proxy by adding
the missing `sidecar_service` block.
pull/20352/head
Blake Covarrubias 2024-01-25 11:38:58 -08:00 committed by GitHub
parent efdf80413c
commit 91a783a980
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 24 deletions

View File

@ -12,6 +12,7 @@
"ModifyIndex": 0,
"ProxyDestination": "",
"Connect": {
"SidecarService": {
"Proxy": {
"ExecMode": "daemon",
"Command": [
@ -22,6 +23,7 @@
"Config": null
}
}
}
},
"web-proxy": {
"Kind": "connect-proxy",

View File

@ -24,6 +24,7 @@ for the built-in proxy.
"service": {
"name": "example-service",
"connect": {
"sidecar_service": {
"proxy": {
"config": {
"bind_address": "0.0.0.0",
@ -45,6 +46,7 @@ for the built-in proxy.
}
}
}
}
```
All fields are optional with a reasonable default.