mirror of https://github.com/hashicorp/consul
Add 'kind = connect-proxy' to mesh_gateway.html
parent
16d6f01be3
commit
e94db0178c
|
@ -116,11 +116,13 @@ MeshGateway {
|
||||||
|
|
||||||
### Enabling Gateways for a Service Instance
|
### 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
|
```hcl
|
||||||
service {
|
service {
|
||||||
name = "web-sidecar-proxy"
|
name = "web-sidecar-proxy"
|
||||||
|
kind = "connect-proxy"
|
||||||
port = 8181
|
port = 8181
|
||||||
proxy {
|
proxy {
|
||||||
destination_service_name = "web"
|
destination_service_name = "web"
|
||||||
|
@ -138,7 +140,7 @@ service {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Or alternatively as a sidecar service:
|
Or alternatively inline with the service definition:
|
||||||
|
|
||||||
```hcl
|
```hcl
|
||||||
service {
|
service {
|
||||||
|
@ -171,6 +173,7 @@ for a second upstream and will disable gateways for a third upstream.
|
||||||
```hcl
|
```hcl
|
||||||
service {
|
service {
|
||||||
name = "web-sidecar-proxy"
|
name = "web-sidecar-proxy"
|
||||||
|
kind = "connect-proxy"
|
||||||
port = 8181
|
port = 8181
|
||||||
proxy {
|
proxy {
|
||||||
destination_service_name = "web"
|
destination_service_name = "web"
|
||||||
|
|
Loading…
Reference in New Issue