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.
This commit is contained in:
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,14 +12,16 @@
"ModifyIndex": 0,
"ProxyDestination": "",
"Connect": {
"Proxy": {
"ExecMode": "daemon",
"Command": [
"/bin/consul",
"connect",
"proxy"
],
"Config": null
"SidecarService": {
"Proxy": {
"ExecMode": "daemon",
"Command": [
"/bin/consul",
"connect",
"proxy"
],
"Config": null
}
}
}
},

View File

@ -24,23 +24,25 @@ for the built-in proxy.
"service": {
"name": "example-service",
"connect": {
"proxy": {
"config": {
"bind_address": "0.0.0.0",
"bind_port": 20000,
"local_service_address": "127.0.0.1:1234",
"local_connect_timeout_ms": 1000,
"handshake_timeout_ms": 10000,
"upstreams": []
},
"upstreams": [
{
"destination_name": "example-upstream",
"config": {
"connect_timeout_ms": 1000
"sidecar_service": {
"proxy": {
"config": {
"bind_address": "0.0.0.0",
"bind_port": 20000,
"local_service_address": "127.0.0.1:1234",
"local_connect_timeout_ms": 1000,
"handshake_timeout_ms": 10000,
"upstreams": []
},
"upstreams": [
{
"destination_name": "example-upstream",
"config": {
"connect_timeout_ms": 1000
}
}
}
]
]
}
}
}
}