docs: Fix example service registration for built-in proxy

Fix the sample service registration for the built-in proxy by adding
the missing `sidecar_service` block.
pull/20336/head
Blake Covarrubias 10 months ago
parent 6828780131
commit d5005719c0
No known key found for this signature in database
GPG Key ID: EA6CE6667C63FF54

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

@ -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
}
}
}
]
]
}
}
}
}

Loading…
Cancel
Save