2021-04-16 19:50:02 +00:00
|
|
|
---
|
|
|
|
layout: docs
|
2021-04-28 22:13:29 +00:00
|
|
|
page_title: 'Configuration Entry Kind: Mesh'
|
2021-04-16 19:50:02 +00:00
|
|
|
description: >-
|
2021-04-28 22:13:29 +00:00
|
|
|
The mesh config entry kind allows for globally defining default
|
2021-04-16 19:50:02 +00:00
|
|
|
configuration across all services mesh proxies.
|
|
|
|
Settings in this config entry apply across all namespaces and federated datacenters.
|
2021-04-28 22:13:29 +00:00
|
|
|
Currently, only one mesh entry is supported.
|
2021-04-16 19:50:02 +00:00
|
|
|
---
|
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
# Mesh <sup>Beta</sup>
|
2021-04-16 19:50:02 +00:00
|
|
|
|
|
|
|
-> **v1.10.0+:** This config entry is supported in Consul versions 1.10.0+.
|
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
The `mesh` config entry kind allows for globally defining
|
2021-04-16 19:50:02 +00:00
|
|
|
default configuration that applies to all service mesh proxies.
|
|
|
|
Settings in this config entry apply across all namespaces and federated datacenters.
|
|
|
|
|
|
|
|
## Sample Config Entries
|
|
|
|
|
|
|
|
### Proxy traffic to catalog destinations only
|
|
|
|
|
|
|
|
<Tabs>
|
|
|
|
<Tab heading="HCL">
|
|
|
|
|
|
|
|
```hcl
|
2021-04-28 22:13:29 +00:00
|
|
|
Kind = "mesh"
|
|
|
|
|
2021-04-16 19:50:02 +00:00
|
|
|
TransparentProxy {
|
|
|
|
CatalogDestinationsOnly = true
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
<Tab heading="HCL (Consul Enterprise)">
|
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
**NOTE:** The `mesh` config entry can only be created in the `default`
|
2021-04-16 19:50:02 +00:00
|
|
|
namespace and it will apply to proxies across **all** namespaces.
|
|
|
|
|
|
|
|
```hcl
|
2021-04-28 22:13:29 +00:00
|
|
|
Kind = "mesh"
|
2021-04-16 19:50:02 +00:00
|
|
|
Namespace = "default" # Can only be set to "default".
|
2021-04-28 22:13:29 +00:00
|
|
|
|
2021-04-16 19:50:02 +00:00
|
|
|
TransparentProxy {
|
|
|
|
CatalogDestinationsOnly = true
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|
|
|
|
|
|
|
|
## Available Fields
|
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
- `Kind` - Must be set to `mesh`
|
2021-04-16 19:50:02 +00:00
|
|
|
|
|
|
|
- `Namespace` `(string: "default")` <EnterpriseAlert inline /> - Specifies the namespace the config entry will apply to.
|
|
|
|
Must be set to `default`
|
|
|
|
|
|
|
|
- `Meta` `(map<string|string>: nil)` - Specifies arbitrary KV metadata pairs.
|
|
|
|
|
|
|
|
- `TransparentProxy` `(TransparentProxyConfig: <optional>)` - Controls configuration specific to proxies in
|
|
|
|
`transparent` [mode](/docs/connect/config-entries/service-defaults#mode). Added in v1.10.0.
|
|
|
|
|
|
|
|
- `CatalogDestinationsOnly` `(bool: false)` - Determines whether sidecar proxies operating in transparent mode can
|
|
|
|
proxy traffic to IP addresses not registered in Consul's catalog. If enabled, traffic will only be proxied
|
2021-06-09 20:34:17 +00:00
|
|
|
to upstreams with service registrations in the catalog. If disabled, requests will be proxied as-is to the
|
|
|
|
original destination IP address. Consul will not encrypt the connection.
|
2021-04-16 19:50:02 +00:00
|
|
|
|
|
|
|
## ACLs
|
|
|
|
|
|
|
|
Configuration entries may be protected by [ACLs](/docs/security/acl).
|
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
Reading a `mesh` config entry requires no specific privileges.
|
2021-04-16 19:50:02 +00:00
|
|
|
|
2021-04-28 22:13:29 +00:00
|
|
|
Creating, updating, or deleting a `mesh` config entry requires
|
2021-04-16 19:50:02 +00:00
|
|
|
`operator:write`.
|