Mesh Beta
v1.10.0+: This config entry is supported in Consul versions 1.10.0+.
The mesh
config entry kind allows for globally defining default configuration that applies to all service mesh proxies. Settings in this config entry apply across all namespaces and federated datacenters.
Sample Config Entries
Mesh Destinations Only
Only allow transparent proxies to dial addresses in the mesh.
HCL
- HCL
- Kubernetes YAML
- JSON
Kind = "mesh"
TransparentProxy {
MeshDestinationsOnly = true
}
apiVersion: consul.hashicorp.com/v1alpha1
kind: Mesh
metadata:
name: mesh
spec:
transparentProxy:
meshDestinationsOnly: true
{
"Kind": "mesh",
"TransparentProxy": {
"MeshDestinationsOnly": true
}
}
Available Fields
Kind - Must be set to
mesh
Namespace
(string: "default")
Enterprise
- Must be set to default. Config will apply to all namespaces.
Meta
(map<string|string>: nil)
- Specifies arbitrary KV metadata pairs. Added in Consul 1.8.4.TransparentProxy
(TransparentProxyConfig: <optional>)
- Controls configuration specific to proxies intransparent
mode. Added in v1.10.0.- MeshDestinationsOnly
(bool: false)
- Determines whether sidecar proxies operating in transparent mode can proxy traffic to IP addresses not registered in Consul’s mesh. If enabled, traffic will only be proxied to upstream proxies or Connect-native services. If disabled, requests will be proxied as-is to the original destination IP address. Consul will not encrypt the connection.
- MeshDestinationsOnly
ACLs
Configuration entries may be protected by ACLs.
Reading a mesh
config entry requires no specific privileges.
Creating, updating, or deleting a mesh
config entry requires operator:write
.