v1alpha3

package
v0.3.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CaptureMode_name = map[int32]string{
	0: "DEFAULT",
	1: "IPTABLES",
	2: "NONE",
}
View Source
var CaptureMode_value = map[string]int32{
	"DEFAULT":  0,
	"IPTABLES": 1,
	"NONE":     2,
}
View Source
var ConfigScope_name = map[int32]string{
	0: "PUBLIC",
	1: "PRIVATE",
}
View Source
var ConfigScope_value = map[string]int32{
	"PUBLIC":  0,
	"PRIVATE": 1,
}
View Source
var DestinationRuleCrd = crd.NewCrd("networking.istio.io",
	"destinationrules",
	"networking.istio.io",
	"v1alpha3",
	"DestinationRule",
	"destinationrule",
	false,
	&DestinationRule{})
View Source
var LoadBalancerSettings_SimpleLB_name = map[int32]string{
	0: "ROUND_ROBIN",
	1: "LEAST_CONN",
	2: "RANDOM",
	3: "PASSTHROUGH",
}
View Source
var LoadBalancerSettings_SimpleLB_value = map[string]int32{
	"ROUND_ROBIN": 0,
	"LEAST_CONN":  1,
	"RANDOM":      2,
	"PASSTHROUGH": 3,
}
View Source
var Server_TLSOptions_TLSProtocol_name = map[int32]string{
	0: "TLS_AUTO",
	1: "TLSV1_0",
	2: "TLSV1_1",
	3: "TLSV1_2",
	4: "TLSV1_3",
}
View Source
var Server_TLSOptions_TLSProtocol_value = map[string]int32{
	"TLS_AUTO": 0,
	"TLSV1_0":  1,
	"TLSV1_1":  2,
	"TLSV1_2":  3,
	"TLSV1_3":  4,
}
View Source
var Server_TLSOptions_TLSmode_name = map[int32]string{
	0: "PASSTHROUGH",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "AUTO_PASSTHROUGH",
}
View Source
var Server_TLSOptions_TLSmode_value = map[string]int32{
	"PASSTHROUGH":      0,
	"SIMPLE":           1,
	"MUTUAL":           2,
	"AUTO_PASSTHROUGH": 3,
}
View Source
var TLSSettings_TLSmode_name = map[int32]string{
	0: "DISABLE",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "ISTIO_MUTUAL",
}
View Source
var TLSSettings_TLSmode_value = map[string]int32{
	"DISABLE":      0,
	"SIMPLE":       1,
	"MUTUAL":       2,
	"ISTIO_MUTUAL": 3,
}
View Source
var VirtualServiceCrd = crd.NewCrd("networking.istio.io",
	"virtualservices",
	"networking.istio.io",
	"v1alpha3",
	"VirtualService",
	"virtualservice",
	false,
	&VirtualService{})

Functions

This section is empty.

Types

type CaptureMode

type CaptureMode int32

$hide_from_docs CaptureMode describes how traffic to a listener is expected to be captured. Applicable only when the listener is bound to an IP.

const (
	// The default capture mode defined by the environment
	CaptureMode_DEFAULT CaptureMode = 0
	// Capture traffic using IPtables redirection
	CaptureMode_IPTABLES CaptureMode = 1
	// No traffic capture. When used in egress listener, the application is
	// expected to explicitly communicate with the listener port/unix
	// domain socket. When used in ingress listener, care needs to be taken
	// to ensure that the listener port is not in use by other processes on
	// the host.
	CaptureMode_NONE CaptureMode = 2
)

func (CaptureMode) EnumDescriptor

func (CaptureMode) EnumDescriptor() ([]byte, []int)

func (CaptureMode) String

func (x CaptureMode) String() string

type ConfigScope

type ConfigScope int32

ConfigScope defines the visibility of an Istio configuration artifact in a namespace when the namespace is imported. By default all configuration artifacts are public. Configurations with private scope will not be imported when the namespace containing the configuration is imported in a Sidecar.

const (
	// Config with this scope are visible to all workloads in the mesh
	ConfigScope_PUBLIC ConfigScope = 0
	// Configs with this scope are visible to only workloads in the same
	// namespace as the configuration resource.
	ConfigScope_PRIVATE ConfigScope = 1
)

func (ConfigScope) EnumDescriptor

func (ConfigScope) EnumDescriptor() ([]byte, []int)

func (ConfigScope) String

func (x ConfigScope) String() string

type ConnectionPoolSettings

type ConnectionPoolSettings struct {
	// Settings common to both HTTP and TCP upstream connections.
	Tcp *ConnectionPoolSettings_TCPSettings `protobuf:"bytes,1,opt,name=tcp,proto3" json:"tcp,omitempty"`
	// HTTP connection pool settings.
	Http                 *ConnectionPoolSettings_HTTPSettings `protobuf:"bytes,2,opt,name=http,proto3" json:"http,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                             `json:"-"`
	XXX_unrecognized     []byte                               `json:"-"`
	XXX_sizecache        int32                                `json:"-"`
}

Connection pool settings for an upstream host. The settings apply to each individual host in the upstream service. See Envoy's [circuit breaker](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/circuit_breaking) for more details. Connection pool settings can be applied at the TCP level as well as at HTTP level.

For example, the following rule sets a limit of 100 connections to redis service called myredissrv with a connect timeout of 30ms

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-redis

spec:

host: myredissrv.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
      connectTimeout: 30ms
      tcpKeepalive:
        time: 7200s
        interval: 75s

```

func (*ConnectionPoolSettings) Descriptor

func (*ConnectionPoolSettings) Descriptor() ([]byte, []int)

func (*ConnectionPoolSettings) Equal

func (this *ConnectionPoolSettings) Equal(that interface{}) bool

func (*ConnectionPoolSettings) GetHttp

func (*ConnectionPoolSettings) GetTcp

func (*ConnectionPoolSettings) ProtoMessage

func (*ConnectionPoolSettings) ProtoMessage()

func (*ConnectionPoolSettings) Reset

func (m *ConnectionPoolSettings) Reset()

func (*ConnectionPoolSettings) String

func (m *ConnectionPoolSettings) String() string

func (*ConnectionPoolSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings) XXX_Marshal

func (m *ConnectionPoolSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings) XXX_Merge

func (m *ConnectionPoolSettings) XXX_Merge(src proto.Message)

func (*ConnectionPoolSettings) XXX_Size

func (m *ConnectionPoolSettings) XXX_Size() int

func (*ConnectionPoolSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_HTTPSettings

type ConnectionPoolSettings_HTTPSettings struct {
	// Maximum number of pending HTTP requests to a destination. Default 1024.
	Http1MaxPendingRequests int32 `` /* 135-byte string literal not displayed */
	// Maximum number of requests to a backend. Default 1024.
	Http2MaxRequests int32 `protobuf:"varint,2,opt,name=http2_max_requests,json=http2MaxRequests,proto3" json:"http2_max_requests,omitempty"`
	// Maximum number of requests per connection to a backend. Setting this
	// parameter to 1 disables keep alive.
	MaxRequestsPerConnection int32 `` /* 138-byte string literal not displayed */
	// Maximum number of retries that can be outstanding to all hosts in a
	// cluster at a given time. Defaults to 3.
	MaxRetries           int32    `protobuf:"varint,4,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Settings applicable to HTTP1.1/HTTP2/GRPC connections.

func (*ConnectionPoolSettings_HTTPSettings) Descriptor

func (*ConnectionPoolSettings_HTTPSettings) Descriptor() ([]byte, []int)

func (*ConnectionPoolSettings_HTTPSettings) Equal

func (this *ConnectionPoolSettings_HTTPSettings) Equal(that interface{}) bool

func (*ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRetries

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()

func (*ConnectionPoolSettings_HTTPSettings) Reset

func (*ConnectionPoolSettings_HTTPSettings) String

func (*ConnectionPoolSettings_HTTPSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_HTTPSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_HTTPSettings) XXX_Marshal

func (m *ConnectionPoolSettings_HTTPSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_HTTPSettings) XXX_Merge

func (*ConnectionPoolSettings_HTTPSettings) XXX_Size

func (*ConnectionPoolSettings_HTTPSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings_HTTPSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_TCPSettings

type ConnectionPoolSettings_TCPSettings struct {
	// Maximum number of HTTP1 /TCP connections to a destination host.
	MaxConnections int32 `protobuf:"varint,1,opt,name=max_connections,json=maxConnections,proto3" json:"max_connections,omitempty"`
	// TCP connection timeout.
	ConnectTimeout *types.Duration `protobuf:"bytes,2,opt,name=connect_timeout,json=connectTimeout,proto3" json:"connect_timeout,omitempty"`
	// If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
	TcpKeepalive         *ConnectionPoolSettings_TCPSettings_TcpKeepalive `protobuf:"bytes,3,opt,name=tcp_keepalive,json=tcpKeepalive,proto3" json:"tcp_keepalive,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                         `json:"-"`
	XXX_unrecognized     []byte                                           `json:"-"`
	XXX_sizecache        int32                                            `json:"-"`
}

Settings common to both HTTP and TCP upstream connections.

func (*ConnectionPoolSettings_TCPSettings) Descriptor

func (*ConnectionPoolSettings_TCPSettings) Descriptor() ([]byte, []int)

func (*ConnectionPoolSettings_TCPSettings) Equal

func (this *ConnectionPoolSettings_TCPSettings) Equal(that interface{}) bool

func (*ConnectionPoolSettings_TCPSettings) GetConnectTimeout

func (m *ConnectionPoolSettings_TCPSettings) GetConnectTimeout() *types.Duration

func (*ConnectionPoolSettings_TCPSettings) GetMaxConnections

func (m *ConnectionPoolSettings_TCPSettings) GetMaxConnections() int32

func (*ConnectionPoolSettings_TCPSettings) GetTcpKeepalive

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()

func (*ConnectionPoolSettings_TCPSettings) Reset

func (*ConnectionPoolSettings_TCPSettings) String

func (*ConnectionPoolSettings_TCPSettings) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_TCPSettings) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_TCPSettings) XXX_Marshal

func (m *ConnectionPoolSettings_TCPSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_TCPSettings) XXX_Merge

func (*ConnectionPoolSettings_TCPSettings) XXX_Size

func (*ConnectionPoolSettings_TCPSettings) XXX_Unmarshal

func (m *ConnectionPoolSettings_TCPSettings) XXX_Unmarshal(b []byte) error

type ConnectionPoolSettings_TCPSettings_TcpKeepalive

type ConnectionPoolSettings_TCPSettings_TcpKeepalive struct {
	// Maximum number of keepalive probes to send without response before
	// deciding the connection is dead. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 9.)
	Probes uint32 `protobuf:"varint,1,opt,name=probes,proto3" json:"probes,omitempty"`
	// The time duration a connection needs to be idle before keep-alive
	// probes start being sent. Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 7200s (ie 2 hours.)
	Time *types.Duration `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
	// The time duration between keep-alive probes.
	// Default is to use the OS level configuration
	// (unless overridden, Linux defaults to 75s.)
	Interval             *types.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

TCP keepalive.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Equal

func (this *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Equal(that interface{}) bool

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) String

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_DiscardUnknown

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_DiscardUnknown()

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Marshal

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Merge

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Size

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) XXX_Unmarshal

type CorsPolicy

type CorsPolicy struct {
	// The list of origins that are allowed to perform CORS requests. The
	// content will be serialized into the Access-Control-Allow-Origin
	// header. Wildcard * will allow all origins.
	AllowOrigin []string `protobuf:"bytes,1,rep,name=allow_origin,json=allowOrigin,proto3" json:"allow_origin,omitempty"`
	// List of HTTP methods allowed to access the resource. The content will
	// be serialized into the Access-Control-Allow-Methods header.
	AllowMethods []string `protobuf:"bytes,2,rep,name=allow_methods,json=allowMethods,proto3" json:"allow_methods,omitempty"`
	// List of HTTP headers that can be used when requesting the
	// resource. Serialized to Access-Control-Allow-Headers header.
	AllowHeaders []string `protobuf:"bytes,3,rep,name=allow_headers,json=allowHeaders,proto3" json:"allow_headers,omitempty"`
	// A white list of HTTP headers that the browsers are allowed to
	// access. Serialized into Access-Control-Expose-Headers header.
	ExposeHeaders []string `protobuf:"bytes,4,rep,name=expose_headers,json=exposeHeaders,proto3" json:"expose_headers,omitempty"`
	// Specifies how long the results of a preflight request can be
	// cached. Translates to the `Access-Control-Max-Age` header.
	MaxAge *types.Duration `protobuf:"bytes,5,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"`
	// Indicates whether the caller is allowed to send the actual request
	// (not the preflight) using credentials. Translates to
	// `Access-Control-Allow-Credentials` header.
	AllowCredentials     *types.BoolValue `protobuf:"bytes,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Describes the Cross-Origin Resource Sharing (CORS) policy, for a given service. Refer to <https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS> for further details about cross origin resource sharing. For example, the following rule restricts cross origin requests to those originating from example.com domain using HTTP POST/GET, and sets the `Access-Control-Allow-Credentials` header to false. In addition, it only exposes `X-Foo-bar` header and sets an expiry period of 1 day.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  corsPolicy:
    allowOrigin:
    - example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "1d"

```

func (*CorsPolicy) Descriptor

func (*CorsPolicy) Descriptor() ([]byte, []int)

func (*CorsPolicy) Equal

func (this *CorsPolicy) Equal(that interface{}) bool

func (*CorsPolicy) GetAllowCredentials

func (m *CorsPolicy) GetAllowCredentials() *types.BoolValue

func (*CorsPolicy) GetAllowHeaders

func (m *CorsPolicy) GetAllowHeaders() []string

func (*CorsPolicy) GetAllowMethods

func (m *CorsPolicy) GetAllowMethods() []string

func (*CorsPolicy) GetAllowOrigin

func (m *CorsPolicy) GetAllowOrigin() []string

func (*CorsPolicy) GetExposeHeaders

func (m *CorsPolicy) GetExposeHeaders() []string

func (*CorsPolicy) GetMaxAge

func (m *CorsPolicy) GetMaxAge() *types.Duration

func (*CorsPolicy) ProtoMessage

func (*CorsPolicy) ProtoMessage()

func (*CorsPolicy) Reset

func (m *CorsPolicy) Reset()

func (*CorsPolicy) String

func (m *CorsPolicy) String() string

func (*CorsPolicy) XXX_DiscardUnknown

func (m *CorsPolicy) XXX_DiscardUnknown()

func (*CorsPolicy) XXX_Marshal

func (m *CorsPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CorsPolicy) XXX_Merge

func (m *CorsPolicy) XXX_Merge(src proto.Message)

func (*CorsPolicy) XXX_Size

func (m *CorsPolicy) XXX_Size() int

func (*CorsPolicy) XXX_Unmarshal

func (m *CorsPolicy) XXX_Unmarshal(b []byte) error

type Destination

type Destination struct {
	// REQUIRED. The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntry](#ServiceEntry). Traffic forwarded to
	// destinations that are not found in either of the two, will be dropped.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// The name of a subset within the service. Applicable only to services
	// within the mesh. The subset must be defined in a corresponding
	// DestinationRule.
	Subset string `protobuf:"bytes,2,opt,name=subset,proto3" json:"subset,omitempty"`
	// Specifies the port on the host that is being addressed. If a service
	// exposes only a single port it is not required to explicitly select the
	// port.
	Port                 *PortSelector `protobuf:"bytes,3,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Destination indicates the network addressable service to which the request/connection will be sent after processing a routing rule. The destination.host should unambiguously refer to a service in the service registry. Istio's service registry is composed of all the services found in the platform's service registry (e.g., Kubernetes services, Consul services), as well as services declared through the [ServiceEntry](#ServiceEntry) resource.

*Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._

The following Kubernetes example routes all traffic by default to pods of the reviews service with label "version: v1" (i.e., subset v1), and some to subset v2, in a kubernetes environment.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route
namespace: foo

spec:

hosts:
- reviews # interpreted as reviews.foo.svc.cluster.local
http:
- match:
  - uri:
      prefix: "/wpcatalog"
  - uri:
      prefix: "/consumercatalog"
  rewrite:
    uri: "/newcatalog"
  route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v2
- route:
  - destination:
      host: reviews # interpreted as reviews.foo.svc.cluster.local
      subset: v1

```

And the associated DestinationRule

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination
namespace: foo

spec:

host: reviews # interpreted as reviews.foo.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

```

The following VirtualService sets a timeout of 5s for all calls to productpage.prod.svc.cluster.local service in Kubernetes. Notice that there are no subsets defined in this rule. Istio will fetch all instances of productpage.prod.svc.cluster.local service from the service registry and populate the sidecar's load balancing pool. Also, notice that this rule is set in the istio-system namespace but uses the fully qualified domain name of the productpage service, productpage.prod.svc.cluster.local. Therefore the rule's namespace does not have an impact in resolving the name of the productpage service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-productpage-rule
namespace: istio-system

spec:

hosts:
- productpage.prod.svc.cluster.local # ignores rule namespace
http:
- timeout: 5s
  route:
  - destination:
      host: productpage.prod.svc.cluster.local

```

To control routing for traffic bound to services outside the mesh, external services must first be added to Istio's internal service registry using the ServiceEntry resource. VirtualServices can then be defined to control traffic bound to these external services. For example, the following rules define a Service for wikipedia.org and set a timeout of 5s for http requests.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: ServiceEntry metadata:

name: external-svc-wikipedia

spec:

hosts:
- wikipedia.org
location: MESH_EXTERNAL
ports:
- number: 80
  name: example-http
  protocol: HTTP
resolution: DNS

apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: my-wiki-rule

spec:

hosts:
- wikipedia.org
http:
- timeout: 5s
  route:
  - destination:
      host: wikipedia.org

```

func (*Destination) Descriptor

func (*Destination) Descriptor() ([]byte, []int)

func (*Destination) Equal

func (this *Destination) Equal(that interface{}) bool

func (*Destination) GetHost

func (m *Destination) GetHost() string

func (*Destination) GetPort

func (m *Destination) GetPort() *PortSelector

func (*Destination) GetSubset

func (m *Destination) GetSubset() string

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) Reset

