---
title: istio.mesh.v1alpha1
layout: protoc-gen-docs
generator: protoc-gen-docs
aliases:
- /docs/reference/config/service-mesh.html
number_of_entries: 19
---
AuthenticationPolicy
AuthenticationPolicy defines authentication policy. It can be set for
different scopes (mesh, service …), and the most narrow scope with
non-INHERIT value will be used.
Mesh policy cannot be INHERIT.
Name |
Description |
NONE |
Do not encrypt Envoy to Envoy traffic.
|
MUTUAL_TLS |
Envoy to Envoy traffic is wrapped into mutual TLS connections.
|
INHERIT |
Use the policy defined by the parent scope. Should not be used for mesh
policy.
|
ConfigSource
ConfigSource describes information about a configuration store inside a
mesh. A single control plane instance can interact with one or more data
sources.
Field |
Type |
Description |
address |
string |
Address of the server implementing the Istio Mesh Configuration
protocol (MCP). Can be IP address or a fully qualified DNS name.
Use fs:/// to specify a file-based backend with absolute path to the directory.
|
tlsSettings |
istio.networking.v1alpha3.TLSSettings |
Use the tlssettings to specify the tls mode to use. If the MCP server
uses Istio MTLS and shares the root CA with Pilot, specify the TLS
mode as ISTIOMUTUAL.
|
LocalityLoadBalancerSetting
The following example sets up locality weight for mesh wide service
Assume a service resides in “region1/zone1/” and “region1/zone2/”,
and originating clusters also reside in “region1/zone1/” and “region1/zone2/”.
This example specifies when clusters from “region1/zone1/” accessing the service, 80% of the traffic
is shipped to “region1/zone1/” ratings service endpoints, and the rest 20% to “region1/zone2/*”.
distribute:
- from: region1/zone1/*
to:
"region1/zone1/*": 80
"region1/zone2/*": 20
- from: region1/zone2/*
to:
"region1/zone1/*": 20
"region1/zone2/*": 80
The following example sets up locality failover policy for the ratings service
Assume a service resides in “region1” “region2” and “region3”,
This example specifies when clusters from “region1/zone1” accessing the service,
if endpoints in “region1” becomes unhealthy, traffic will begin to trickle to “region2”.
failover:
- from: region1
to: region2
Locality load balancing settings.
Field |
Type |
Description |
distribute |
LocalityLoadBalancerSetting.Distribute[] |
Optional: only distribute or failover can be set.
Explicitly specify loadbalancing weight across different zones and geographical locations.
Refer to Locality weighted load balancing
If empty, the locality weight is set according to the endpoints number within it.
|
failover |
LocalityLoadBalancerSetting.Failover[] |
Optional: only failover or distribute can be set.
Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy.
Should be used together with OutlierDetection to detect unhealthy endpoints.
Note: if no OutlierDetection specified, this will not take effect.
|
LocalityLoadBalancerSetting.Distribute
Originating -> upstream cluster locality weight set, support wildcard matching ‘’
‘’ matches all localities
‘region1/*’ matches all zones in region1
Field |
Type |
Description |
from |
string |
Originating locality, ‘/’ separated, e.g. ‘region/zone/sub_zone’.
|
to |
map<string, uint32> |
Upstream locality to loadbalancing weight map. The sum of all weights should be == 100.
Should assign load balancing weight for all localities, otherwise the traffic are not routed
following the percentage of weight.
|
LocalityLoadBalancerSetting.Failover
Specify the traffic failover policy.
As zone and sub_zone failover is supported by default, only region can be specified here.
Field |
Type |
Description |
from |
string |
Originating region.
|
to |
string |
Destination region the traffic will fail over to when endpoints in local region becomes unhealthy.
|
MeshConfig
MeshConfig defines mesh-wide variables shared by all Envoy instances in the
Istio service mesh.
NOTE: This configuration type should be used for the low-level global
configuration, such as component addresses and port numbers. It should not
be used for the features of the mesh that can be scoped by service or by
namespace. Some of the fields in the mesh config are going to be deprecated
and replaced with several individual configuration types (for example,
tracing configuration).
Field |
Type |
Description |
mixerCheckServer |
string |
Address of the server that will be used by the proxies for policy
check calls. By using different names for mixerCheckServer and
mixerReportServer, it is possible to have one set of mixer servers handle
policy check calls while another set of mixer servers handle telemetry
calls.
NOTE: Omitting mixerCheckServer while specifying mixerReportServer is
equivalent to setting disablePolicyChecks to true.
|
mixerReportServer |
string |
Address of the server that will be used by the proxies for policy report
calls.
|
disablePolicyChecks |
bool |
Disable policy checks by the mixer service. Default
is false, i.e. mixer policy check is enabled by default.
|
policyCheckFailOpen |
bool |
Allow all traffic in cases when the mixer policy service cannot be reached.
Default is false which means the traffic is denied when the client is unable
to connect to Mixer.
|
sidecarToTelemetrySessionAffinity |
bool |
Enable session affinity for envoy mixer reports so that calls from a proxy will
always target the same mixer instance.
|
proxyListenPort |
int32 |
Port on which Envoy should listen for incoming connections from
other services.
|
proxyHttpPort |
int32 |
Port on which Envoy should listen for HTTP PROXY requests if set.
|
connectTimeout |
google.protobuf.Duration |
Connection timeout used by Envoy. (MUST BE >=1ms)
|
tcpKeepalive |
istio.networking.v1alpha3.ConnectionPoolSettings.TCPSettings.TcpKeepalive |
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
|
ingressClass |
string |
Class of ingress resources to be processed by Istio ingress
controller. This corresponds to the value of
“kubernetes.io/ingress.class” annotation.
|
ingressService |
string |
Name of the kubernetes service used for the istio ingress controller.
|
ingressControllerMode |
MeshConfig.IngressControllerMode |
Defines whether to use Istio ingress controller for annotated or all ingress resources.
|
enableTracing |
bool |
Flag to control generation of trace spans and request IDs.
Requires a trace span collector defined in the proxy configuration.
|
accessLogFile |
string |
File address for the proxy access log (e.g. /dev/stdout).
Empty value disables access logging.
|
accessLogFormat |
string |
Format for the proxy access log
Empty value results in proxy’s default access log format
|
accessLogEncoding |
MeshConfig.AccessLogEncoding |
Encoding for the proxy access log (text or json).
Default value is text.
|
defaultConfig |
ProxyConfig |
Default proxy config used by the proxy injection mechanism operating in the mesh
(e.g. Kubernetes admission controller)
In case of Kubernetes, the proxy config is applied once during the injection process,
and remain constant for the duration of the pod. The rest of the mesh config can be changed
at runtime and config gets distributed dynamically.
|
outboundTrafficPolicy |
MeshConfig.OutboundTrafficPolicy |
Set the default behavior of the sidecar for handling outbound traffic
from the application. If your application uses one or more external
services that are not known apriori, setting the policy to ALLOWANY
will cause the sidecars to route any unknown traffic originating from
the application to its requested destination. Users are strongly
encouraged to use ServiceEntries to explicitly declare any external
dependencies, instead of using allowany, so that traffic to these
services can be monitored.
|
enableClientSidePolicyCheck |
bool |
Enables clide side policy checks.
|
sdsUdsPath |
string |
Unix Domain Socket through which envoy communicates with NodeAgent SDS to get key/cert for mTLS.
Use secret-mount files instead of SDS if set to empty.
|
configSources |
ConfigSource[] |
ConfigSource describes a source of configuration data for networking
rules, and other Istio configuration artifacts. Multiple data sources
can be configured for a single control plane.
|
localityLbSetting |
LocalityLoadBalancerSetting |
Locality based load balancing distribution or failover settings.
|
trustDomain |
string |
The trust domain corresponds to the trust root of a system.
Refer to https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain
Fallback to old identity format(without trust domain) if not set.
|
MeshConfig.AccessLogEncoding
Name |
Description |
TEXT |
|
JSON |
|
MeshConfig.IngressControllerMode
Name |
Description |
OFF |
Disables Istio ingress controller.
|
DEFAULT |
Istio ingress controller will act on ingress resources that do not
contain any annotation or whose annotations match the value
specified in the ingress_class parameter described earlier. Use this
mode if Istio ingress controller will be the default ingress
controller for the entire kubernetes cluster.
|
STRICT |
Istio ingress controller will only act on ingress resources whose
annotations match the value specified in the ingress_class parameter
described earlier. Use this mode if Istio ingress controller will be
a secondary ingress controller (e.g., in addition to a
cloud-provided ingress controller).
|
MeshConfig.OutboundTrafficPolicy
MeshConfig.OutboundTrafficPolicy.Mode
Name |
Description |
REGISTRY_ONLY |
outbound traffic will be restricted to services defined in the
service registry as well as those defined through ServiceEntries
|
ALLOW_ANY |
outbound traffic to unknown destinations will be allowed, in case
there are no services or ServiceEntries for the destination port
|
MeshNetworks
MeshNetworks (config map) provides information about the set of networks
inside a mesh and how to route to endpoints in each network. For example
MeshNetworks(file/config map):
networks:
- network1:
- endpoints:
- fromRegistry: registry1 #must match secret name in kubernetes
- fromCidr: 192.168.100.0/22 #a VM network for example
gateways:
- registryServiceName: istio-ingressgateway.istio-system.svc.cluster.local
port: 15443
locality: us-east-1a
Field |
Type |
Description |
networks |
map<string, Network> |
REQUIRED: The set of networks inside this mesh. Each network should
have a unique name and information about how to infer the endpoints in
the network as well as the gateways associated with the network.
|
Network
Network provides information about the endpoints in a routable L3
network. A single routable L3 network can have one or more service
registries. Note that the network has no relation to the locality of the
endpoint. The endpoint locality will be obtained from the service
registry.
Field |
Type |
Description |
endpoints |
Network.NetworkEndpoints[] |
REQUIRED: The list of endpoints in the network (obtained through the
constituent service registries or from CIDR ranges). All endpoints in
the network are directly accessible to one another.
|
gateways |
Network.IstioNetworkGateway[] |
REQUIRED: Set of gateways associated with the network.
|
Network.IstioNetworkGateway
The gateway associated with this network. Traffic from remote networks
will arrive at the specified gateway:port. All incoming traffic must
use mTLS.
Field |
Type |
Description |
registryServiceName |
string (oneof) |
A fully qualified domain name of the gateway service. Pilot will
lookup the service from the service registries in the network and
obtain the endpoint IPs of the gateway from the service
registry. Note that while the service name is a fully qualified
domain name, it need not be resolvable outside the orchestration
platform for the registry. e.g., this could be
istio-ingressgateway.istio-system.svc.cluster.local.
|
address |
string (oneof) |
IP address or externally resolvable DNS address associated with the gateway.
|
port |
uint32 |
REQUIRED: The port associated with the gateway.
|
locality |
string |
The locality associated with an explicitly specified gateway (i.e. ip)
|
Network.NetworkEndpoints
NetworkEndpoints describes how the network associated with an endpoint
should be inferred. An endpoint will be assigned to a network based on
the following rules:
Implicitly: If the registry explicitly provides information about
the network to which the endpoint belongs to. In some cases, its
possible to indicate the network associated with the endpoint by
adding ISTIOMETANETWORK environment variable to the sidecar.
Explicitly:
a. By matching the registry name with one of the “fromregistries”
in the mesh config. A “fromregistry” can only be assigned to a
single network.
b. By matching the IP against one of the CIDR ranges in a mesh
config network. The CIDR ranges must not overlap and be assigned to
a single network.
(2) will override (1) if both are present.
Field |
Type |
Description |
fromCidr |
string (oneof) |
A CIDR range for the set of endpoints in this network. The CIDR
ranges for endpoints from different networks must not overlap.
|
fromRegistry |
string (oneof) |
Add all endpoints from the specified registry into this network.
The names of the registries should correspond to the secret name
that was used to configure the registry (kubernetes multicluster) or
supplied by MCP server.
|
ProxyConfig
ProxyConfig defines variables for individual Envoy instances.
Field |
Type |
Description |
configPath |
string |
Path to the generated configuration file directory.
Proxy agent generates the actual configuration and stores it in this directory.
|
binaryPath |
string |
Path to the proxy binary
|
serviceCluster |
string |
Service cluster defines the name for the service_cluster that is
shared by all Envoy instances. This setting corresponds to
–service-cluster flag in Envoy. In a typical Envoy deployment, the
service-cluster flag is used to identify the caller, for
source-based routing scenarios.
Since Istio does not assign a local service/service version to each
Envoy instance, the name is same for all of them. However, the
source/caller’s identity (e.g., IP address) is encoded in the
–service-node flag when launching Envoy. When the RDS service
receives API calls from Envoy, it uses the value of the service-node
flag to compute routes that are relative to the service instances
located at that IP address.
|
drainDuration |
google.protobuf.Duration |
The time in seconds that Envoy will drain connections during a hot
restart. MUST be >=1s (e.g., 1s/1m/1h)
|
parentShutdownDuration |
google.protobuf.Duration |
The time in seconds that Envoy will wait before shutting down the
parent process during a hot restart. MUST be >=1s (e.g., 1s/1m/1h).
MUST BE greater than drainduration_ parameter.
|
discoveryAddress |
string |
Address of the discovery service exposing xDS with mTLS connection.
|
zipkinAddress |
string |
Address of the Zipkin service (e.g. zipkin:9411).
DEPRECATED: Use tracing instead.
|
connectTimeout |
google.protobuf.Duration |
Connection timeout used by Envoy for supporting services. (MUST BE >=1ms)
|
statsdUdpAddress |
string |
IP Address and Port of a statsd UDP listener (e.g. 10.75.241.127:9125).
|
proxyAdminPort |
int32 |
Port on which Envoy should listen for administrative commands.
|
controlPlaneAuthPolicy |
AuthenticationPolicy |
Authentication policy defines the global switch to control authentication
for Envoy-to-Envoy communication for istio components Mixer and Pilot.
|
customConfigFile |
string |
File path of custom proxy configuration, currently used by proxies
in front of Mixer and Pilot.
|
statNameLength |
int32 |
Maximum length of name field in Envoy’s metrics. The length of the name field
is determined by the length of a name field in a service and the set of labels that
comprise a particular version of the service. The default value is set to 189 characters.
Envoy’s internal metrics take up 67 characters, for a total of 256 character name per metric.
Increase the value of this field if you find that the metrics from Envoys are truncated.
|
concurrency |
int32 |
The number of worker threads to run. Default value is number of cores on the machine.
|
proxyBootstrapTemplatePath |
string |
Path to the proxy bootstrap template file
|
interceptionMode |
ProxyConfig.InboundInterceptionMode |
The mode used to redirect inbound traffic to Envoy.
|
tracing |
Tracing |
Tracing configuration to be used by the proxy.
|
ProxyConfig.InboundInterceptionMode
The mode used to redirect inbound traffic to Envoy.
This setting has no effect on outbound traffic: iptables REDIRECT is always used for
outbound connections.
Name |
Description |
REDIRECT |
The REDIRECT mode uses iptables REDIRECT to NAT and redirect to Envoy. This mode loses
source IP addresses during redirection.
|
TPROXY |
The TPROXY mode uses iptables TPROXY to redirect to Envoy. This mode preserves both the
source and destination IP addresses and ports, so that they can be used for advanced
filtering and manipulation. This mode also configures the sidecar to run with the
CAPNETADMIN capability, which is required to use TPROXY.
|
Tracing
Tracing defines configuration for the tracing performed by Envoy instances.
Tracing.Lightstep
Lightstep defines configuration for a LightStep tracer.
Field |
Type |
Description |
address |
string |
Address of the LightStep Satellite pool.
|
accessToken |
string |
The LightStep access token.
|
secure |
bool |
True if a secure connection should be used when communicating with the pool.
|
cacertPath |
string |
Path to the trusted cacert used to authenticate the pool.
|
Tracing.Zipkin
Zipkin defines configuration for a Zipkin tracer.
Field |
Type |
Description |
address |
string |
Address of the Zipkin service (e.g. zipkin:9411).
|