mirror of https://github.com/hashicorp/consul
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
parent
efdf80413c
commit
91a783a980
|
@ -12,6 +12,7 @@
|
|||
"ModifyIndex": 0,
|
||||
"ProxyDestination": "",
|
||||
"Connect": {
|
||||
"SidecarService": {
|
||||
"Proxy": {
|
||||
"ExecMode": "daemon",
|
||||
"Command": [
|
||||
|
@ -22,6 +23,7 @@
|
|||
"Config": null
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"web-proxy": {
|
||||
"Kind": "connect-proxy",
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue