mirror of https://github.com/status-im/consul.git
docs - Adding json formatting to TProxy HCL examples (#10088)
formatting
This commit is contained in:
parent
cd7308272e
commit
b7cc83fde0
|
@ -118,7 +118,7 @@ spec:
|
||||||
|
|
||||||
In other environments, transparent proxy can be enabled via Proxy Defaults and Service Defaults config entries, or via
|
In other environments, transparent proxy can be enabled via Proxy Defaults and Service Defaults config entries, or via
|
||||||
the proxy service registration:
|
the proxy service registration:
|
||||||
```
|
```json
|
||||||
# Proxy defaults apply to all proxies.
|
# Proxy defaults apply to all proxies.
|
||||||
kind = "proxy-defaults"
|
kind = "proxy-defaults"
|
||||||
name = "global"
|
name = "global"
|
||||||
|
@ -128,7 +128,7 @@ transparent_proxy {
|
||||||
outbound_listener_port = 15001
|
outbound_listener_port = 15001
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```
|
```json
|
||||||
# Service defaults apply to all instances of the web service.
|
# Service defaults apply to all instances of the web service.
|
||||||
kind = "service-defaults"
|
kind = "service-defaults"
|
||||||
name = "web"
|
name = "web"
|
||||||
|
@ -138,7 +138,7 @@ transparent_proxy {
|
||||||
outbound_listener_port = 15001
|
outbound_listener_port = 15001
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
```
|
```json
|
||||||
# Proxy service registrations apply to a single proxy instance.
|
# Proxy service registrations apply to a single proxy instance.
|
||||||
name = "web-sidecar-proxy"
|
name = "web-sidecar-proxy"
|
||||||
kind = "connect-proxy"
|
kind = "connect-proxy"
|
||||||
|
@ -162,7 +162,7 @@ central configuration, like “service-defaults”.
|
||||||
Additionally, the new Cluster config entry is scoped to the set of federated Consul datacenters and can be used to allow or block
|
Additionally, the new Cluster config entry is scoped to the set of federated Consul datacenters and can be used to allow or block
|
||||||
traffic to external destinations. This example shows blocking traffic to external destinations (outside of Consul's catalog):
|
traffic to external destinations. This example shows blocking traffic to external destinations (outside of Consul's catalog):
|
||||||
|
|
||||||
```
|
```json
|
||||||
kind = "cluster"
|
kind = "cluster"
|
||||||
name = "cluster"
|
name = "cluster"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue