mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
Add 'kind = connect-proxy' to mesh_gateway.html
This commit is contained in:
parent
16d6f01be3
commit
e94db0178c
@ -116,11 +116,13 @@ MeshGateway {
|
||||
|
||||
### Enabling Gateways for a Service Instance
|
||||
|
||||
The following service definition will enable gateways for the service instance in the `remote` mode.
|
||||
The following [Proxy Service Registration](https://www.consul.io/docs/connect/registration/service-registration.html)
|
||||
definition will enable gateways for the service instance in the `remote` mode.
|
||||
|
||||
```hcl
|
||||
service {
|
||||
name = "web-sidecar-proxy"
|
||||
kind = "connect-proxy"
|
||||
port = 8181
|
||||
proxy {
|
||||
destination_service_name = "web"
|
||||
@ -138,7 +140,7 @@ service {
|
||||
}
|
||||
```
|
||||
|
||||
Or alternatively as a sidecar service:
|
||||
Or alternatively inline with the service definition:
|
||||
|
||||
```hcl
|
||||
service {
|
||||
@ -171,6 +173,7 @@ for a second upstream and will disable gateways for a third upstream.
|
||||
```hcl
|
||||
service {
|
||||
name = "web-sidecar-proxy"
|
||||
kind = "connect-proxy"
|
||||
port = 8181
|
||||
proxy {
|
||||
destination_service_name = "web"
|
||||
|
Loading…
x
Reference in New Issue
Block a user