func (m *Destination) Reset()

func (*Destination) String

func (m *Destination) String() string

func (*Destination) XXX_DiscardUnknown

func (m *Destination) XXX_DiscardUnknown()

func (*Destination) XXX_Marshal

func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Destination) XXX_Merge

func (m *Destination) XXX_Merge(src proto.Message)

func (*Destination) XXX_Size

func (m *Destination) XXX_Size() int

func (*Destination) XXX_Unmarshal

func (m *Destination) XXX_Unmarshal(b []byte) error

type DestinationRule

type DestinationRule struct {
	// Status indicates the validation status of this resource.
	// Status is read-only by clients, and set by supergloo during validation
	Status core.Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status" testdiff:"ignore"`
	// Metadata contains the object metadata for this resource
	Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
	// REQUIRED. The name of a service from the service registry. Service
	// names are looked up from the platform's service registry (e.g.,
	// Kubernetes services, Consul services, etc.) and from the hosts
	// declared by [ServiceEntries](#ServiceEntry). Rules defined for
	// services that do not exist in the service registry will be ignored.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// Note that the host field applies to both HTTP and TCP services.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	// Traffic policies to apply (load balancing policy, connection pool
	// sizes, outlier detection).
	TrafficPolicy *TrafficPolicy `protobuf:"bytes,2,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	// One or more named sets that represent individual versions of a
	// service. Traffic policies can be overridden at subset level.
	Subsets []*Subset `protobuf:"bytes,3,rep,name=subsets,proto3" json:"subsets,omitempty"`
	// The visibility setting associated with this DestinationRule. Set to
	// PRIVATE if this destination rule should not be exported, i.e. restrict
	// the applicability of this destination rule to only workloads in the same
	// namespace as the destination rule.
	ConfigScope          ConfigScope `` /* 138-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

`DestinationRule` defines policies that apply to traffic intended for a service after routing has occurred. These rules specify configuration for load balancing, connection pool size from the sidecar, and outlier detection settings to detect and evict unhealthy hosts from the load balancing pool. For example, a simple load balancing policy for the ratings service would look as follows:

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_CONN

```

Version specific policies can be specified by defining a named `subset` and overriding the settings specified at the service level. The following rule uses a round robin load balancing policy for all traffic going to a subset named testversion that is composed of endpoints (e.g., pods) with labels (version:v3).

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_CONN
subsets:
- name: testversion
  labels:
    version: v3
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN

```

**Note:** Policies specified for subsets will not take effect until a route rule explicitly sends traffic to this subset.

Traffic policies can be customized to specific ports as well. The following rule uses the least connection load balancing policy for all traffic to port 80, while uses a round robin load balancing setting for traffic to the port 9080.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings-port

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy: # Apply to all ports
  portLevelSettings:
  - port:
      number: 80
    loadBalancer:
      simple: LEAST_CONN
  - port:
      number: 9080
    loadBalancer:
      simple: ROUND_ROBIN

```

func NewDestinationRule

func NewDestinationRule(namespace, name string) *DestinationRule

func (*DestinationRule) DeepCopyObject

func (o *DestinationRule) DeepCopyObject() runtime.Object

func (*DestinationRule) Descriptor

func (*DestinationRule) Descriptor() ([]byte, []int)

func (*DestinationRule) Equal

func (this *DestinationRule) Equal(that interface{}) bool

func (*DestinationRule) GetConfigScope

func (m *DestinationRule) GetConfigScope() ConfigScope

func (*DestinationRule) GetHost

func (m *DestinationRule) GetHost() string

func (*DestinationRule) GetMetadata

func (m *DestinationRule) GetMetadata() core.Metadata

func (*DestinationRule) GetObjectKind

func (o *DestinationRule) GetObjectKind() schema.ObjectKind

func (*DestinationRule) GetStatus

func (m *DestinationRule) GetStatus() core.Status

func (*DestinationRule) GetSubsets

func (m *DestinationRule) GetSubsets() []*Subset

func (*DestinationRule) GetTrafficPolicy

func (m *DestinationRule) GetTrafficPolicy() *TrafficPolicy

func (*DestinationRule) Hash

func (r *DestinationRule) Hash() uint64

func (*DestinationRule) ProtoMessage

func (*DestinationRule) ProtoMessage()

func (*DestinationRule) Reset

func (m *DestinationRule) Reset()

func (*DestinationRule) SetMetadata

func (r *DestinationRule) SetMetadata(meta core.Metadata)

func (*DestinationRule) SetStatus

func (r *DestinationRule) SetStatus(status core.Status)

func (*DestinationRule) String

func (m *DestinationRule) String() string

func (*DestinationRule) XXX_DiscardUnknown

func (m *DestinationRule) XXX_DiscardUnknown()

func (*DestinationRule) XXX_Marshal

func (m *DestinationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestinationRule) XXX_Merge

func (m *DestinationRule) XXX_Merge(src proto.Message)

func (*DestinationRule) XXX_Size

func (m *DestinationRule) XXX_Size() int

func (*DestinationRule) XXX_Unmarshal

func (m *DestinationRule) XXX_Unmarshal(b []byte) error

type DestinationRuleClient

type DestinationRuleClient interface {
	BaseClient() clients.ResourceClient
	Register() error
	Read(namespace, name string, opts clients.ReadOpts) (*DestinationRule, error)
	Write(resource *DestinationRule, opts clients.WriteOpts) (*DestinationRule, error)
	Delete(namespace, name string, opts clients.DeleteOpts) error
	List(namespace string, opts clients.ListOpts) (DestinationRuleList, error)
	DestinationRuleWatcher
}

func NewDestinationRuleClient

func NewDestinationRuleClient(rcFactory factory.ResourceClientFactory) (DestinationRuleClient, error)

func NewDestinationRuleClientWithBase

func NewDestinationRuleClientWithBase(rc clients.ResourceClient) DestinationRuleClient

func NewDestinationRuleClientWithToken

func NewDestinationRuleClientWithToken(rcFactory factory.ResourceClientFactory, token string) (DestinationRuleClient, error)

type DestinationRuleList

type DestinationRuleList []*DestinationRule

func (DestinationRuleList) AsInputResources

func (list DestinationRuleList) AsInputResources() resources.InputResourceList

func (DestinationRuleList) AsInterfaces

func (list DestinationRuleList) AsInterfaces() []interface{}

func (DestinationRuleList) AsResources

func (list DestinationRuleList) AsResources() resources.ResourceList

func (DestinationRuleList) Clone

func (DestinationRuleList) Each

func (list DestinationRuleList) Each(f func(element *DestinationRule))

func (DestinationRuleList) EachResource added in v0.3.18

func (list DestinationRuleList) EachResource(f func(element resources.Resource))

func (DestinationRuleList) Find

func (list DestinationRuleList) Find(namespace, name string) (*DestinationRule, error)

namespace is optional, if left empty, names can collide if the list contains more than one with the same name

func (DestinationRuleList) Names

func (list DestinationRuleList) Names() []string

func (DestinationRuleList) NamespacesDotNames

func (list DestinationRuleList) NamespacesDotNames() []string

func (DestinationRuleList) Sort

type DestinationRuleReconciler

type DestinationRuleReconciler interface {
	Reconcile(namespace string, desiredResources DestinationRuleList, transition TransitionDestinationRuleFunc, opts clients.ListOpts) error
}

func NewDestinationRuleReconciler

func NewDestinationRuleReconciler(client DestinationRuleClient) DestinationRuleReconciler

type DestinationRuleWatcher added in v0.3.18

type DestinationRuleWatcher interface {
	// watch namespace-scoped Destinationrules
	Watch(namespace string, opts clients.WatchOpts) (<-chan DestinationRuleList, <-chan error, error)
}

type Gateway

type Gateway struct {
	// REQUIRED: A list of server specifications.
	Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// REQUIRED: One or more labels that indicate a specific set of pods/VMs
	// on which this gateway configuration should be applied. The scope of
	// label search is restricted to the configuration namespace in which the
	// the resource is present. In other words, the Gateway resource must
	// reside in the same namespace as the gateway workload.
	Selector             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

`Gateway` describes a load balancer operating at the edge of the mesh receiving incoming or outgoing HTTP/TCP connections. The specification describes a set of ports that should be exposed, the type of protocol to use, SNI configuration for the load balancer, etc.

For example, the following Gateway configuration sets up a proxy to act as a load balancer exposing port 80 and 9080 (http), 443 (https), and port 2379 (TCP) for ingress. The gateway will be applied to the proxy running on a pod with labels `app: my-gateway-controller`. While Istio will configure the proxy to listen on these ports, it is the responsibility of the user to ensure that external traffic to these ports are allowed into the mesh.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-gateway
namespace: some-config-namespace

spec:

selector:
  app: my-gateway-controller
servers:
- port:
    number: 80
    name: http
    protocol: HTTP
  hosts:
  - uk.bookinfo.com
  - eu.bookinfo.com
  tls:
    httpsRedirect: true # sends 301 redirect for http requests
- port:
    number: 443
    name: https
    protocol: HTTPS
  hosts:
  - uk.bookinfo.com
  - eu.bookinfo.com
  tls:
    mode: SIMPLE #enables HTTPS on this port
    serverCertificate: /etc/certs/servercert.pem
    privateKey: /etc/certs/privatekey.pem
- port:
    number: 9080
    name: http-wildcard
    protocol: HTTP
  hosts:
  - "*"
- port:
    number: 2379 # to expose internal service via external port 2379
    name: mongo
    protocol: MONGO
  hosts:
  - "*"

``` The Gateway specification above describes the L4-L6 properties of a load balancer. A `VirtualService` can then be bound to a gateway to control the forwarding of traffic arriving at a particular host or gateway port.

For example, the following VirtualService splits traffic for "https://uk.bookinfo.com/reviews", "https://eu.bookinfo.com/reviews", "http://uk.bookinfo.com:9080/reviews", "http://eu.bookinfo.com:9080/reviews" into two versions (prod and qa) of an internal reviews service on port 9080. In addition, requests containing the cookie "user: dev-123" will be sent to special port 7777 in the qa version. The same rule is also applicable inside the mesh for requests to the "reviews.prod.svc.cluster.local" service. This rule is applicable across ports 443, 9080. Note that "http://uk.bookinfo.com" gets redirected to "https://uk.bookinfo.com" (i.e. 80 redirects to 443).

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-rule
namespace: bookinfo-namespace

spec:

hosts:
- reviews.prod.svc.cluster.local
- uk.bookinfo.com
- eu.bookinfo.com
gateways:
- some-config-namespace/my-gateway
- mesh # applies to all the sidecars in the mesh
http:
- match:
  - headers:
      cookie:
        user: dev-123
  route:
  - destination:
      port:
        number: 7777
      host: reviews.qa.svc.cluster.local
- match:
    uri:
      prefix: /reviews/
  route:
  - destination:
      port:
        number: 9080 # can be omitted if its the only port for reviews
      host: reviews.prod.svc.cluster.local
    weight: 80
  - destination:
      host: reviews.qa.svc.cluster.local
    weight: 20

```

The following VirtualService forwards traffic arriving at (external) port 27017 to internal Mongo server on port 5555. This rule is not applicable internally in the mesh as the gateway list omits the reserved name `mesh`.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-Mongo
namespace: bookinfo-namespace

spec:

hosts:
- mongosvr.prod.svc.cluster.local #name of internal Mongo service
gateways:
- some-config-namespace/my-gateway # can omit the namespace if gateway is in same
                                     namespace as virtual service.
tcp:
- match:
  - port: 27017
  route:
  - destination:
      host: mongo.prod.svc.cluster.local
      port:
        number: 5555

```

func (*Gateway) Descriptor

func (*Gateway) Descriptor() ([]byte, []int)

func (*Gateway) Equal

func (this *Gateway) Equal(that interface{}) bool

func (*Gateway) GetSelector

func (m *Gateway) GetSelector() map[string]string

func (*Gateway) GetServers

func (m *Gateway) GetServers() []*Server

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) Reset

func (m *Gateway) Reset()

func (*Gateway) String

func (m *Gateway) String() string

func (*Gateway) XXX_DiscardUnknown

func (m *Gateway) XXX_DiscardUnknown()

func (*Gateway) XXX_Marshal

func (m *Gateway) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Gateway) XXX_Merge

func (m *Gateway) XXX_Merge(src proto.Message)

func (*Gateway) XXX_Size

func (m *Gateway) XXX_Size() int

func (*Gateway) XXX_Unmarshal

func (m *Gateway) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection

type HTTPFaultInjection struct {
	// Delay requests before forwarding, emulating various failures such as
	// network issues, overloaded upstream service, etc.
	Delay *HTTPFaultInjection_Delay `protobuf:"bytes,1,opt,name=delay,proto3" json:"delay,omitempty"`
	// Abort Http request attempts and return error codes back to downstream
	// service, giving the impression that the upstream service is faulty.
	Abort                *HTTPFaultInjection_Abort `protobuf:"bytes,2,opt,name=abort,proto3" json:"abort,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

HTTPFaultInjection can be used to specify one or more faults to inject while forwarding http requests to the destination specified in a route. Fault specification is part of a VirtualService rule. Faults include aborting the Http request from downstream service, and/or delaying proxying of requests. A fault rule MUST HAVE delay or abort or both.

*Note:* Delay and abort faults are independent of one another, even if both are specified simultaneously.

func (*HTTPFaultInjection) Descriptor

func (*HTTPFaultInjection) Descriptor() ([]byte, []int)

func (*HTTPFaultInjection) Equal

func (this *HTTPFaultInjection) Equal(that interface{}) bool

func (*HTTPFaultInjection) GetAbort

func (*HTTPFaultInjection) GetDelay

func (*HTTPFaultInjection) ProtoMessage

func (*HTTPFaultInjection) ProtoMessage()

func (*HTTPFaultInjection) Reset

func (m *HTTPFaultInjection) Reset()

func (*HTTPFaultInjection) String

func (m *HTTPFaultInjection) String() string

func (*HTTPFaultInjection) XXX_DiscardUnknown

func (m *HTTPFaultInjection) XXX_DiscardUnknown()

func (*HTTPFaultInjection) XXX_Marshal

func (m *HTTPFaultInjection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection) XXX_Merge

func (m *HTTPFaultInjection) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection) XXX_Size

func (m *HTTPFaultInjection) XXX_Size() int

func (*HTTPFaultInjection) XXX_Unmarshal

func (m *HTTPFaultInjection) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Abort

type HTTPFaultInjection_Abort struct {
	// Percentage of requests to be aborted with the error code provided (0-100).
	// Use of integer `percent` value is deprecated. Use the double `percentage`
	// field instead.
	Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // Deprecated: Do not use.
	// Types that are valid to be assigned to ErrorType:
	//	*HTTPFaultInjection_Abort_HttpStatus
	//	*HTTPFaultInjection_Abort_GrpcStatus
	//	*HTTPFaultInjection_Abort_Http2Error
	ErrorType isHTTPFaultInjection_Abort_ErrorType `protobuf_oneof:"error_type"`
	// Percentage of requests to be aborted with the error code provided.
	Percentage           *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Abort specification is used to prematurely abort a request with a pre-specified error code. The following example will return an HTTP 400 error code for 1 out of every 1000 requests to the "ratings" service "v1".

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  fault:
    abort:
      percentage:
        value: 0.001
      httpStatus: 400

```

The _httpStatus_ field is used to indicate the HTTP status code to return to the caller. The optional _percentage_ field can be used to only abort a certain percentage of requests. If not specified, all requests are aborted.

func (*HTTPFaultInjection_Abort) Descriptor

func (*HTTPFaultInjection_Abort) Descriptor() ([]byte, []int)

func (*HTTPFaultInjection_Abort) Equal

func (this *HTTPFaultInjection_Abort) Equal(that interface{}) bool

func (*HTTPFaultInjection_Abort) GetErrorType

func (m *HTTPFaultInjection_Abort) GetErrorType() isHTTPFaultInjection_Abort_ErrorType

func (*HTTPFaultInjection_Abort) GetGrpcStatus

func (m *HTTPFaultInjection_Abort) GetGrpcStatus() string

func (*HTTPFaultInjection_Abort) GetHttp2Error

func (m *HTTPFaultInjection_Abort) GetHttp2Error() string

func (*HTTPFaultInjection_Abort) GetHttpStatus

func (m *HTTPFaultInjection_Abort) GetHttpStatus() int32

func (*HTTPFaultInjection_Abort) GetPercent deprecated

func (m *HTTPFaultInjection_Abort) GetPercent() int32

Deprecated: Do not use.

func (*HTTPFaultInjection_Abort) GetPercentage

func (m *HTTPFaultInjection_Abort) GetPercentage() *Percent

func (*HTTPFaultInjection_Abort) ProtoMessage

func (*HTTPFaultInjection_Abort) ProtoMessage()

func (*HTTPFaultInjection_Abort) Reset

func (m *HTTPFaultInjection_Abort) Reset()

func (*HTTPFaultInjection_Abort) String

func (m *HTTPFaultInjection_Abort) String() string

func (*HTTPFaultInjection_Abort) XXX_DiscardUnknown

func (m *HTTPFaultInjection_Abort) XXX_DiscardUnknown()

func (*HTTPFaultInjection_Abort) XXX_Marshal

func (m *HTTPFaultInjection_Abort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection_Abort) XXX_Merge

func (m *HTTPFaultInjection_Abort) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection_Abort) XXX_OneofFuncs

func (*HTTPFaultInjection_Abort) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*HTTPFaultInjection_Abort) XXX_Size

func (m *HTTPFaultInjection_Abort) XXX_Size() int

func (*HTTPFaultInjection_Abort) XXX_Unmarshal

func (m *HTTPFaultInjection_Abort) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Abort_GrpcStatus

type HTTPFaultInjection_Abort_GrpcStatus struct {
	GrpcStatus string `protobuf:"bytes,3,opt,name=grpc_status,json=grpcStatus,proto3,oneof"`
}

func (*HTTPFaultInjection_Abort_GrpcStatus) Equal

func (this *HTTPFaultInjection_Abort_GrpcStatus) Equal(that interface{}) bool

type HTTPFaultInjection_Abort_Http2Error

type HTTPFaultInjection_Abort_Http2Error struct {
	Http2Error string `protobuf:"bytes,4,opt,name=http2_error,json=http2Error,proto3,oneof"`
}

func (*HTTPFaultInjection_Abort_Http2Error) Equal

func (this *HTTPFaultInjection_Abort_Http2Error) Equal(that interface{}) bool

type HTTPFaultInjection_Abort_HttpStatus

type HTTPFaultInjection_Abort_HttpStatus struct {
	HttpStatus int32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"`
}

func (*HTTPFaultInjection_Abort_HttpStatus) Equal

func (this *HTTPFaultInjection_Abort_HttpStatus) Equal(that interface{}) bool

type HTTPFaultInjection_Delay

type HTTPFaultInjection_Delay struct {
	// Percentage of requests on which the delay will be injected (0-100).
	// Use of integer `percent` value is deprecated. Use the double `percentage`
	// field instead.
	Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // Deprecated: Do not use.
	// Types that are valid to be assigned to HttpDelayType:
	//	*HTTPFaultInjection_Delay_FixedDelay
	//	*HTTPFaultInjection_Delay_ExponentialDelay
	HttpDelayType isHTTPFaultInjection_Delay_HttpDelayType `protobuf_oneof:"http_delay_type"`
	// Percentage of requests on which the delay will be injected.
	Percentage           *Percent `protobuf:"bytes,5,opt,name=percentage,proto3" json:"percentage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Delay specification is used to inject latency into the request forwarding path. The following example will introduce a 5 second delay in 1 out of every 1000 requests to the "v1" version of the "reviews" service from all pods with label env: prod

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- match:
  - sourceLabels:
      env: prod
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
  fault:
    delay:
      percentage:
        value: 0.001
      fixedDelay: 5s

```

The _fixedDelay_ field is used to indicate the amount of delay in seconds. The optional _percentage_ field can be used to only delay a certain percentage of requests. If left unspecified, all request will be delayed.

func (*HTTPFaultInjection_Delay) Descriptor

func (*HTTPFaultInjection_Delay) Descriptor() ([]byte, []int)

func (*HTTPFaultInjection_Delay) Equal

func (this *HTTPFaultInjection_Delay) Equal(that interface{}) bool

func (*HTTPFaultInjection_Delay) GetExponentialDelay

func (m *HTTPFaultInjection_Delay) GetExponentialDelay() *types.Duration

func (*HTTPFaultInjection_Delay) GetFixedDelay

func (m *HTTPFaultInjection_Delay) GetFixedDelay() *types.Duration

func (*HTTPFaultInjection_Delay) GetHttpDelayType

func (m *HTTPFaultInjection_Delay) GetHttpDelayType() isHTTPFaultInjection_Delay_HttpDelayType

func (*HTTPFaultInjection_Delay) GetPercent deprecated

func (m *HTTPFaultInjection_Delay) GetPercent() int32

Deprecated: Do not use.

func (*HTTPFaultInjection_Delay) GetPercentage

func (m *HTTPFaultInjection_Delay) GetPercentage() *Percent

func (*HTTPFaultInjection_Delay) ProtoMessage

func (*HTTPFaultInjection_Delay) ProtoMessage()

func (*HTTPFaultInjection_Delay) Reset

func (m *HTTPFaultInjection_Delay) Reset()

func (*HTTPFaultInjection_Delay) String

func (m *HTTPFaultInjection_Delay) String() string

func (*HTTPFaultInjection_Delay) XXX_DiscardUnknown

func (m *HTTPFaultInjection_Delay) XXX_DiscardUnknown()

func (*HTTPFaultInjection_Delay) XXX_Marshal

func (m *HTTPFaultInjection_Delay) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPFaultInjection_Delay) XXX_Merge

func (m *HTTPFaultInjection_Delay) XXX_Merge(src proto.Message)

func (*HTTPFaultInjection_Delay) XXX_OneofFuncs

func (*HTTPFaultInjection_Delay) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*HTTPFaultInjection_Delay) XXX_Size

