mirror of https://github.com/status-im/consul.git
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:
parent
efdf80413c
commit
91a783a980
|
@ -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…
Reference in New Issue