func (m *HTTPFaultInjection_Delay) XXX_Size() int

func (*HTTPFaultInjection_Delay) XXX_Unmarshal

func (m *HTTPFaultInjection_Delay) XXX_Unmarshal(b []byte) error

type HTTPFaultInjection_Delay_ExponentialDelay

type HTTPFaultInjection_Delay_ExponentialDelay struct {
	ExponentialDelay *types.Duration `protobuf:"bytes,3,opt,name=exponential_delay,json=exponentialDelay,proto3,oneof"`
}

func (*HTTPFaultInjection_Delay_ExponentialDelay) Equal

func (this *HTTPFaultInjection_Delay_ExponentialDelay) Equal(that interface{}) bool

type HTTPFaultInjection_Delay_FixedDelay

type HTTPFaultInjection_Delay_FixedDelay struct {
	FixedDelay *types.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"`
}

func (*HTTPFaultInjection_Delay_FixedDelay) Equal

func (this *HTTPFaultInjection_Delay_FixedDelay) Equal(that interface{}) bool

type HTTPMatchRequest

type HTTPMatchRequest struct {
	// URI to match
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Uri *StringMatch `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// URI Scheme
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Scheme *StringMatch `protobuf:"bytes,2,opt,name=scheme,proto3" json:"scheme,omitempty"`
	// HTTP Method
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Method *StringMatch `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// HTTP Authority
	// values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	Authority *StringMatch `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"`
	// The header keys must be lowercase and use hyphen as the separator,
	// e.g. _x-request-id_.
	//
	// Header values are case-sensitive and formatted as follows:
	//
	// - `exact: "value"` for exact string match
	//
	// - `prefix: "value"` for prefix-based match
	//
	// - `regex: "value"` for ECMAscript style regex-based match
	//
	// **Note:** The keys `uri`, `scheme`, `method`, and `authority` will be ignored.
	Headers map[string]*StringMatch `` /* 155-byte string literal not displayed */
	// Specifies the ports on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway match is
	// independent of sourceLabels.
	Gateways             []string `protobuf:"bytes,8,rep,name=gateways,proto3" json:"gateways,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HttpMatchRequest specifies a set of criterion to be met in order for the rule to be applied to the HTTP request. For example, the following restricts the rule to match only requests where the URL path starts with /ratings/v2/ and the request contains a custom `end-user` header with value `jason`.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - headers:
      end-user:
        exact: jason
    uri:
      prefix: "/ratings/v2/"
  route:
  - destination:
      host: ratings.prod.svc.cluster.local

```

HTTPMatchRequest CANNOT be empty.

func (*HTTPMatchRequest) Descriptor

func (*HTTPMatchRequest) Descriptor() ([]byte, []int)

func (*HTTPMatchRequest) Equal

func (this *HTTPMatchRequest) Equal(that interface{}) bool

func (*HTTPMatchRequest) GetAuthority

func (m *HTTPMatchRequest) GetAuthority() *StringMatch

func (*HTTPMatchRequest) GetGateways

func (m *HTTPMatchRequest) GetGateways() []string

func (*HTTPMatchRequest) GetHeaders

func (m *HTTPMatchRequest) GetHeaders() map[string]*StringMatch

func (*HTTPMatchRequest) GetMethod

func (m *HTTPMatchRequest) GetMethod() *StringMatch

func (*HTTPMatchRequest) GetPort

func (m *HTTPMatchRequest) GetPort() uint32

func (*HTTPMatchRequest) GetScheme

func (m *HTTPMatchRequest) GetScheme() *StringMatch

func (*HTTPMatchRequest) GetSourceLabels

func (m *HTTPMatchRequest) GetSourceLabels() map[string]string

func (*HTTPMatchRequest) GetUri

func (m *HTTPMatchRequest) GetUri() *StringMatch

func (*HTTPMatchRequest) ProtoMessage

func (*HTTPMatchRequest) ProtoMessage()

func (*HTTPMatchRequest) Reset

func (m *HTTPMatchRequest) Reset()

func (*HTTPMatchRequest) String

func (m *HTTPMatchRequest) String() string

func (*HTTPMatchRequest) XXX_DiscardUnknown

func (m *HTTPMatchRequest) XXX_DiscardUnknown()

func (*HTTPMatchRequest) XXX_Marshal

func (m *HTTPMatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPMatchRequest) XXX_Merge

func (m *HTTPMatchRequest) XXX_Merge(src proto.Message)

func (*HTTPMatchRequest) XXX_Size

func (m *HTTPMatchRequest) XXX_Size() int

func (*HTTPMatchRequest) XXX_Unmarshal

func (m *HTTPMatchRequest) XXX_Unmarshal(b []byte) error

type HTTPRedirect

type HTTPRedirect struct {
	// On a redirect, overwrite the Path portion of the URL with this
	// value. Note that the entire path will be replaced, irrespective of the
	// request URI being matched as an exact path or prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// On a redirect, overwrite the Authority/Host portion of the URL with
	// this value.
	Authority            string   `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HTTPRedirect can be used to send a 301 redirect response to the caller, where the Authority/Host and the URI in the response can be swapped with the specified values. For example, the following rule redirects requests for /v1/getProductRatings API on the ratings service to /v1/bookRatings provided by the bookratings service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      exact: /v1/getProductRatings
redirect:
  uri: /v1/bookRatings
  authority: newratings.default.svc.cluster.local
...

```

func (*HTTPRedirect) Descriptor

func (*HTTPRedirect) Descriptor() ([]byte, []int)

func (*HTTPRedirect) Equal

func (this *HTTPRedirect) Equal(that interface{}) bool

func (*HTTPRedirect) GetAuthority

func (m *HTTPRedirect) GetAuthority() string

func (*HTTPRedirect) GetUri

func (m *HTTPRedirect) GetUri() string

func (*HTTPRedirect) ProtoMessage

func (*HTTPRedirect) ProtoMessage()

func (*HTTPRedirect) Reset

func (m *HTTPRedirect) Reset()

func (*HTTPRedirect) String

func (m *HTTPRedirect) String() string

func (*HTTPRedirect) XXX_DiscardUnknown

func (m *HTTPRedirect) XXX_DiscardUnknown()

func (*HTTPRedirect) XXX_Marshal

func (m *HTTPRedirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRedirect) XXX_Merge

func (m *HTTPRedirect) XXX_Merge(src proto.Message)

func (*HTTPRedirect) XXX_Size

func (m *HTTPRedirect) XXX_Size() int

func (*HTTPRedirect) XXX_Unmarshal

func (m *HTTPRedirect) XXX_Unmarshal(b []byte) error

type HTTPRetry

type HTTPRetry struct {
	// REQUIRED. Number of retries for a given request. The interval
	// between retries will be determined automatically (25ms+). Actual
	// number of retries attempted depends on the httpReqTimeout.
	Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"`
	// Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
	PerTryTimeout *types.Duration `protobuf:"bytes,2,opt,name=per_try_timeout,json=perTryTimeout,proto3" json:"per_try_timeout,omitempty"`
	// Specifies the conditions under which retry takes place.
	// One or more policies can be specified using a ‘,’ delimited list.
	// The supported policies can be found in
	// <https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-on>
	// and <https://www.envoyproxy.io/docs/envoy/latest/configuration/http_filters/router_filter#x-envoy-retry-grpc-on>
	RetryOn              string   `protobuf:"bytes,3,opt,name=retry_on,json=retryOn,proto3" json:"retry_on,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes the retry policy to use when a HTTP request fails. For example, the following rule sets the maximum number of retries to 3 when calling ratings:v1 service, with a 2s timeout per retry attempt.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1
  retries:
    attempts: 3
    perTryTimeout: 2s
    retryOn: gateway-error,connect-failure,refused-stream

```

func (*HTTPRetry) Descriptor

func (*HTTPRetry) Descriptor() ([]byte, []int)

func (*HTTPRetry) Equal

func (this *HTTPRetry) Equal(that interface{}) bool

func (*HTTPRetry) GetAttempts

func (m *HTTPRetry) GetAttempts() int32

func (*HTTPRetry) GetPerTryTimeout

func (m *HTTPRetry) GetPerTryTimeout() *types.Duration

func (*HTTPRetry) GetRetryOn

func (m *HTTPRetry) GetRetryOn() string

func (*HTTPRetry) ProtoMessage

func (*HTTPRetry) ProtoMessage()

func (*HTTPRetry) Reset

func (m *HTTPRetry) Reset()

func (*HTTPRetry) String

func (m *HTTPRetry) String() string

func (*HTTPRetry) XXX_DiscardUnknown

func (m *HTTPRetry) XXX_DiscardUnknown()

func (*HTTPRetry) XXX_Marshal

func (m *HTTPRetry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRetry) XXX_Merge

func (m *HTTPRetry) XXX_Merge(src proto.Message)

func (*HTTPRetry) XXX_Size

func (m *HTTPRetry) XXX_Size() int

func (*HTTPRetry) XXX_Unmarshal

func (m *HTTPRetry) XXX_Unmarshal(b []byte) error

type HTTPRewrite

type HTTPRewrite struct {
	// rewrite the path (or the prefix) portion of the URI with this
	// value. If the original URI was matched based on prefix, the value
	// provided in this field will replace the corresponding matched prefix.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// rewrite the Authority/Host header with this value.
	Authority            string   `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HTTPRewrite can be used to rewrite specific parts of a HTTP request before forwarding the request to the destination. Rewrite primitive can be used only with HTTPRouteDestination. The following example demonstrates how to rewrite the URL prefix for api call (/ratings) to ratings service before making the actual API call.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: ratings-route

spec:

hosts:
- ratings.prod.svc.cluster.local
http:
- match:
  - uri:
      prefix: /ratings
  rewrite:
    uri: /v1/bookRatings
  route:
  - destination:
      host: ratings.prod.svc.cluster.local
      subset: v1

```

func (*HTTPRewrite) Descriptor

func (*HTTPRewrite) Descriptor() ([]byte, []int)

func (*HTTPRewrite) Equal

func (this *HTTPRewrite) Equal(that interface{}) bool

func (*HTTPRewrite) GetAuthority

func (m *HTTPRewrite) GetAuthority() string

func (*HTTPRewrite) GetUri

func (m *HTTPRewrite) GetUri() string

func (*HTTPRewrite) ProtoMessage

func (*HTTPRewrite) ProtoMessage()

func (*HTTPRewrite) Reset

func (m *HTTPRewrite) Reset()

func (*HTTPRewrite) String

func (m *HTTPRewrite) String() string

func (*HTTPRewrite) XXX_DiscardUnknown

func (m *HTTPRewrite) XXX_DiscardUnknown()

func (*HTTPRewrite) XXX_Marshal

func (m *HTTPRewrite) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRewrite) XXX_Merge

func (m *HTTPRewrite) XXX_Merge(src proto.Message)

func (*HTTPRewrite) XXX_Size

func (m *HTTPRewrite) XXX_Size() int

func (*HTTPRewrite) XXX_Unmarshal

func (m *HTTPRewrite) XXX_Unmarshal(b []byte) error

type HTTPRoute

type HTTPRoute struct {
	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*HTTPMatchRequest `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// A http rule can either redirect or forward (default) traffic. The
	// forwarding target can be one of several versions of a service (see
	// glossary in beginning of document). Weights associated with the
	// service version determine the proportion of traffic it receives.
	Route []*HTTPRouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	// A http rule can either redirect or forward (default) traffic. If
	// traffic passthrough option is specified in the rule,
	// route/redirect will be ignored. The redirect primitive can be used to
	// send a HTTP 301 redirect to a different URI or Authority.
	Redirect *HTTPRedirect `protobuf:"bytes,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
	// Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with
	// Redirect primitive. Rewrite will be performed before forwarding.
	Rewrite *HTTPRewrite `protobuf:"bytes,4,opt,name=rewrite,proto3" json:"rewrite,omitempty"`
	// Deprecated. Websocket upgrades are done automatically starting from Istio 1.0.
	// $hide_from_docs
	WebsocketUpgrade bool `protobuf:"varint,5,opt,name=websocket_upgrade,json=websocketUpgrade,proto3" json:"websocket_upgrade,omitempty"`
	// Timeout for HTTP requests.
	Timeout *types.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// Retry policy for HTTP requests.
	Retries *HTTPRetry `protobuf:"bytes,7,opt,name=retries,proto3" json:"retries,omitempty"`
	// Fault injection policy to apply on HTTP traffic at the client side.
	// Note that timeouts or retries will not be enabled when faults are
	// enabled on the client side.
	Fault *HTTPFaultInjection `protobuf:"bytes,8,opt,name=fault,proto3" json:"fault,omitempty"`
	// Mirror HTTP traffic to a another destination in addition to forwarding
	// the requests to the intended destination. Mirrored traffic is on a
	// best effort basis where the sidecar/gateway will not wait for the
	// mirrored cluster to respond before returning the response from the
	// original destination.  Statistics will be generated for the mirrored
	// destination.
	Mirror *Destination `protobuf:"bytes,9,opt,name=mirror,proto3" json:"mirror,omitempty"`
	// Cross-Origin Resource Sharing policy (CORS). Refer to
	// https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
	// for further details about cross origin resource sharing.
	CorsPolicy *CorsPolicy `protobuf:"bytes,10,opt,name=cors_policy,json=corsPolicy,proto3" json:"cors_policy,omitempty"`
	// Use of `append_headers` is deprecated. Use the `headers`
	// field instead.
	AppendHeaders map[string]string `` // Deprecated: Do not use.
	/* 189-byte string literal not displayed */
	// Use of `remove_response_header` is deprecated. Use the `headers`
	// field instead.
	RemoveResponseHeaders []string `` // Deprecated: Do not use.
	/* 127-byte string literal not displayed */
	// Use of `append_response_headers` is deprecated. Use the `headers`
	// field instead.
	AppendResponseHeaders map[string]string `` // Deprecated: Do not use.
	/* 215-byte string literal not displayed */
	// Use of `remove_request_headers` is deprecated. Use the `headers`
	// field instead.
	RemoveRequestHeaders []string `protobuf:"bytes,14,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"` // Deprecated: Do not use.
	// Use of `append_request_headers` is deprecated. Use the `headers`
	// field instead.
	AppendRequestHeaders map[string]string `` // Deprecated: Do not use.
	/* 212-byte string literal not displayed */
	// Header manipulation rules
	Headers              *Headers `protobuf:"bytes,16,opt,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes match conditions and actions for routing HTTP/1.1, HTTP2, and gRPC traffic. See VirtualService for usage examples.

func (*HTTPRoute) Descriptor

func (*HTTPRoute) Descriptor() ([]byte, []int)

func (*HTTPRoute) Equal

func (this *HTTPRoute) Equal(that interface{}) bool

func (*HTTPRoute) GetAppendHeaders deprecated

func (m *HTTPRoute) GetAppendHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetAppendRequestHeaders deprecated

func (m *HTTPRoute) GetAppendRequestHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetAppendResponseHeaders deprecated

func (m *HTTPRoute) GetAppendResponseHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRoute) GetCorsPolicy

func (m *HTTPRoute) GetCorsPolicy() *CorsPolicy

func (*HTTPRoute) GetFault

func (m *HTTPRoute) GetFault() *HTTPFaultInjection

func (*HTTPRoute) GetHeaders

func (m *HTTPRoute) GetHeaders() *Headers

func (*HTTPRoute) GetMatch

func (m *HTTPRoute) GetMatch() []*HTTPMatchRequest

func (*HTTPRoute) GetMirror

func (m *HTTPRoute) GetMirror() *Destination

func (*HTTPRoute) GetRedirect

func (m *HTTPRoute) GetRedirect() *HTTPRedirect

func (*HTTPRoute) GetRemoveRequestHeaders deprecated

func (m *HTTPRoute) GetRemoveRequestHeaders() []string

Deprecated: Do not use.

func (*HTTPRoute) GetRemoveResponseHeaders deprecated

func (m *HTTPRoute) GetRemoveResponseHeaders() []string

Deprecated: Do not use.

func (*HTTPRoute) GetRetries

func (m *HTTPRoute) GetRetries() *HTTPRetry

func (*HTTPRoute) GetRewrite

func (m *HTTPRoute) GetRewrite() *HTTPRewrite

func (*HTTPRoute) GetRoute

func (m *HTTPRoute) GetRoute() []*HTTPRouteDestination

func (*HTTPRoute) GetTimeout

func (m *HTTPRoute) GetTimeout() *types.Duration

func (*HTTPRoute) GetWebsocketUpgrade

func (m *HTTPRoute) GetWebsocketUpgrade() bool

func (*HTTPRoute) ProtoMessage

func (*HTTPRoute) ProtoMessage()

func (*HTTPRoute) Reset

func (m *HTTPRoute) Reset()

func (*HTTPRoute) String

func (m *HTTPRoute) String() string

func (*HTTPRoute) XXX_DiscardUnknown

func (m *HTTPRoute) XXX_DiscardUnknown()

func (*HTTPRoute) XXX_Marshal

func (m *HTTPRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRoute) XXX_Merge

func (m *HTTPRoute) XXX_Merge(src proto.Message)

func (*HTTPRoute) XXX_Size

func (m *HTTPRoute) XXX_Size() int

func (*HTTPRoute) XXX_Unmarshal

func (m *HTTPRoute) XXX_Unmarshal(b []byte) error

type HTTPRouteDestination

type HTTPRouteDestination struct {
	// REQUIRED. Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// REQUIRED. The proportion of traffic to be forwarded to the service
	// version. (0-100). Sum of weights across destinations SHOULD BE == 100.
	// If there is only one destination in a rule, the weight value is assumed to
	// be 100.
	Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// Use of `remove_response_header` is deprecated. Use the `headers`
	// field instead.
	RemoveResponseHeaders []string `` // Deprecated: Do not use.
	/* 126-byte string literal not displayed */
	// Use of `append_response_headers` is deprecated. Use the `headers`
	// field instead.
	AppendResponseHeaders map[string]string `` // Deprecated: Do not use.
	/* 214-byte string literal not displayed */
	// Use of `remove_request_headers` is deprecated. Use the `headers`
	// field instead.
	RemoveRequestHeaders []string `protobuf:"bytes,5,rep,name=remove_request_headers,json=removeRequestHeaders,proto3" json:"remove_request_headers,omitempty"` // Deprecated: Do not use.
	// Use of `append_request_headers` is deprecated. Use the `headers`
	// field instead.
	AppendRequestHeaders map[string]string `` // Deprecated: Do not use.
	/* 211-byte string literal not displayed */
	// Header manipulation rules
	Headers              *Headers `protobuf:"bytes,7,opt,name=headers,proto3" json:"headers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Each routing rule is associated with one or more service versions (see glossary in beginning of document). Weights associated with the version determine the proportion of traffic it receives. For example, the following rule will route 25% of traffic for the "reviews" service to instances with the "v2" tag and the remaining traffic (i.e., 75%) to "v1".

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
    weight: 25
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1
    weight: 75

```

And the associated DestinationRule

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination

spec:

host: reviews.prod.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

```

Traffic can also be split across two entirely different services without having to define new subsets. For example, the following rule forwards 25% of traffic to reviews.com to dev.reviews.com

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route-two-domains

spec:

hosts:
- reviews.com
http:
- route:
  - destination:
      host: dev.reviews.com
    weight: 25
  - destination:
      host: reviews.com
    weight: 75

```

func (*HTTPRouteDestination) Descriptor

func (*HTTPRouteDestination) Descriptor() ([]byte, []int)

func (*HTTPRouteDestination) Equal

func (this *HTTPRouteDestination) Equal(that interface{}) bool

func (*HTTPRouteDestination) GetAppendRequestHeaders deprecated

func (m *HTTPRouteDestination) GetAppendRequestHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetAppendResponseHeaders deprecated

func (m *HTTPRouteDestination) GetAppendResponseHeaders() map[string]string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetDestination

func (m *HTTPRouteDestination) GetDestination() *Destination

func (*HTTPRouteDestination) GetHeaders

func (m *HTTPRouteDestination) GetHeaders() *Headers

func (*HTTPRouteDestination) GetRemoveRequestHeaders deprecated

func (m *HTTPRouteDestination) GetRemoveRequestHeaders() []string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetRemoveResponseHeaders deprecated

func (m *HTTPRouteDestination) GetRemoveResponseHeaders() []string

Deprecated: Do not use.

func (*HTTPRouteDestination) GetWeight

func (m *HTTPRouteDestination) GetWeight() int32

func (*HTTPRouteDestination) ProtoMessage

func (*HTTPRouteDestination) ProtoMessage()

func (*HTTPRouteDestination) Reset

func (m *HTTPRouteDestination) Reset()

func (*HTTPRouteDestination) String

func (m *HTTPRouteDestination) String() string

func (*HTTPRouteDestination) XXX_DiscardUnknown

func (m *HTTPRouteDestination) XXX_DiscardUnknown()

func (*HTTPRouteDestination) XXX_Marshal

func (m *HTTPRouteDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HTTPRouteDestination) XXX_Merge

func (m *HTTPRouteDestination) XXX_Merge(src proto.Message)

func (*HTTPRouteDestination) XXX_Size

func (m *HTTPRouteDestination) XXX_Size() int

func (*HTTPRouteDestination) XXX_Unmarshal

func (m *HTTPRouteDestination) XXX_Unmarshal(b []byte) error

type Headers

type Headers struct {
	// Header manipulation rules to apply before forwarding a request
	// to the destination service
	Request *Headers_HeaderOperations `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Header manipulation rules to apply before returning a response
	// to the caller
	Response             *Headers_HeaderOperations `protobuf:"bytes,2,opt,name=response,proto3" json:"response,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

Header manipulation rules

func (*Headers) Descriptor

func (*Headers) Descriptor() ([]byte, []int)

func (*Headers) Equal

func (this *Headers) Equal(that interface{}) bool

func (*Headers) GetRequest

func (m *Headers) GetRequest() *Headers_HeaderOperations

func (*Headers) GetResponse

func (m *Headers) GetResponse() *Headers_HeaderOperations

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) Reset

func (m *Headers) Reset()

func (*Headers) String

func (m *Headers) String() string

func (*Headers) XXX_DiscardUnknown

func (m *Headers) XXX_DiscardUnknown()

func (*Headers) XXX_Marshal

func (m *Headers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers) XXX_Merge

func (m *Headers) XXX_Merge(src proto.Message)

func (*Headers) XXX_Size

func (m *Headers) XXX_Size() int

func (*Headers) XXX_Unmarshal

func (m *Headers) XXX_Unmarshal(b []byte) error

type Headers_HeaderOperations

type Headers_HeaderOperations struct {
	// Overwrite the headers specified by key with the given values
	Set map[string]string `` /* 147-byte string literal not displayed */
	// Append the given values to the headers specified by keys
	// (will create a comma-separated list of values)
	Add map[string]string `` /* 147-byte string literal not displayed */
	// Remove a the specified headers
	Remove               []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

HeaderOperations Describes the header manipulations to apply

func (*Headers_HeaderOperations) Descriptor

func (*Headers_HeaderOperations) Descriptor() ([]byte, []int)

func (*Headers_HeaderOperations) Equal

func (this *Headers_HeaderOperations) Equal(that interface{}) bool

func (*Headers_HeaderOperations) GetAdd

func (m *Headers_HeaderOperations) GetAdd() map[string]string

func (*Headers_HeaderOperations) GetRemove

func (m *Headers_HeaderOperations) GetRemove() []string

func (*Headers_HeaderOperations) GetSet

func (m *Headers_HeaderOperations) GetSet() map[string]string

func (*Headers_HeaderOperations) ProtoMessage

func (*Headers_HeaderOperations) ProtoMessage()

func (*Headers_HeaderOperations) Reset

func (m *Headers_HeaderOperations) Reset()

func (*Headers_HeaderOperations) String

func (m *Headers_HeaderOperations) String() string

func (*Headers_HeaderOperations) XXX_DiscardUnknown

func (m *Headers_HeaderOperations) XXX_DiscardUnknown()

func (*Headers_HeaderOperations) XXX_Marshal

func (m *Headers_HeaderOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Headers_HeaderOperations) XXX_Merge

func (m *Headers_HeaderOperations) XXX_Merge(src proto.Message)

func (*Headers_HeaderOperations) XXX_Size

func (m *Headers_HeaderOperations) XXX_Size() int

func (*Headers_HeaderOperations) XXX_Unmarshal

func (m *Headers_HeaderOperations) XXX_Unmarshal(b []byte) error

type IstioEgressListener

type IstioEgressListener struct {
	// $hide_from_docs
	// The port associated with the listener. If using unix domain socket,
	// use 0 as the port number, with a valid protocol. The port if
	// specified, will be used as the default destination port associated
	// with the imported hosts. If the port is omitted, Istio will infer the
	// listener ports based on the imported hosts. Note that when multiple
	// egress listeners are specified, where one or more listeners have
	// specific ports while others have no port, the hosts exposed on a
	// listener port will be based on the listener with the most specific
	// port.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// $hide_from_docs
	// The ip or the unix domain socket to which the listener should be bound
	// to. Port MUST be specified if bind is not empty. Format:
	// x.x.x.x or unix:///path/to/uds or unix://@foobar (Linux abstract
	// namespace). If omitted, Istio will autoconfigure the defaults based on
	// imported services and the workload to which this configuration is
	// applied to.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// When the bind address is an IP, the captureMode option dictates
	// how traffic to the listener is expected to be captured (or not).
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// One or more services/virtualServices exposed by the listener in
	// namespace/dnsName format.  Publicly scoped services and
	// VirtualServices from remote namespaces corresponding to the specified
	// hosts will be imported. The service in a namespace can be a service in
	// the service registry (e.g., a kubernetes or cloud foundry service) or
	// a service specified via ServiceEntry configuration. In addition, any
	// publicly scoped DestinationRule associated with the imported services
	// will also be imported.
	//
	// Set the namespace to * to import a particular service from any
	// available namespace (e.g., "*/foo.example.com"). Set the dnsName field
	// to * to import all services from the specified namespace (e.g.,
	// "prod/*"). The services should be specified using FQDN format.
	//
	// NOTE: Only exported services and configuration artifacts from a
	// namespace can be imported. Private services/configuration will not be
	// imported. Refer to the scope setting associated with VirtualService,
	// DestinationRule, ServiceEntry, etc. for details.
	Hosts                []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

IstioEgressListener specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload.

func (*IstioEgressListener) Descriptor

func (*IstioEgressListener) Descriptor() ([]byte, []int)

func (*IstioEgressListener) Equal

func (this *IstioEgressListener) Equal(that interface{}) bool

func (*IstioEgressListener) GetBind

func (m *IstioEgressListener) GetBind() string

func (*IstioEgressListener) GetCaptureMode

func (m *IstioEgressListener) GetCaptureMode() CaptureMode

func (*IstioEgressListener) GetHosts

func (m *IstioEgressListener) GetHosts() []string

func (*IstioEgressListener) GetPort

func (m *IstioEgressListener) GetPort() *Port

func (*IstioEgressListener) ProtoMessage

func (*IstioEgressListener) ProtoMessage()

func (*IstioEgressListener) Reset

func (m *IstioEgressListener) Reset()

func (*IstioEgressListener) String

func (m *IstioEgressListener) String() string

func (*IstioEgressListener) XXX_DiscardUnknown

func (m *IstioEgressListener) XXX_DiscardUnknown()

func (*IstioEgressListener) XXX_Marshal

func (m *IstioEgressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IstioEgressListener) XXX_Merge

func (m *IstioEgressListener) XXX_Merge(src proto.Message)

func (*IstioEgressListener) XXX_Size

func (m *IstioEgressListener) XXX_Size() int

func (*IstioEgressListener) XXX_Unmarshal

func (m *IstioEgressListener) XXX_Unmarshal(b []byte) error

type IstioIngressListener

type IstioIngressListener struct {
	// REQUIRED. The port associated with the listener. If using
	// unix domain socket, use 0 as the port number, with a valid
	// protocol.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The ip or the unix domain socket to which the listener should be bound
	// to. Format: x.x.x.x or unix:///path/to/uds or unix://@foobar (Linux
	// abstract namespace). If omitted, Istio will autoconfigure the defaults
	// based on imported services and the workload to which this
	// configuration is applied to.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// When the bind address is an IP, the captureMode option dictates
	// how traffic to the listener is expected to be captured (or not).
	CaptureMode CaptureMode `` /* 138-byte string literal not displayed */
	// The loopback IP endpoint or unix domain socket to which traffic should
	// be forwarded to by default. This configuration can be used to redirect
	// traffic arriving at the bind point on the sidecar to a port or unix
	// domain socket where the application workload is listening for
	// connections. Format should be 127.0.0.1:PORT or unix:///path/to/socket
	DefaultEndpoint      string   `protobuf:"bytes,4,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

$hide_from_docs IstioIngressListener specifies the properties of an inbound traffic listener on the sidecar proxy attached to a workload.

func (*IstioIngressListener) Descriptor

func (*IstioIngressListener) Descriptor() ([]byte, []int)

func (*IstioIngressListener) Equal

func (this *IstioIngressListener) Equal(that interface{}) bool

func (*IstioIngressListener) GetBind

func (m *IstioIngressListener) GetBind() string

func (*IstioIngressListener) GetCaptureMode

func (m *IstioIngressListener) GetCaptureMode() CaptureMode

func (*IstioIngressListener) GetDefaultEndpoint

func (m *IstioIngressListener) GetDefaultEndpoint() string

func (*IstioIngressListener) GetPort

func (m *IstioIngressListener) GetPort() *Port

func (*IstioIngressListener) ProtoMessage

func (*IstioIngressListener) ProtoMessage()

func (*IstioIngressListener) Reset

func (m *IstioIngressListener) Reset()

func (*IstioIngressListener) String

func (m *IstioIngressListener) String() string

func (*IstioIngressListener) XXX_DiscardUnknown

func (m *IstioIngressListener) XXX_DiscardUnknown()

func (*IstioIngressListener) XXX_Marshal

func (m *IstioIngressListener) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IstioIngressListener) XXX_Merge

func (m *IstioIngressListener) XXX_Merge(src proto.Message)

func (*IstioIngressListener) XXX_Size

func (m *IstioIngressListener) XXX_Size() int

func (*IstioIngressListener) XXX_Unmarshal

func (m *IstioIngressListener) XXX_Unmarshal(b []byte) error

type L4MatchAttributes

type L4MatchAttributes struct {
	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,1,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they support,
	// in these cases it is not required to explicitly select the port.
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx
	// form or just a.b.c.d
	// $hide_from_docs
	SourceSubnet string `protobuf:"bytes,3,opt,name=source_subnet,json=sourceSubnet,proto3" json:"source_subnet,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways             []string `protobuf:"bytes,5,rep,name=gateways,proto3" json:"gateways,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

L4 connection match attributes. Note that L4 connection matching support is incomplete.

func (*L4MatchAttributes) Descriptor

func (*L4MatchAttributes) Descriptor() ([]byte, []int)

func (*L4MatchAttributes) Equal

func (this *L4MatchAttributes) Equal(that interface{}) bool

func (*L4MatchAttributes) GetDestinationSubnets

func (m *L4MatchAttributes) GetDestinationSubnets() []string

func (*L4MatchAttributes) GetGateways

func (m *L4MatchAttributes) GetGateways() []string

func (*L4MatchAttributes) GetPort

func (m *L4MatchAttributes) GetPort() uint32

func (*L4MatchAttributes) GetSourceLabels

func (m *L4MatchAttributes) GetSourceLabels() map[string]string

func (*L4MatchAttributes) GetSourceSubnet

func (m *L4MatchAttributes) GetSourceSubnet() string

func (*L4MatchAttributes) ProtoMessage

func (*L4MatchAttributes) ProtoMessage()

func (*L4MatchAttributes) Reset

func (m *L4MatchAttributes) Reset()

func (*L4MatchAttributes) String

func (m *L4MatchAttributes) String() string

func (*L4MatchAttributes) XXX_DiscardUnknown

func (m *L4MatchAttributes) XXX_DiscardUnknown()

func (*L4MatchAttributes) XXX_Marshal

func (m *L4MatchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*L4MatchAttributes) XXX_Merge

func (m *L4MatchAttributes) XXX_Merge(src proto.Message)

func (*L4MatchAttributes) XXX_Size

func (m *L4MatchAttributes) XXX_Size() int

func (*L4MatchAttributes) XXX_Unmarshal

func (m *L4MatchAttributes) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings

type LoadBalancerSettings struct {
	// Upstream load balancing policy.
	//
	// Types that are valid to be assigned to LbPolicy:
	//	*LoadBalancerSettings_Simple
	//	*LoadBalancerSettings_ConsistentHash
	LbPolicy isLoadBalancerSettings_LbPolicy `protobuf_oneof:"lb_policy"`
	// Explicitly assign loadbalancing weight across different zones and geographical locations.
	// Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/load_balancing.html?highlight=load_balancing_weight#locality-weighted-load-balancing)
	// If empty, the locality weight is set according to the endpoints number within it.
	// If duplicated settings are present, then the first one will take effect.
	LocalityWeightSettings []*LoadBalancerSettings_LocalityWeightSetting `` /* 129-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}                                      `json:"-"`
	XXX_unrecognized       []byte                                        `json:"-"`
	XXX_sizecache          int32                                         `json:"-"`
}

Load balancing policies to apply for a specific destination. See Envoy's load balancing [documentation](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/load_balancing/load_balancing) for more details.

For example, the following rule uses a round robin load balancing policy for all traffic going to the ratings service.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: ROUND_ROBIN

```

The following example sets up sticky sessions for the ratings service hashing-based load balancer for the same ratings service using the the User cookie as the hash key.

```yaml

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: bookinfo-ratings
spec:
  host: ratings.prod.svc.cluster.local
  trafficPolicy:
    loadBalancer:
      consistentHash:
        httpCookie:
          name: user
          ttl: 0s

```

The following example sets up locality weight for the ratings service Assume ratings 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 ratings service, 80% of the traffic is shipped to "region1/zone1/*" ratings service endpoints, and the rest 20% to "region1/zone2/*".

```yaml

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: bookinfo-ratings
spec:
  host: ratings.prod.svc.cluster.local
  trafficPolicy:
    loadBalancer:
      localityWeightSettings:
        - from: region1/zone1/*
          to:
            "region1/zone1/*": 80
            "region1/zone2/*": 20
        - from: region1/zone2/*
          to:
            "region1/zone1/*": 20
            "region1/zone2/*": 80

```

func (*LoadBalancerSettings) Descriptor

func (*LoadBalancerSettings) Descriptor() ([]byte, []int)

func (*LoadBalancerSettings) Equal

func (this *LoadBalancerSettings) Equal(that interface{}) bool

func (*LoadBalancerSettings) GetConsistentHash

func (*LoadBalancerSettings) GetLbPolicy

func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy

func (*LoadBalancerSettings) GetLocalityWeightSettings

func (m *LoadBalancerSettings) GetLocalityWeightSettings() []*LoadBalancerSettings_LocalityWeightSetting

func (*LoadBalancerSettings) GetSimple

func (*LoadBalancerSettings) ProtoMessage

func (*LoadBalancerSettings) ProtoMessage()

func (*LoadBalancerSettings) Reset

func (m *LoadBalancerSettings) Reset()

func (*LoadBalancerSettings) String

func (m *LoadBalancerSettings) String() string

func (*LoadBalancerSettings) XXX_DiscardUnknown

func (m *LoadBalancerSettings) XXX_DiscardUnknown()

func (*LoadBalancerSettings) XXX_Marshal

func (m *LoadBalancerSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings) XXX_Merge

func (m *LoadBalancerSettings) XXX_Merge(src proto.Message)

func (*LoadBalancerSettings) XXX_OneofFuncs

func (*LoadBalancerSettings) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*LoadBalancerSettings) XXX_Size

func (m *LoadBalancerSettings) XXX_Size() int

func (*LoadBalancerSettings) XXX_Unmarshal

func (m *LoadBalancerSettings) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings_ConsistentHash

type LoadBalancerSettings_ConsistentHash struct {
	ConsistentHash *LoadBalancerSettings_ConsistentHashLB `protobuf:"bytes,2,opt,name=consistent_hash,json=consistentHash,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHash) Equal

func (this *LoadBalancerSettings_ConsistentHash) Equal(that interface{}) bool

type LoadBalancerSettings_ConsistentHashLB

type LoadBalancerSettings_ConsistentHashLB struct {
	// REQUIRED: The hash key to use.
	//
	// Types that are valid to be assigned to HashKey:
	//	*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName
	//	*LoadBalancerSettings_ConsistentHashLB_HttpCookie
	//	*LoadBalancerSettings_ConsistentHashLB_UseSourceIp
	HashKey isLoadBalancerSettings_ConsistentHashLB_HashKey `protobuf_oneof:"hash_key"`
	// The minimum number of virtual nodes to use for the hash
	// ring. Defaults to 1024. Larger ring sizes result in more granular
	// load distributions. If the number of hosts in the load balancing
	// pool is larger than the ring size, each host will be assigned a
	// single virtual node.
	MinimumRingSize      uint64   `protobuf:"varint,4,opt,name=minimum_ring_size,json=minimumRingSize,proto3" json:"minimum_ring_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. This load balancing policy is applicable only for HTTP connections. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor() ([]byte, []int)

func (*LoadBalancerSettings_ConsistentHashLB) Equal

func (this *LoadBalancerSettings_ConsistentHashLB) Equal(that interface{}) bool

func (*LoadBalancerSettings_ConsistentHashLB) GetHashKey

func (m *LoadBalancerSettings_ConsistentHashLB) GetHashKey() isLoadBalancerSettings_ConsistentHashLB_HashKey

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpCookie

func (*LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName

func (m *LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName() string

func (*LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize

func (m *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64

func (*LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp

func (m *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()

func (*LoadBalancerSettings_ConsistentHashLB) Reset

func (*LoadBalancerSettings_ConsistentHashLB) String

func (*LoadBalancerSettings_ConsistentHashLB) XXX_DiscardUnknown

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_DiscardUnknown()

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Marshal

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Merge

func (*LoadBalancerSettings_ConsistentHashLB) XXX_OneofFuncs

func (*LoadBalancerSettings_ConsistentHashLB) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Size

func (*LoadBalancerSettings_ConsistentHashLB) XXX_Unmarshal

func (m *LoadBalancerSettings_ConsistentHashLB) XXX_Unmarshal(b []byte) error

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie

type LoadBalancerSettings_ConsistentHashLB_HTTPCookie struct {
	// REQUIRED. Name of the cookie.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Path to set for the cookie.
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// REQUIRED. Lifetime of the cookie.
	Ttl                  *time.Duration `protobuf:"bytes,3,opt,name=ttl,proto3,stdduration" json:"ttl,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Describes a HTTP cookie that will be used as the hash key for the Consistent Hash load balancer. If the cookie is not present, it will be generated.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Equal

func (this *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Equal(that interface{}) bool

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_DiscardUnknown

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_DiscardUnknown()

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Marshal

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Merge

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Size

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) XXX_Unmarshal

type LoadBalancerSettings_ConsistentHashLB_HttpCookie

type LoadBalancerSettings_ConsistentHashLB_HttpCookie struct {
	HttpCookie *LoadBalancerSettings_ConsistentHashLB_HTTPCookie `protobuf:"bytes,2,opt,name=http_cookie,json=httpCookie,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_HttpCookie) Equal

func (this *LoadBalancerSettings_ConsistentHashLB_HttpCookie) Equal(that interface{}) bool

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName

type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName struct {
	HttpHeaderName string `protobuf:"bytes,1,opt,name=http_header_name,json=httpHeaderName,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Equal

func (this *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Equal(that interface{}) bool

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp

type LoadBalancerSettings_ConsistentHashLB_UseSourceIp struct {
	UseSourceIp bool `protobuf:"varint,3,opt,name=use_source_ip,json=useSourceIp,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Equal

func (this *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Equal(that interface{}) bool

type LoadBalancerSettings_LocalityWeightSetting

type LoadBalancerSettings_LocalityWeightSetting struct {
	// Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Upstream locality to loadbalancing weight map. The sum of all weights should be == 100.
	// Should assign loadbalancing weight for all localities, otherwise the traffic are not routed
	// following the percentage of weight.
	To                   map[string]uint32 `` /* 146-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Originating -> upstream cluster locality weight set, support wildcard matching '*' '*' matches all localities 'region1/*' matches all zones in region1

func (*LoadBalancerSettings_LocalityWeightSetting) Descriptor

func (*LoadBalancerSettings_LocalityWeightSetting) Equal

func (this *LoadBalancerSettings_LocalityWeightSetting) Equal(that interface{}) bool

func (*LoadBalancerSettings_LocalityWeightSetting) GetFrom

func (*LoadBalancerSettings_LocalityWeightSetting) GetTo

func (*LoadBalancerSettings_LocalityWeightSetting) ProtoMessage

func (*LoadBalancerSettings_LocalityWeightSetting) Reset

func (*LoadBalancerSettings_LocalityWeightSetting) String

func (*LoadBalancerSettings_LocalityWeightSetting) XXX_DiscardUnknown

func (m *LoadBalancerSettings_LocalityWeightSetting) XXX_DiscardUnknown()

func (*LoadBalancerSettings_LocalityWeightSetting) XXX_Marshal

func (m *LoadBalancerSettings_LocalityWeightSetting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoadBalancerSettings_LocalityWeightSetting) XXX_Merge

func (*LoadBalancerSettings_LocalityWeightSetting) XXX_Size

func (*LoadBalancerSettings_LocalityWeightSetting) XXX_Unmarshal

type LoadBalancerSettings_Simple

type LoadBalancerSettings_Simple struct {
	Simple LoadBalancerSettings_SimpleLB `protobuf:"varint,1,opt,name=simple,proto3,enum=istio.networking.v1alpha3.LoadBalancerSettings_SimpleLB,oneof"`
}

func (*LoadBalancerSettings_Simple) Equal

func (this *LoadBalancerSettings_Simple) Equal(that interface{}) bool

type LoadBalancerSettings_SimpleLB

type LoadBalancerSettings_SimpleLB int32

Standard load balancing algorithms that require no tuning.

const (
	// Round Robin policy. Default
	LoadBalancerSettings_ROUND_ROBIN LoadBalancerSettings_SimpleLB = 0
	// The least request load balancer uses an O(1) algorithm which selects
	// two random healthy hosts and picks the host which has fewer active
	// requests.
	LoadBalancerSettings_LEAST_CONN LoadBalancerSettings_SimpleLB = 1
	// The random load balancer selects a random healthy host. The random
	// load balancer generally performs better than round robin if no health
	// checking policy is configured.
	LoadBalancerSettings_RANDOM LoadBalancerSettings_SimpleLB = 2
	// This option will forward the connection to the original IP address
	// requested by the caller without doing any form of load
	// balancing. This option must be used with care. It is meant for
	// advanced use cases. Refer to Original Destination load balancer in
	// Envoy for further details.
	LoadBalancerSettings_PASSTHROUGH LoadBalancerSettings_SimpleLB = 3
)

func (LoadBalancerSettings_SimpleLB) EnumDescriptor

func (LoadBalancerSettings_SimpleLB) EnumDescriptor() ([]byte, []int)

func (LoadBalancerSettings_SimpleLB) String

type OutlierDetection

type OutlierDetection struct {
	// Number of errors before a host is ejected from the connection
	// pool. Defaults to 5. When the upstream host is accessed over HTTP, a
	// 502, 503 or 504 return code qualifies as an error. When the upstream host
	// is accessed over an opaque TCP connection, connect timeouts and
	// connection error/failure events qualify as an error.
	ConsecutiveErrors int32 `protobuf:"varint,1,opt,name=consecutive_errors,json=consecutiveErrors,proto3" json:"consecutive_errors,omitempty"`
	// Time interval between ejection sweep analysis. format:
	// 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s.
	Interval *types.Duration `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"`
	// Minimum ejection duration. A host will remain ejected for a period
	// equal to the product of minimum ejection duration and the number of
	// times the host has been ejected. This technique allows the system to
	// automatically increase the ejection period for unhealthy upstream
	// servers. format: 1h/1m/1s/1ms. MUST BE >=1ms. Default is 30s.
	BaseEjectionTime *types.Duration `protobuf:"bytes,3,opt,name=base_ejection_time,json=baseEjectionTime,proto3" json:"base_ejection_time,omitempty"`
	// Maximum % of hosts in the load balancing pool for the upstream
	// service that can be ejected. Defaults to 10%.
	MaxEjectionPercent int32 `protobuf:"varint,4,opt,name=max_ejection_percent,json=maxEjectionPercent,proto3" json:"max_ejection_percent,omitempty"`
	// Outlier detection will be enabled as long as the associated load balancing
	// pool has at least min_health_percent hosts in healthy mode. When the
	// percentage of healthy hosts in the load balancing pool drops below this
	// threshold, outlier detection will be disabled and the proxy will load balance
	// across all hosts in the pool (healthy and unhealthy).  The default is 50%.
	MinHealthPercent     int32    `protobuf:"varint,5,opt,name=min_health_percent,json=minHealthPercent,proto3" json:"min_health_percent,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A Circuit breaker implementation that tracks the status of each individual host in the upstream service. Applicable to both HTTP and TCP services. For HTTP services, hosts that continually return 5xx errors for API calls are ejected from the pool for a pre-defined period of time. For TCP services, connection timeouts or connection failures to a given host counts as an error when measuring the consecutive errors metric. See Envoy's [outlier detection](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/outlier) for more details.

The following rule sets a connection pool size of 100 connections and 1000 concurrent HTTP2 requests, with no more than 10 req/connection to "reviews" service. In addition, it configures upstream hosts to be scanned every 5 mins, such that any host that fails 7 consecutive times with 5XX error code will be ejected for 15 minutes.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-cb-policy

spec:

host: reviews.prod.svc.cluster.local
trafficPolicy:
  connectionPool:
    tcp:
      maxConnections: 100
    http:
      http2MaxRequests: 1000
      maxRequestsPerConnection: 10
  outlierDetection:
    consecutiveErrors: 7
    interval: 5m
    baseEjectionTime: 15m

```

func (*OutlierDetection) Descriptor

func (*OutlierDetection) Descriptor() ([]byte, []int)

func (*OutlierDetection) Equal

func (this *OutlierDetection) Equal(that interface{}) bool

func (*OutlierDetection) GetBaseEjectionTime

func (m *OutlierDetection) GetBaseEjectionTime() *types.Duration

func (*OutlierDetection) GetConsecutiveErrors

func (m *OutlierDetection) GetConsecutiveErrors() int32

func (*OutlierDetection) GetInterval

func (m *OutlierDetection) GetInterval() *types.Duration

func (*OutlierDetection) GetMaxEjectionPercent

func (m *OutlierDetection) GetMaxEjectionPercent() int32

func (*OutlierDetection) GetMinHealthPercent

func (m *OutlierDetection) GetMinHealthPercent() int32

func (*OutlierDetection) ProtoMessage

func (*OutlierDetection) ProtoMessage()

func (*OutlierDetection) Reset

func (m *OutlierDetection) Reset()

func (*OutlierDetection) String

func (m *OutlierDetection) String() string

func (*OutlierDetection) XXX_DiscardUnknown

func (m *OutlierDetection) XXX_DiscardUnknown()

func (*OutlierDetection) XXX_Marshal

func (m *OutlierDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutlierDetection) XXX_Merge

func (m *OutlierDetection) XXX_Merge(src proto.Message)

func (*OutlierDetection) XXX_Size

func (m *OutlierDetection) XXX_Size() int

func (*OutlierDetection) XXX_Unmarshal

func (m *OutlierDetection) XXX_Unmarshal(b []byte) error

type Percent

type Percent struct {
	Value                float64  `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Percent specifies a percentage in the range of [0.0, 100.0].

func (*Percent) Descriptor

func (*Percent) Descriptor() ([]byte, []int)

func (*Percent) Equal

func (this *Percent) Equal(that interface{}) bool

func (*Percent) GetValue

func (m *Percent) GetValue() float64

func (*Percent) ProtoMessage

func (*Percent) ProtoMessage()

func (*Percent) Reset

func (m *Percent) Reset()

func (*Percent) String

func (m *Percent) String() string

func (*Percent) XXX_DiscardUnknown

func (m *Percent) XXX_DiscardUnknown()

func (*Percent) XXX_Marshal

func (m *Percent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Percent) XXX_Merge

func (m *Percent) XXX_Merge(src proto.Message)

func (*Percent) XXX_Size

func (m *Percent) XXX_Size() int

func (*Percent) XXX_Unmarshal

func (m *Percent) XXX_Unmarshal(b []byte) error

type Port

type Port struct {
	// REQUIRED: A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// REQUIRED: The protocol exposed on the port.
	// MUST BE one of HTTP|HTTPS|GRPC|HTTP2|MONGO|TCP|TLS.
	// TLS implies the connection will be routed based on the SNI header to
	// the destination without terminating the TLS connection.
	Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"`
	// Label assigned to the port.
	Name                 string   `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Port describes the properties of a specific port of a service.

func (*Port) Descriptor

func (*Port) Descriptor() ([]byte, []int)

func (*Port) Equal

func (this *Port) Equal(that interface{}) bool

func (*Port) GetName

func (m *Port) GetName() string

func (*Port) GetNumber

func (m *Port) GetNumber() uint32

func (*Port) GetProtocol

func (m *Port) GetProtocol() string

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) Reset

func (m *Port) Reset()

func (*Port) String

func (m *Port) String() string

func (*Port) XXX_DiscardUnknown

func (m *Port) XXX_DiscardUnknown()

func (*Port) XXX_Marshal

func (m *Port) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Port) XXX_Merge

func (m *Port) XXX_Merge(src proto.Message)

func (*Port) XXX_Size

func (m *Port) XXX_Size() int

func (*Port) XXX_Unmarshal

func (m *Port) XXX_Unmarshal(b []byte) error

type PortSelector

type PortSelector struct {
	// Types that are valid to be assigned to Port:
	//	*PortSelector_Number
	//	*PortSelector_Name
	Port                 isPortSelector_Port `protobuf_oneof:"port"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

PortSelector specifies the number of a port to be used for matching or selection for final routing.

func (*PortSelector) Descriptor

func (*PortSelector) Descriptor() ([]byte, []int)

func (*PortSelector) Equal

func (this *PortSelector) Equal(that interface{}) bool

func (*PortSelector) GetName

func (m *PortSelector) GetName() string

func (*PortSelector) GetNumber

func (m *PortSelector) GetNumber() uint32

func (*PortSelector) GetPort

func (m *PortSelector) GetPort() isPortSelector_Port

func (*PortSelector) ProtoMessage

func (*PortSelector) ProtoMessage()

func (*PortSelector) Reset

func (m *PortSelector) Reset()

func (*PortSelector) String

func (m *PortSelector) String() string

func (*PortSelector) XXX_DiscardUnknown

func (m *PortSelector) XXX_DiscardUnknown()

func (*PortSelector) XXX_Marshal

func (m *PortSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PortSelector) XXX_Merge

func (m *PortSelector) XXX_Merge(src proto.Message)

func (*PortSelector) XXX_OneofFuncs

func (*PortSelector) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*PortSelector) XXX_Size

func (m *PortSelector) XXX_Size() int

func (*PortSelector) XXX_Unmarshal

func (m *PortSelector) XXX_Unmarshal(b []byte) error

type PortSelector_Name

type PortSelector_Name struct {
	Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"`
}

func (*PortSelector_Name) Equal

func (this *PortSelector_Name) Equal(that interface{}) bool

type PortSelector_Number

type PortSelector_Number struct {
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3,oneof"`
}

func (*PortSelector_Number) Equal

func (this *PortSelector_Number) Equal(that interface{}) bool

type RouteDestination

type RouteDestination struct {
	// REQUIRED. Destination uniquely identifies the instances of a service
	// to which the request/connection should be forwarded to.
	Destination *Destination `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"`
	// REQUIRED. The proportion of traffic to be forwarded to the service
	// version. If there is only one destination in a rule, all traffic will be
	// routed to it irrespective of the weight.
	Weight               int32    `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

L4 routing rule weighted destination.

func (*RouteDestination) Descriptor

func (*RouteDestination) Descriptor() ([]byte, []int)

func (*RouteDestination) Equal

func (this *RouteDestination) Equal(that interface{}) bool

func (*RouteDestination) GetDestination

func (m *RouteDestination) GetDestination() *Destination

func (*RouteDestination) GetWeight

func (m *RouteDestination) GetWeight() int32

func (*RouteDestination) ProtoMessage

func (*RouteDestination) ProtoMessage()

func (*RouteDestination) Reset

func (m *RouteDestination) Reset()

func (*RouteDestination) String

func (m *RouteDestination) String() string

func (*RouteDestination) XXX_DiscardUnknown

func (m *RouteDestination) XXX_DiscardUnknown()

func (*RouteDestination) XXX_Marshal

func (m *RouteDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RouteDestination) XXX_Merge

func (m *RouteDestination) XXX_Merge(src proto.Message)

func (*RouteDestination) XXX_Size

func (m *RouteDestination) XXX_Size() int

func (*RouteDestination) XXX_Unmarshal

func (m *RouteDestination) XXX_Unmarshal(b []byte) error

type Server

type Server struct {
	// REQUIRED: The Port on which the proxy should listen for incoming
	// connections. If using unix domain socket, use 0 as the port number,
	// with a valid protocol and port name, along with the bind parameter.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// $hide_from_docs
	// The ip or the unix domain socket to which the listener should be bound
	// to. Format: x.x.x.x or unix:///path/to/uds or unix://@foobar (Linux
	// abstract namespace).
	Bind string `protobuf:"bytes,4,opt,name=bind,proto3" json:"bind,omitempty"`
	// REQUIRED. A list of hosts exposed by this gateway. At least one
	// host is required. While typically applicable to
	// HTTP services, it can also be used for TCP services using TLS with
	// SNI. May contain a wildcard prefix for the bottom-level component of
	// a domain name. For example `*.foo.com` matches `bar.foo.com`
	// and `*.com` matches `bar.foo.com`, `example.com`, and so on.
	//
	// **Note**: A `VirtualService` that is bound to a gateway must have one
	// or more hosts that match the hosts specified in a server. The match
	// could be an exact match or a suffix match with the server's hosts. For
	// example, if the server's hosts specifies "*.example.com",
	// VirtualServices with hosts dev.example.com, prod.example.com will
	// match. However, VirtualServices with hosts example.com or
	// newexample.com will not match.
	Hosts []string `protobuf:"bytes,2,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// Set of TLS related options that govern the server's behavior. Use
	// these options to control if all http requests should be redirected to
	// https, and the TLS modes to use.
	Tls *Server_TLSOptions `protobuf:"bytes,3,opt,name=tls,proto3" json:"tls,omitempty"`
	// The loopback IP endpoint or unix domain socket to which traffic should
	// be forwarded to by default. Format should be 127.0.0.1:PORT or
	// unix:///path/to/socket or unix://@foobar (Linux abstract namespace).
	DefaultEndpoint      string   `protobuf:"bytes,5,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

`Server` describes the properties of the proxy on a given load balancer port. For example,

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-ingress

spec:

selector:
  app: my-ingress-gateway
servers:
- port:
    number: 80
    name: http2
    protocol: HTTP2
  hosts:
  - "*"

```

Another example

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tcp-ingress

spec:

selector:
  app: my-tcp-ingress-gateway
servers:
- port:
    number: 27018
    name: mongo
    protocol: MONGO
  hosts:
  - "*"

```

The following is an example of TLS configuration for port 443

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata:

name: my-tls-ingress

spec:

selector:
  app: my-tls-ingress-gateway
servers:
- port:
    number: 443
    name: https
    protocol: HTTPS
  hosts:
  - "*"
  tls:
    mode: SIMPLE
    serverCertificate: /etc/certs/server.pem
    privateKey: /etc/certs/privatekey.pem

```

func (*Server) Descriptor

func (*Server) Descriptor() ([]byte, []int)

func (*Server) Equal

func (this *Server) Equal(that interface{}) bool

func (*Server) GetBind

func (m *Server) GetBind() string

func (*Server) GetDefaultEndpoint

func (m *Server) GetDefaultEndpoint() string

func (*Server) GetHosts

func (m *Server) GetHosts() []string

func (*Server) GetPort

func (m *Server) GetPort() *Port

func (*Server) GetTls

func (m *Server) GetTls() *Server_TLSOptions

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) String

func (m *Server) String() string

func (*Server) XXX_DiscardUnknown

func (m *Server) XXX_DiscardUnknown()

func (*Server) XXX_Marshal

func (m *Server) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server) XXX_Merge

func (m *Server) XXX_Merge(src proto.Message)

func (*Server) XXX_Size

func (m *Server) XXX_Size() int

func (*Server) XXX_Unmarshal

func (m *Server) XXX_Unmarshal(b []byte) error

type Server_TLSOptions

type Server_TLSOptions struct {
	// If set to true, the load balancer will send a 301 redirect for all
	// http connections, asking the clients to use HTTPS.
	HttpsRedirect bool `protobuf:"varint,1,opt,name=https_redirect,json=httpsRedirect,proto3" json:"https_redirect,omitempty"`
	// Optional: Indicates whether connections to this port should be
	// secured using TLS. The value of this field determines how TLS is
	// enforced.
	Mode Server_TLSOptions_TLSmode `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1alpha3.Server_TLSOptions_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server-side TLS certificate to use.
	ServerCertificate string `protobuf:"bytes,3,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"`
	// REQUIRED if mode is `SIMPLE` or `MUTUAL`. The path to the file
	// holding the server's private key.
	PrivateKey string `protobuf:"bytes,4,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to a file containing
	// certificate authority certificates to use in verifying a presented
	// client side certificate.
	CaCertificates string `protobuf:"bytes,5,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate presented by the client.
	SubjectAltNames []string `protobuf:"bytes,6,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// Optional: Minimum TLS protocol version.
	MinProtocolVersion Server_TLSOptions_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: Maximum TLS protocol version.
	MaxProtocolVersion Server_TLSOptions_TLSProtocol `` /* 179-byte string literal not displayed */
	// Optional: If specified, only support the specified cipher list.
	// Otherwise default to the default cipher list supported by Envoy.
	CipherSuites         []string `protobuf:"bytes,9,rep,name=cipher_suites,json=cipherSuites,proto3" json:"cipher_suites,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Server_TLSOptions) Descriptor

func (*Server_TLSOptions) Descriptor() ([]byte, []int)

func (*Server_TLSOptions) Equal

func (this *Server_TLSOptions) Equal(that interface{}) bool

func (*Server_TLSOptions) GetCaCertificates

func (m *Server_TLSOptions) GetCaCertificates() string

func (*Server_TLSOptions) GetCipherSuites

func (m *Server_TLSOptions) GetCipherSuites() []string

func (*Server_TLSOptions) GetHttpsRedirect

func (m *Server_TLSOptions) GetHttpsRedirect() bool

func (*Server_TLSOptions) GetMaxProtocolVersion

func (m *Server_TLSOptions) GetMaxProtocolVersion() Server_TLSOptions_TLSProtocol

func (*Server_TLSOptions) GetMinProtocolVersion

func (m *Server_TLSOptions) GetMinProtocolVersion() Server_TLSOptions_TLSProtocol

func (*Server_TLSOptions) GetMode

func (*Server_TLSOptions) GetPrivateKey

func (m *Server_TLSOptions) GetPrivateKey() string

func (*Server_TLSOptions) GetServerCertificate

func (m *Server_TLSOptions) GetServerCertificate() string

func (*Server_TLSOptions) GetSubjectAltNames

func (m *Server_TLSOptions) GetSubjectAltNames() []string

func (*Server_TLSOptions) ProtoMessage

func (*Server_TLSOptions) ProtoMessage()

func (*Server_TLSOptions) Reset

func (m *Server_TLSOptions) Reset()

func (*Server_TLSOptions) String

func (m *Server_TLSOptions) String() string

func (*Server_TLSOptions) XXX_DiscardUnknown

func (m *Server_TLSOptions) XXX_DiscardUnknown()

func (*Server_TLSOptions) XXX_Marshal

func (m *Server_TLSOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Server_TLSOptions) XXX_Merge

func (m *Server_TLSOptions) XXX_Merge(src proto.Message)

func (*Server_TLSOptions) XXX_Size

func (m *Server_TLSOptions) XXX_Size() int

func (*Server_TLSOptions) XXX_Unmarshal

func (m *Server_TLSOptions) XXX_Unmarshal(b []byte) error

type Server_TLSOptions_TLSProtocol

type Server_TLSOptions_TLSProtocol int32

TLS protocol versions.

const (
	// Automatically choose the optimal TLS version.
	Server_TLSOptions_TLS_AUTO Server_TLSOptions_TLSProtocol = 0
	// TLS version 1.0
	Server_TLSOptions_TLSV1_0 Server_TLSOptions_TLSProtocol = 1
	// TLS version 1.1
	Server_TLSOptions_TLSV1_1 Server_TLSOptions_TLSProtocol = 2
	// TLS version 1.2
	Server_TLSOptions_TLSV1_2 Server_TLSOptions_TLSProtocol = 3
	// TLS version 1.3
	Server_TLSOptions_TLSV1_3 Server_TLSOptions_TLSProtocol = 4
)

func (Server_TLSOptions_TLSProtocol) EnumDescriptor

func (Server_TLSOptions_TLSProtocol) EnumDescriptor() ([]byte, []int)

func (Server_TLSOptions_TLSProtocol) String

type Server_TLSOptions_TLSmode

type Server_TLSOptions_TLSmode int32

TLS modes enforced by the proxy

const (
	// The SNI string presented by the client will be used as the match
	// criterion in a VirtualService TLS route to determine the
	// destination service from the service registry.
	Server_TLSOptions_PASSTHROUGH Server_TLSOptions_TLSmode = 0
	// Secure connections with standard TLS semantics.
	Server_TLSOptions_SIMPLE Server_TLSOptions_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	Server_TLSOptions_MUTUAL Server_TLSOptions_TLSmode = 2
	// Similar to the passthrough mode, except servers with this TLS mode
	// do not require an associated VirtualService to map from the SNI
	// value to service in the registry. The destination details such as
	// the service/subset/port are encoded in the SNI value. The proxy
	// will forward to the upstream (Envoy) cluster (a group of
	// endpoints) specified by the SNI value. This server is typically
	// used to provide connectivity between services in disparate L3
	// networks that otherwise do not have direct connectivity between
	// their respective endpoints. Use of this mode assumes that both the
	// source and the destination are using Istio mTLS to secure traffic.
	Server_TLSOptions_AUTO_PASSTHROUGH Server_TLSOptions_TLSmode = 3
)

func (Server_TLSOptions_TLSmode) EnumDescriptor

func (Server_TLSOptions_TLSmode) EnumDescriptor() ([]byte, []int)

func (Server_TLSOptions_TLSmode) String

func (x Server_TLSOptions_TLSmode) String() string

type Sidecar

type Sidecar struct {
	// $hide_from_docs
	// Criteria used to select the specific set of pods/VMs on which this
	// sidecar configuration should be applied. If omitted, the sidecar
	// configuration will be applied to all workloads in the current config
	// namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,1,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// $hide_from_docs
	// Ingress specifies the configuration of the sidecar for processing
	// inbound traffic to the attached workload. If omitted, Istio will
	// autoconfigure the sidecar based on the information about the workload
	// obtained from the orchestration platform (e.g., exposed ports, services,
	// etc.).
	Ingress []*IstioIngressListener `protobuf:"bytes,2,rep,name=ingress,proto3" json:"ingress,omitempty"`
	// Egress specifies the configuration of the sidecar for processing
	// outbound traffic from the attached workload to other services in the
	// mesh. If omitted, Istio will autoconfigure the sidecar to be able to
	// reach every service in the mesh that is visible to this namespace.
	Egress               []*IstioEgressListener `protobuf:"bytes,3,rep,name=egress,proto3" json:"egress,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

`Sidecar` describes the configuration of the sidecar proxy that mediates inbound and outbound communication to the workload it is attached to. By default, Istio will program all sidecar proxies in the mesh with the necessary configuration required to reach every workload in the mesh, as well as accept traffic on all the ports associated with the workload. The Sidecar resource provides a way to fine tune the set of ports, protocols that the proxy will accept when forwarding traffic to and from the workload. In addition, it is possible to restrict the set of services that the proxy can reach when forwarding outbound traffic from the workload.

Services and configuration in a mesh are organized into one or more namespaces (e.g., a Kubernetes namespace or a CF org/space). A Sidecar resource in a namespace will apply to one or more workloads in the same namespace, selected using the workloadSelector. In the absence of a workloadSelector, it will apply to all workloads in the same namespace. When determining the Sidecar resource to be applied to a workload, preference will be given to the resource with a workloadSelector that selects this workload, over a Sidecar resource without any workloadSelector.

NOTE: *_Each namespace can have only one Sidecar resource without any workload selector_*. The behavior of the system is undefined if more than one selector-less Sidecar resources exist in a given namespace. The behavior of the system is undefined if two or more Sidecar resources with a workload selector select the same workload.

The example below delcares a Sidecar resource in the prod-us1 namespace that configures the sidecar to allow egress traffic to public services in the prod-us1, prod-apis, and the istio-system namespaces.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: Sidecar metadata:

name: default
namespace: prod-us1

spec:

egress:
- hosts:
  - "prod-us1/*"
  - "prod-apis/*"
  - "istio-system/*"

```

func (*Sidecar) Descriptor

func (*Sidecar) Descriptor() ([]byte, []int)

func (*Sidecar) Equal

func (this *Sidecar) Equal(that interface{}) bool

func (*Sidecar) GetEgress

func (m *Sidecar) GetEgress() []*IstioEgressListener

func (*Sidecar) GetIngress

func (m *Sidecar) GetIngress() []*IstioIngressListener

func (*Sidecar) GetWorkloadSelector

func (m *Sidecar) GetWorkloadSelector() *WorkloadSelector

func (*Sidecar) ProtoMessage

func (*Sidecar) ProtoMessage()

func (*Sidecar) Reset

func (m *Sidecar) Reset()

func (*Sidecar) String

func (m *Sidecar) String() string

func (*Sidecar) XXX_DiscardUnknown

func (m *Sidecar) XXX_DiscardUnknown()

func (*Sidecar) XXX_Marshal

func (m *Sidecar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sidecar) XXX_Merge

func (m *Sidecar) XXX_Merge(src proto.Message)

func (*Sidecar) XXX_Size

func (m *Sidecar) XXX_Size() int

func (*Sidecar) XXX_Unmarshal

func (m *Sidecar) XXX_Unmarshal(b []byte) error

type StringMatch

type StringMatch struct {
	// Types that are valid to be assigned to MatchType:
	//	*StringMatch_Exact
	//	*StringMatch_Prefix
	//	*StringMatch_Regex
	MatchType            isStringMatch_MatchType `protobuf_oneof:"match_type"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Describes how to match a given string in HTTP headers. Match is case-sensitive.

func (*StringMatch) Descriptor

func (*StringMatch) Descriptor() ([]byte, []int)

func (*StringMatch) Equal

func (this *StringMatch) Equal(that interface{}) bool

func (*StringMatch) GetExact

func (m *StringMatch) GetExact() string

func (*StringMatch) GetMatchType

func (m *StringMatch) GetMatchType() isStringMatch_MatchType

func (*StringMatch) GetPrefix

func (m *StringMatch) GetPrefix() string

func (*StringMatch) GetRegex

func (m *StringMatch) GetRegex() string

func (*StringMatch) ProtoMessage

func (*StringMatch) ProtoMessage()

func (*StringMatch) Reset

func (m *StringMatch) Reset()

func (*StringMatch) String

func (m *StringMatch) String() string

func (*StringMatch) XXX_DiscardUnknown

func (m *StringMatch) XXX_DiscardUnknown()

func (*StringMatch) XXX_Marshal

func (m *StringMatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StringMatch) XXX_Merge

func (m *StringMatch) XXX_Merge(src proto.Message)

func (*StringMatch) XXX_OneofFuncs

func (*StringMatch) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*StringMatch) XXX_Size

func (m *StringMatch) XXX_Size() int

func (*StringMatch) XXX_Unmarshal

func (m *StringMatch) XXX_Unmarshal(b []byte) error

type StringMatch_Exact

type StringMatch_Exact struct {
	Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}

func (*StringMatch_Exact) Equal

func (this *StringMatch_Exact) Equal(that interface{}) bool

type StringMatch_Prefix

type StringMatch_Prefix struct {
	Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}

func (*StringMatch_Prefix) Equal

func (this *StringMatch_Prefix) Equal(that interface{}) bool

type StringMatch_Regex

type StringMatch_Regex struct {
	Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"`
}

func (*StringMatch_Regex) Equal

func (this *StringMatch_Regex) Equal(that interface{}) bool

type Subset

type Subset struct {
	// REQUIRED. Name of the subset. The service name and the subset name can
	// be used for traffic splitting in a route rule.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Labels apply a filter over the endpoints of a service in the
	// service registry. See route rules for examples of usage.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Traffic policies that apply to this subset. Subsets inherit the
	// traffic policies specified at the DestinationRule level. Settings
	// specified at the subset level will override the corresponding settings
	// specified at the DestinationRule level.
	TrafficPolicy        *TrafficPolicy `protobuf:"bytes,3,opt,name=traffic_policy,json=trafficPolicy,proto3" json:"traffic_policy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

A subset of endpoints of a service. Subsets can be used for scenarios like A/B testing, or routing to a specific version of a service. Refer to VirtualService(#VirtualService) documentation for examples of using subsets in these scenarios. In addition, traffic policies defined at the service-level can be overridden at a subset-level. The following rule uses a round robin load balancing policy for all traffic going to a subset named testversion that is composed of endpoints (e.g., pods) with labels (version:v3).

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  loadBalancer:
    simple: LEAST_CONN
subsets:
- name: testversion
  labels:
    version: v3
  trafficPolicy:
    loadBalancer:
      simple: ROUND_ROBIN

```

**Note:** Policies specified for subsets will not take effect until a route rule explicitly sends traffic to this subset.

One or more labels are typically required to identify the subset destination, however, when the corresponding DestinationRule represents a host that supports multiple SNI hosts (e.g., an egress gateway), a subset without labels may be meaningful. In this case a traffic policy with TLSSettings(#TLSSettings) can be used to identify a specific SNI host corresponding to the named subset.

func (*Subset) Descriptor

func (*Subset) Descriptor() ([]byte, []int)

func (*Subset) Equal

func (this *Subset) Equal(that interface{}) bool

func (*Subset) GetLabels

func (m *Subset) GetLabels() map[string]string

func (*Subset) GetName

func (m *Subset) GetName() string

func (*Subset) GetTrafficPolicy

func (m *Subset) GetTrafficPolicy() *TrafficPolicy

func (*Subset) ProtoMessage

func (*Subset) ProtoMessage()

func (*Subset) Reset

func (m *Subset) Reset()

func (*Subset) String

func (m *Subset) String() string

func (*Subset) XXX_DiscardUnknown

func (m *Subset) XXX_DiscardUnknown()

func (*Subset) XXX_Marshal

func (m *Subset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Subset) XXX_Merge

func (m *Subset) XXX_Merge(src proto.Message)

func (*Subset) XXX_Size

func (m *Subset) XXX_Size() int

func (*Subset) XXX_Unmarshal

func (m *Subset) XXX_Unmarshal(b []byte) error

type TCPRoute

type TCPRoute struct {
	// Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*L4MatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route                []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-Mongo

spec:

hosts:
- mongo.prod.svc.cluster.local
tcp:
- match:
  - port: 27017
  route:
  - destination:
      host: mongo.backup.svc.cluster.local
      port:
        number: 5555

```

func (*TCPRoute) Descriptor

func (*TCPRoute) Descriptor() ([]byte, []int)

func (*TCPRoute) Equal

func (this *TCPRoute) Equal(that interface{}) bool

func (*TCPRoute) GetMatch

func (m *TCPRoute) GetMatch() []*L4MatchAttributes

func (*TCPRoute) GetRoute

func (m *TCPRoute) GetRoute() []*RouteDestination

func (*TCPRoute) ProtoMessage

func (*TCPRoute) ProtoMessage()

func (*TCPRoute) Reset

func (m *TCPRoute) Reset()

func (*TCPRoute) String

func (m *TCPRoute) String() string

func (*TCPRoute) XXX_DiscardUnknown

func (m *TCPRoute) XXX_DiscardUnknown()

func (*TCPRoute) XXX_Marshal

func (m *TCPRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TCPRoute) XXX_Merge

func (m *TCPRoute) XXX_Merge(src proto.Message)

func (*TCPRoute) XXX_Size

func (m *TCPRoute) XXX_Size() int

func (*TCPRoute) XXX_Unmarshal

func (m *TCPRoute) XXX_Unmarshal(b []byte) error

type TLSMatchAttributes

type TLSMatchAttributes struct {
	// REQUIRED. SNI (server name indicator) to match on. Wildcard prefixes
	// can be used in the SNI value, e.g., *.com will match foo.example.com
	// as well as example.com. An SNI value must be a subset (i.e., fall
	// within the domain) of the corresponding virtual serivce's hosts.
	SniHosts []string `protobuf:"bytes,1,rep,name=sni_hosts,json=sniHosts,proto3" json:"sni_hosts,omitempty"`
	// IPv4 or IPv6 ip addresses of destination with optional subnet.  E.g.,
	// a.b.c.d/xx form or just a.b.c.d.
	DestinationSubnets []string `protobuf:"bytes,2,rep,name=destination_subnets,json=destinationSubnets,proto3" json:"destination_subnets,omitempty"`
	// Specifies the port on the host that is being addressed. Many services
	// only expose a single port or label ports with the protocols they
	// support, in these cases it is not required to explicitly select the
	// port.
	Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
	// IPv4 or IPv6 ip address of source with optional subnet. E.g., a.b.c.d/xx
	// form or just a.b.c.d
	// $hide_from_docs
	SourceSubnet string `protobuf:"bytes,4,opt,name=source_subnet,json=sourceSubnet,proto3" json:"source_subnet,omitempty"`
	// One or more labels that constrain the applicability of a rule to
	// workloads with the given labels. If the VirtualService has a list of
	// gateways specified at the top, it should include the reserved gateway
	// `mesh` in order for this field to be applicable.
	SourceLabels map[string]string `` /* 185-byte string literal not displayed */
	// Names of gateways where the rule should be applied to. Gateway names
	// at the top of the VirtualService (if any) are overridden. The gateway
	// match is independent of sourceLabels.
	Gateways             []string `protobuf:"bytes,6,rep,name=gateways,proto3" json:"gateways,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TLS connection match attributes.

func (*TLSMatchAttributes) Descriptor

func (*TLSMatchAttributes) Descriptor() ([]byte, []int)

func (*TLSMatchAttributes) Equal

func (this *TLSMatchAttributes) Equal(that interface{}) bool

func (*TLSMatchAttributes) GetDestinationSubnets

func (m *TLSMatchAttributes) GetDestinationSubnets() []string

func (*TLSMatchAttributes) GetGateways

func (m *TLSMatchAttributes) GetGateways() []string

func (*TLSMatchAttributes) GetPort

func (m *TLSMatchAttributes) GetPort() uint32

func (*TLSMatchAttributes) GetSniHosts

func (m *TLSMatchAttributes) GetSniHosts() []string

func (*TLSMatchAttributes) GetSourceLabels

func (m *TLSMatchAttributes) GetSourceLabels() map[string]string

func (*TLSMatchAttributes) GetSourceSubnet

func (m *TLSMatchAttributes) GetSourceSubnet() string

func (*TLSMatchAttributes) ProtoMessage

func (*TLSMatchAttributes) ProtoMessage()

func (*TLSMatchAttributes) Reset

func (m *TLSMatchAttributes) Reset()

func (*TLSMatchAttributes) String

func (m *TLSMatchAttributes) String() string

func (*TLSMatchAttributes) XXX_DiscardUnknown

func (m *TLSMatchAttributes) XXX_DiscardUnknown()

func (*TLSMatchAttributes) XXX_Marshal

func (m *TLSMatchAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSMatchAttributes) XXX_Merge

func (m *TLSMatchAttributes) XXX_Merge(src proto.Message)

func (*TLSMatchAttributes) XXX_Size

func (m *TLSMatchAttributes) XXX_Size() int

func (*TLSMatchAttributes) XXX_Unmarshal

func (m *TLSMatchAttributes) XXX_Unmarshal(b []byte) error

type TLSRoute

type TLSRoute struct {
	// REQUIRED. Match conditions to be satisfied for the rule to be
	// activated. All conditions inside a single match block have AND
	// semantics, while the list of match blocks have OR semantics. The rule
	// is matched if any one of the match blocks succeed.
	Match []*TLSMatchAttributes `protobuf:"bytes,1,rep,name=match,proto3" json:"match,omitempty"`
	// The destination to which the connection should be forwarded to.
	Route                []*RouteDestination `protobuf:"bytes,2,rep,name=route,proto3" json:"route,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Describes match conditions and actions for routing unterminated TLS traffic (TLS/HTTPS) The following routing rule forwards unterminated TLS traffic arriving at port 443 of gateway called "mygateway" to internal services in the mesh based on the SNI value.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: bookinfo-sni

spec:

hosts:
- "*.bookinfo.com"
gateways:
- mygateway
tls:
- match:
  - port: 443
    sniHosts:
    - login.bookinfo.com
  route:
  - destination:
      host: login.prod.svc.cluster.local
- match:
  - port: 443
    sniHosts:
    - reviews.bookinfo.com
  route:
  - destination:
      host: reviews.prod.svc.cluster.local

```

func (*TLSRoute) Descriptor

func (*TLSRoute) Descriptor() ([]byte, []int)

func (*TLSRoute) Equal

func (this *TLSRoute) Equal(that interface{}) bool

func (*TLSRoute) GetMatch

func (m *TLSRoute) GetMatch() []*TLSMatchAttributes

func (*TLSRoute) GetRoute

func (m *TLSRoute) GetRoute() []*RouteDestination

func (*TLSRoute) ProtoMessage

func (*TLSRoute) ProtoMessage()

func (*TLSRoute) Reset

func (m *TLSRoute) Reset()

func (*TLSRoute) String

func (m *TLSRoute) String() string

func (*TLSRoute) XXX_DiscardUnknown

func (m *TLSRoute) XXX_DiscardUnknown()

func (*TLSRoute) XXX_Marshal

func (m *TLSRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSRoute) XXX_Merge

func (m *TLSRoute) XXX_Merge(src proto.Message)

func (*TLSRoute) XXX_Size

func (m *TLSRoute) XXX_Size() int

func (*TLSRoute) XXX_Unmarshal

func (m *TLSRoute) XXX_Unmarshal(b []byte) error

type TLSSettings

type TLSSettings struct {
	// REQUIRED: Indicates whether connections to this port should be secured
	// using TLS. The value of this field determines how TLS is enforced.
	Mode TLSSettings_TLSmode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1alpha3.TLSSettings_TLSmode" json:"mode,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client-side TLS certificate to use.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	ClientCertificate string `protobuf:"bytes,2,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
	// REQUIRED if mode is `MUTUAL`. The path to the file holding the
	// client's private key.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// OPTIONAL: The path to the file containing certificate authority
	// certificates to use in verifying a presented server certificate. If
	// omitted, the proxy will not verify the server's certificate.
	// Should be empty if mode is `ISTIO_MUTUAL`.
	CaCertificates string `protobuf:"bytes,4,opt,name=ca_certificates,json=caCertificates,proto3" json:"ca_certificates,omitempty"`
	// A list of alternate names to verify the subject identity in the
	// certificate. If specified, the proxy will verify that the server
	// certificate's subject alt name matches one of the specified values.
	SubjectAltNames []string `protobuf:"bytes,5,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	// SNI string to present to the server during TLS handshake.
	Sni                  string   `protobuf:"bytes,6,opt,name=sni,proto3" json:"sni,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

SSL/TLS related settings for upstream connections. See Envoy's [TLS context](https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/auth/cert.proto.html) for more details. These settings are common to both HTTP and TCP upstreams.

For example, the following rule configures a client to use mutual TLS for connections to upstream database cluster.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: db-mtls

spec:

host: mydbserver.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: MUTUAL
    clientCertificate: /etc/certs/myclientcert.pem
    privateKey: /etc/certs/client_private_key.pem
    caCertificates: /etc/certs/rootcacerts.pem

```

The following rule configures a client to use TLS when talking to a foreign service whose domain matches *.foo.com.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: tls-foo

spec:

host: "*.foo.com"
trafficPolicy:
  tls:
    mode: SIMPLE

```

The following rule configures a client to use Istio mutual TLS when talking to rating services.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: ratings-istio-mtls

spec:

host: ratings.prod.svc.cluster.local
trafficPolicy:
  tls:
    mode: ISTIO_MUTUAL

```

func (*TLSSettings) Descriptor

func (*TLSSettings) Descriptor() ([]byte, []int)

func (*TLSSettings) Equal

func (this *TLSSettings) Equal(that interface{}) bool

func (*TLSSettings) GetCaCertificates

func (m *TLSSettings) GetCaCertificates() string

func (*TLSSettings) GetClientCertificate

func (m *TLSSettings) GetClientCertificate() string

func (*TLSSettings) GetMode

func (m *TLSSettings) GetMode() TLSSettings_TLSmode

func (*TLSSettings) GetPrivateKey

func (m *TLSSettings) GetPrivateKey() string

func (*TLSSettings) GetSni

func (m *TLSSettings) GetSni() string

func (*TLSSettings) GetSubjectAltNames

func (m *TLSSettings) GetSubjectAltNames() []string

func (*TLSSettings) ProtoMessage

func (*TLSSettings) ProtoMessage()

func (*TLSSettings) Reset

func (m *TLSSettings) Reset()

func (*TLSSettings) String

func (m *TLSSettings) String() string

func (*TLSSettings) XXX_DiscardUnknown

func (m *TLSSettings) XXX_DiscardUnknown()

func (*TLSSettings) XXX_Marshal

func (m *TLSSettings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TLSSettings) XXX_Merge

func (m *TLSSettings) XXX_Merge(src proto.Message)

func (*TLSSettings) XXX_Size

func (m *TLSSettings) XXX_Size() int

func (*TLSSettings) XXX_Unmarshal

func (m *TLSSettings) XXX_Unmarshal(b []byte) error

type TLSSettings_TLSmode

type TLSSettings_TLSmode int32

TLS connection mode

const (
	// Do not setup a TLS connection to the upstream endpoint.
	TLSSettings_DISABLE TLSSettings_TLSmode = 0
	// Originate a TLS connection to the upstream endpoint.
	TLSSettings_SIMPLE TLSSettings_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	TLSSettings_MUTUAL TLSSettings_TLSmode = 2
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	// Compared to Mutual mode, this mode uses certificates generated
	// automatically by Istio for mTLS authentication. When this mode is
	// used, all other fields in `TLSSettings` should be empty.
	TLSSettings_ISTIO_MUTUAL TLSSettings_TLSmode = 3
)

func (TLSSettings_TLSmode) EnumDescriptor

func (TLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)

func (TLSSettings_TLSmode) String

func (x TLSSettings_TLSmode) String() string

type TrafficPolicy

type TrafficPolicy struct {
	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,1,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,2,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,3,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls *TLSSettings `protobuf:"bytes,4,opt,name=tls,proto3" json:"tls,omitempty"`
	// Traffic policies specific to individual ports. Note that port level
	// settings will override the destination-level settings. Traffic
	// settings specified at the destination-level will not be inherited when
	// overridden by port-level settings, i.e. default values will be applied
	// to fields omitted in port-level traffic policies.
	PortLevelSettings    []*TrafficPolicy_PortTrafficPolicy `protobuf:"bytes,5,rep,name=port_level_settings,json=portLevelSettings,proto3" json:"port_level_settings,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

Traffic policies to apply for a specific destination, across all destination ports. See DestinationRule for examples.

func (*TrafficPolicy) Descriptor

func (*TrafficPolicy) Descriptor() ([]byte, []int)

func (*TrafficPolicy) Equal

func (this *TrafficPolicy) Equal(that interface{}) bool

func (*TrafficPolicy) GetConnectionPool

func (m *TrafficPolicy) GetConnectionPool() *ConnectionPoolSettings

func (*TrafficPolicy) GetLoadBalancer

func (m *TrafficPolicy) GetLoadBalancer() *LoadBalancerSettings

func (*TrafficPolicy) GetOutlierDetection

func (m *TrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy) GetPortLevelSettings

func (m *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolicy

func (*TrafficPolicy) GetTls

func (m *TrafficPolicy) GetTls() *TLSSettings

func (*TrafficPolicy) ProtoMessage

func (*TrafficPolicy) ProtoMessage()

func (*TrafficPolicy) Reset

func (m *TrafficPolicy) Reset()

func (*TrafficPolicy) String

func (m *TrafficPolicy) String() string

func (*TrafficPolicy) XXX_DiscardUnknown

func (m *TrafficPolicy) XXX_DiscardUnknown()

func (*TrafficPolicy) XXX_Marshal

func (m *TrafficPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrafficPolicy) XXX_Merge

func (m *TrafficPolicy) XXX_Merge(src proto.Message)

func (*TrafficPolicy) XXX_Size

func (m *TrafficPolicy) XXX_Size() int

func (*TrafficPolicy) XXX_Unmarshal

func (m *TrafficPolicy) XXX_Unmarshal(b []byte) error

type TrafficPolicy_PortTrafficPolicy

type TrafficPolicy_PortTrafficPolicy struct {
	// Specifies the port name or number of a port on the destination service
	// on which this policy is being applied.
	//
	// Names must comply with DNS label syntax (rfc1035) and therefore cannot
	// collide with numbers. If there are multiple ports on a service with
	// the same protocol the names should be of the form <protocol-name>-<DNS
	// label>.
	Port *PortSelector `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// Settings controlling the load balancer algorithms.
	LoadBalancer *LoadBalancerSettings `protobuf:"bytes,2,opt,name=load_balancer,json=loadBalancer,proto3" json:"load_balancer,omitempty"`
	// Settings controlling the volume of connections to an upstream service
	ConnectionPool *ConnectionPoolSettings `protobuf:"bytes,3,opt,name=connection_pool,json=connectionPool,proto3" json:"connection_pool,omitempty"`
	// Settings controlling eviction of unhealthy hosts from the load balancing pool
	OutlierDetection *OutlierDetection `protobuf:"bytes,4,opt,name=outlier_detection,json=outlierDetection,proto3" json:"outlier_detection,omitempty"`
	// TLS related settings for connections to the upstream service.
	Tls                  *TLSSettings `protobuf:"bytes,5,opt,name=tls,proto3" json:"tls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Traffic policies that apply to specific ports of the service

func (*TrafficPolicy_PortTrafficPolicy) Descriptor

func (*TrafficPolicy_PortTrafficPolicy) Descriptor() ([]byte, []int)

func (*TrafficPolicy_PortTrafficPolicy) Equal

func (this *TrafficPolicy_PortTrafficPolicy) Equal(that interface{}) bool

func (*TrafficPolicy_PortTrafficPolicy) GetConnectionPool

func (*TrafficPolicy_PortTrafficPolicy) GetLoadBalancer

func (*TrafficPolicy_PortTrafficPolicy) GetOutlierDetection

func (m *TrafficPolicy_PortTrafficPolicy) GetOutlierDetection() *OutlierDetection

func (*TrafficPolicy_PortTrafficPolicy) GetPort

func (*TrafficPolicy_PortTrafficPolicy) GetTls

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()

func (*TrafficPolicy_PortTrafficPolicy) Reset

func (*TrafficPolicy_PortTrafficPolicy) String

func (*TrafficPolicy_PortTrafficPolicy) XXX_DiscardUnknown

func (m *TrafficPolicy_PortTrafficPolicy) XXX_DiscardUnknown()

func (*TrafficPolicy_PortTrafficPolicy) XXX_Marshal

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TrafficPolicy_PortTrafficPolicy) XXX_Merge

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Merge(src proto.Message)

func (*TrafficPolicy_PortTrafficPolicy) XXX_Size

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Size() int

func (*TrafficPolicy_PortTrafficPolicy) XXX_Unmarshal

func (m *TrafficPolicy_PortTrafficPolicy) XXX_Unmarshal(b []byte) error

type TransitionDestinationRuleFunc

type TransitionDestinationRuleFunc func(original, desired *DestinationRule) (bool, error)

Option to copy anything from the original to the desired before writing. Return value of false means don't update

type TransitionVirtualServiceFunc

type TransitionVirtualServiceFunc func(original, desired *VirtualService) (bool, error)

Option to copy anything from the original to the desired before writing. Return value of false means don't update

type VirtualService

type VirtualService struct {
	// Status indicates the validation status of this resource.
	// Status is read-only by clients, and set by supergloo during validation
	Status core.Status `protobuf:"bytes,100,opt,name=status,proto3" json:"status" testdiff:"ignore"`
	// Metadata contains the object metadata for this resource
	Metadata core.Metadata `protobuf:"bytes,101,opt,name=metadata,proto3" json:"metadata"`
	// REQUIRED. The destination hosts to which traffic is being sent. Could
	// be a DNS name with wildcard prefix or an IP address.  Depending on the
	// platform, short-names can also be used instead of a FQDN (i.e. has no
	// dots in the name). In such a scenario, the FQDN of the host would be
	// derived based on the underlying platform.
	//
	// **A host name can be defined by only one VirtualService**. A single
	// VirtualService can be used to describe traffic properties for multiple
	// HTTP and TCP ports.
	//
	// *Note for Kubernetes users*: When short names are used (e.g. "reviews"
	// instead of "reviews.default.svc.cluster.local"), Istio will interpret
	// the short name based on the namespace of the rule, not the service. A
	// rule in the "default" namespace containing a host "reviews will be
	// interpreted as "reviews.default.svc.cluster.local", irrespective of
	// the actual namespace associated with the reviews service. _To avoid
	// potential misconfigurations, it is recommended to always use fully
	// qualified domain names over short names._
	//
	// The hosts field applies to both HTTP and TCP services. Service inside
	// the mesh, i.e., those found in the service registry, must always be
	// referred to using their alphanumeric names. IP addresses are allowed
	// only for services defined via the Gateway.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The names of gateways and sidecars that should apply these routes. A
	// single VirtualService is used for sidecars inside the mesh as well as
	// for one or more gateways. The selection condition imposed by this
	// field can be overridden using the source field in the match conditions
	// of protocol-specific routes. The reserved word `mesh` is used to imply
	// all the sidecars in the mesh. When this field is omitted, the default
	// gateway (`mesh`) will be used, which would apply the rule to all
	// sidecars in the mesh. If a list of gateway names is provided, the
	// rules will apply only to the gateways. To apply the rules to both
	// gateways and sidecars, specify `mesh` as one of the gateway names.
	Gateways []string `protobuf:"bytes,2,rep,name=gateways,proto3" json:"gateways,omitempty"`
	// An ordered list of route rules for HTTP traffic. HTTP routes will be
	// applied to platform service ports named 'http-*'/'http2-*'/'grpc-*', gateway
	// ports with protocol HTTP/HTTP2/GRPC/ TLS-terminated-HTTPS and service
	// entry ports using HTTP/HTTP2/GRPC protocols.  The first rule matching
	// an incoming request is used.
	Http []*HTTPRoute `protobuf:"bytes,3,rep,name=http,proto3" json:"http,omitempty"`
	// An ordered list of route rule for non-terminated TLS & HTTPS
	// traffic. Routing is typically performed using the SNI value presented
	// by the ClientHello message. TLS routes will be applied to platform
	// service ports named 'https-*', 'tls-*', unterminated gateway ports using
	// HTTPS/TLS protocols (i.e. with "passthrough" TLS mode) and service
	// entry ports using HTTPS/TLS protocols.  The first rule matching an
	// incoming request is used.  NOTE: Traffic 'https-*' or 'tls-*' ports
	// without associated virtual service will be treated as opaque TCP
	// traffic.
	Tls []*TLSRoute `protobuf:"bytes,5,rep,name=tls,proto3" json:"tls,omitempty"`
	// An ordered list of route rules for opaque TCP traffic. TCP routes will
	// be applied to any port that is not a HTTP or TLS port. The first rule
	// matching an incoming request is used.
	Tcp []*TCPRoute `protobuf:"bytes,4,rep,name=tcp,proto3" json:"tcp,omitempty"`
	// The visibility setting associated with this VirtualService. Set to
	// PRIVATE if this virtual service should not be exported, i.e. restrict
	// the applicability of this virtual service to only workloads in the same
	// namespace as the virtual service.
	ConfigScope          ConfigScope `` /* 138-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

A `VirtualService` defines a set of traffic routing rules to apply when a host is addressed. Each routing rule defines matching criteria for traffic of a specific protocol. If the traffic is matched, then it is sent to a named destination service (or subset/version of it) defined in the registry.

The source of traffic can also be matched in a routing rule. This allows routing to be customized for specific client contexts.

The following example on Kubernetes, routes all HTTP traffic by default to pods of the reviews service with label "version: v1". In addition, HTTP requests with path starting with /wpcatalog/ or /consumercatalog/ will be rewritten to /newcatalog and sent to pods with label "version: v2".

```yaml apiVersion: networking.istio.io/v1alpha3 kind: VirtualService metadata:

name: reviews-route

spec:

hosts:
- reviews.prod.svc.cluster.local
http:
- match:
  - uri:
      prefix: "/wpcatalog"
  - uri:
      prefix: "/consumercatalog"
  rewrite:
    uri: "/newcatalog"
  route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v2
- route:
  - destination:
      host: reviews.prod.svc.cluster.local
      subset: v1

```

A subset/version of a route destination is identified with a reference to a named service subset which must be declared in a corresponding `DestinationRule`.

```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: reviews-destination

spec:

host: reviews.prod.svc.cluster.local
subsets:
- name: v1
  labels:
    version: v1
- name: v2
  labels:
    version: v2

```

func NewVirtualService

func NewVirtualService(namespace, name string) *VirtualService

func (*VirtualService) DeepCopyObject

func (o *VirtualService) DeepCopyObject() runtime.Object

func (*VirtualService) Descriptor

func (*VirtualService) Descriptor() ([]byte, []int)

func (*VirtualService) Equal

func (this *VirtualService) Equal(that interface{}) bool

func (*VirtualService) GetConfigScope

func (m *VirtualService) GetConfigScope() ConfigScope

func (*VirtualService) GetGateways

func (m *VirtualService) GetGateways() []string

func (*VirtualService) GetHosts

func (m *VirtualService) GetHosts() []string

func (*VirtualService) GetHttp

func (m *VirtualService) GetHttp() []*HTTPRoute

func (*VirtualService) GetMetadata

func (m *VirtualService) GetMetadata() core.Metadata

func (*VirtualService) GetObjectKind

func (o *VirtualService) GetObjectKind() schema.ObjectKind

func (*VirtualService) GetStatus

func (m *VirtualService) GetStatus() core.Status

func (*VirtualService) GetTcp

func (m *VirtualService) GetTcp() []*TCPRoute

func (*VirtualService) GetTls

func (m *VirtualService) GetTls() []*TLSRoute

func (*VirtualService) Hash

func (r *VirtualService) Hash() uint64

func (*VirtualService) ProtoMessage

func (*VirtualService) ProtoMessage()

func (*VirtualService) Reset

func (m *VirtualService) Reset()

func (*VirtualService) SetMetadata

func (r *VirtualService) SetMetadata(meta core.Metadata)

func (*VirtualService) SetStatus

func (r *VirtualService) SetStatus(status core.Status)

func (*VirtualService) String

func (m *VirtualService) String() string

func (*VirtualService) XXX_DiscardUnknown

func (m *VirtualService) XXX_DiscardUnknown()

func (*VirtualService) XXX_Marshal

func (m *VirtualService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VirtualService) XXX_Merge

func (m *VirtualService) XXX_Merge(src proto.Message)

func (*VirtualService) XXX_Size

func (m *VirtualService) XXX_Size() int

func (*VirtualService) XXX_Unmarshal

func (m *VirtualService) XXX_Unmarshal(b []byte) error

type VirtualServiceClient

type VirtualServiceClient interface {
	BaseClient() clients.ResourceClient
	Register() error
	Read(namespace, name string, opts clients.ReadOpts) (*VirtualService, error)
	Write(resource *VirtualService, opts clients.WriteOpts) (*VirtualService, error)
	Delete(namespace, name string, opts clients.DeleteOpts) error
	List(namespace string, opts clients.ListOpts) (VirtualServiceList, error)
	VirtualServiceWatcher
}

func NewVirtualServiceClient

func NewVirtualServiceClient(rcFactory factory.ResourceClientFactory) (VirtualServiceClient, error)

func NewVirtualServiceClientWithBase

func NewVirtualServiceClientWithBase(rc clients.ResourceClient) VirtualServiceClient

func NewVirtualServiceClientWithToken

func NewVirtualServiceClientWithToken(rcFactory factory.ResourceClientFactory, token string) (VirtualServiceClient, error)

type VirtualServiceList

type VirtualServiceList []*VirtualService

func (VirtualServiceList) AsInputResources

func (list VirtualServiceList) AsInputResources() resources.InputResourceList

func (VirtualServiceList) AsInterfaces

func (list VirtualServiceList) AsInterfaces() []interface{}

func (VirtualServiceList) AsResources

func (list VirtualServiceList) AsResources() resources.ResourceList

func (VirtualServiceList) Clone

func (VirtualServiceList) Each

func (list VirtualServiceList) Each(f func(element *VirtualService))

func (VirtualServiceList) EachResource added in v0.3.18

func (list VirtualServiceList) EachResource(f func(element resources.Resource))

func (VirtualServiceList) Find

func (list VirtualServiceList) Find(namespace, name string) (*VirtualService, error)

namespace is optional, if left empty, names can collide if the list contains more than one with the same name

func (VirtualServiceList) Names

func (list VirtualServiceList) Names() []string

func (VirtualServiceList) NamespacesDotNames

func (list VirtualServiceList) NamespacesDotNames() []string

func (VirtualServiceList) Sort

type VirtualServiceReconciler

type VirtualServiceReconciler interface {
	Reconcile(namespace string, desiredResources VirtualServiceList, transition TransitionVirtualServiceFunc, opts clients.ListOpts) error
}

func NewVirtualServiceReconciler

func NewVirtualServiceReconciler(client VirtualServiceClient) VirtualServiceReconciler

type VirtualServiceWatcher added in v0.3.18

type VirtualServiceWatcher interface {
	// watch namespace-scoped Virtualservices
	Watch(namespace string, opts clients.WatchOpts) (<-chan VirtualServiceList, <-chan error, error)
}

type WorkloadSelector

type WorkloadSelector struct {
	// One or more labels that indicate a specific set of pods/VMs on which
	// this sidecar configuration should be applied. The scope of label
	// search is restricted to the configuration namespace in which the the
	// resource is present.
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

WorkloadSelector specifies the criteria used to determine if the Gateway or Sidecar resource can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload info such as labels attached to the pod/VM, or any other info that the proxy provides to Istio during the initial handshake. If multiple conditions are specified, all conditions need to match in order for the workload to be selected. Currently, only label based selection mechanism is supported.

func (*WorkloadSelector) Descriptor

func (*WorkloadSelector) Descriptor() ([]byte, []int)

func (*WorkloadSelector) Equal

func (this *WorkloadSelector) Equal(that interface{}) bool

func (*WorkloadSelector) GetLabels

func (m *WorkloadSelector) GetLabels() map[string]string

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) Reset

func (m *WorkloadSelector) Reset()

func (*WorkloadSelector) String

func (m *WorkloadSelector) String() string

func (*WorkloadSelector) XXX_DiscardUnknown

func (m *WorkloadSelector) XXX_DiscardUnknown()

func (*WorkloadSelector) XXX_Marshal

func (m *WorkloadSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WorkloadSelector) XXX_Merge

func (m *WorkloadSelector) XXX_Merge(src proto.Message)

func (*WorkloadSelector) XXX_Size

func (m *WorkloadSelector) XXX_Size() int

func (*WorkloadSelector) XXX_Unmarshal

func (m *WorkloadSelector) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL