v1beta1

package
v0.0.0-...-9d98e3d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthDestinationRule = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDestinationRule   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	DestinationRuleMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	DestinationRuleUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)
View Source
var (
	ErrInvalidLengthGateway = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGateway   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthServiceEntry = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowServiceEntry   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ServiceEntryMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	ServiceEntryUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)
View Source
var (
	ErrInvalidLengthSidecar = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSidecar   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	ErrInvalidLengthVirtualService = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVirtualService   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	VirtualServiceMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	VirtualServiceUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)
View Source
var (
	ErrInvalidLengthWorkloadEntry = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWorkloadEntry   = fmt.Errorf("proto: integer overflow")
)
View Source
var (
	WorkloadEntryMarshaler   = &github_com_gogo_protobuf_jsonpb.Marshaler{}
	WorkloadEntryUnmarshaler = &github_com_gogo_protobuf_jsonpb.Unmarshaler{}
)
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 ClientTLSSettings_TLSmode_name = map[int32]string{
	0: "DISABLE",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "ISTIO_MUTUAL",
}
View Source
var ClientTLSSettings_TLSmode_value = map[string]int32{
	"DISABLE":      0,
	"SIMPLE":       1,
	"MUTUAL":       2,
	"ISTIO_MUTUAL": 3,
}
View Source
var ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name = map[int32]string{
	0: "DEFAULT",
	1: "DO_NOT_UPGRADE",
	2: "UPGRADE",
}
View Source
var ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value = map[string]int32{
	"DEFAULT":        0,
	"DO_NOT_UPGRADE": 1,
	"UPGRADE":        2,
}
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 OutboundTrafficPolicy_Mode_name = map[int32]string{
	0: "REGISTRY_ONLY",
	1: "ALLOW_ANY",
}
View Source
var OutboundTrafficPolicy_Mode_value = map[string]int32{
	"REGISTRY_ONLY": 0,
	"ALLOW_ANY":     1,
}
View Source
var ServerTLSSettings_TLSProtocol_name = map[int32]string{
	0: "TLS_AUTO",
	1: "TLSV1_0",
	2: "TLSV1_1",
	3: "TLSV1_2",
	4: "TLSV1_3",
}
View Source
var ServerTLSSettings_TLSProtocol_value = map[string]int32{
	"TLS_AUTO": 0,
	"TLSV1_0":  1,
	"TLSV1_1":  2,
	"TLSV1_2":  3,
	"TLSV1_3":  4,
}
View Source
var ServerTLSSettings_TLSmode_name = map[int32]string{
	0: "PASSTHROUGH",
	1: "SIMPLE",
	2: "MUTUAL",
	3: "AUTO_PASSTHROUGH",
	4: "ISTIO_MUTUAL",
}
View Source
var ServerTLSSettings_TLSmode_value = map[string]int32{
	"PASSTHROUGH":      0,
	"SIMPLE":           1,
	"MUTUAL":           2,
	"AUTO_PASSTHROUGH": 3,
	"ISTIO_MUTUAL":     4,
}
View Source
var ServiceEntry_Location_name = map[int32]string{
	0: "MESH_EXTERNAL",
	1: "MESH_INTERNAL",
}
View Source
var ServiceEntry_Location_value = map[string]int32{
	"MESH_EXTERNAL": 0,
	"MESH_INTERNAL": 1,
}
View Source
var ServiceEntry_Resolution_name = map[int32]string{
	0: "NONE",
	1: "STATIC",
	2: "DNS",
}
View Source
var ServiceEntry_Resolution_value = map[string]int32{
	"NONE":   0,
	"STATIC": 1,
	"DNS":    2,
}

Functions

This section is empty.

Types

type CaptureMode

type CaptureMode int32

`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 an egress listener, the application is
	// expected to explicitly communicate with the listener port or Unix
	// domain socket. When used in an 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 ClientTLSSettings

type ClientTLSSettings struct {
	// Indicates whether connections to this port should be secured
	// using TLS. The value of this field determines how TLS is enforced.
	Mode ClientTLSSettings_TLSmode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1beta1.ClientTLSSettings_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.
	// If specified, this list overrides the value of subject_alt_names
	// from the ServiceEntry.
	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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: tls-foo

spec:

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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: tls-foo

spec:

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

``` {{</tab>}} {{</tabset>}}

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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: ratings-istio-mtls

spec:

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

``` {{</tab>}} {{</tabset>}}

func (*ClientTLSSettings) DeepCopy

func (in *ClientTLSSettings) DeepCopy() *ClientTLSSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientTLSSettings. Required by controller-gen.

func (*ClientTLSSettings) DeepCopyInto

func (in *ClientTLSSettings) DeepCopyInto(out *ClientTLSSettings)

DeepCopyInto supports using ClientTLSSettings within kubernetes types, where deepcopy-gen is used.

func (*ClientTLSSettings) Descriptor

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

func (*ClientTLSSettings) GetCaCertificates

func (m *ClientTLSSettings) GetCaCertificates() string

func (*ClientTLSSettings) GetClientCertificate

func (m *ClientTLSSettings) GetClientCertificate() string

func (*ClientTLSSettings) GetMode

func (*ClientTLSSettings) GetPrivateKey

func (m *ClientTLSSettings) GetPrivateKey() string

func (*ClientTLSSettings) GetSni

func (m *ClientTLSSettings) GetSni() string

func (*ClientTLSSettings) GetSubjectAltNames

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

func (*ClientTLSSettings) Marshal

func (m *ClientTLSSettings) Marshal() (dAtA []byte, err error)

func (*ClientTLSSettings) MarshalJSON

func (this *ClientTLSSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ClientTLSSettings

func (*ClientTLSSettings) MarshalTo

func (m *ClientTLSSettings) MarshalTo(dAtA []byte) (int, error)

func (*ClientTLSSettings) MarshalToSizedBuffer

func (m *ClientTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientTLSSettings) ProtoMessage

func (*ClientTLSSettings) ProtoMessage()

func (*ClientTLSSettings) Reset

func (m *ClientTLSSettings) Reset()

func (*ClientTLSSettings) Size

func (m *ClientTLSSettings) Size() (n int)

func (*ClientTLSSettings) String

func (m *ClientTLSSettings) String() string

func (*ClientTLSSettings) Unmarshal

func (m *ClientTLSSettings) Unmarshal(dAtA []byte) error

func (*ClientTLSSettings) UnmarshalJSON

func (this *ClientTLSSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ClientTLSSettings

func (*ClientTLSSettings) XXX_DiscardUnknown

func (m *ClientTLSSettings) XXX_DiscardUnknown()

func (*ClientTLSSettings) XXX_Marshal

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

func (*ClientTLSSettings) XXX_Merge

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

func (*ClientTLSSettings) XXX_Size

func (m *ClientTLSSettings) XXX_Size() int

func (*ClientTLSSettings) XXX_Unmarshal

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

type ClientTLSSettings_TLSmode

type ClientTLSSettings_TLSmode int32

TLS connection mode

const (
	// Do not setup a TLS connection to the upstream endpoint.
	ClientTLSSettings_DISABLE ClientTLSSettings_TLSmode = 0
	// Originate a TLS connection to the upstream endpoint.
	ClientTLSSettings_SIMPLE ClientTLSSettings_TLSmode = 1
	// Secure connections to the upstream using mutual TLS by presenting
	// client certificates for authentication.
	ClientTLSSettings_MUTUAL ClientTLSSettings_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 `ClientTLSSettings` should be empty.
	ClientTLSSettings_ISTIO_MUTUAL ClientTLSSettings_TLSmode = 3
)

func (ClientTLSSettings_TLSmode) EnumDescriptor

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

func (ClientTLSSettings_TLSmode) String

func (x ClientTLSSettings_TLSmode) 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/upstream/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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*ConnectionPoolSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings. Required by controller-gen.

func (*ConnectionPoolSettings) DeepCopyInto

func (in *ConnectionPoolSettings) DeepCopyInto(out *ConnectionPoolSettings)

DeepCopyInto supports using ConnectionPoolSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings) Descriptor

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

func (*ConnectionPoolSettings) GetHttp

func (*ConnectionPoolSettings) GetTcp

func (*ConnectionPoolSettings) Marshal

func (m *ConnectionPoolSettings) Marshal() (dAtA []byte, err error)

func (*ConnectionPoolSettings) MarshalJSON

func (this *ConnectionPoolSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings

func (*ConnectionPoolSettings) MarshalTo

func (m *ConnectionPoolSettings) MarshalTo(dAtA []byte) (int, error)

func (*ConnectionPoolSettings) MarshalToSizedBuffer

func (m *ConnectionPoolSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConnectionPoolSettings) ProtoMessage

func (*ConnectionPoolSettings) ProtoMessage()

func (*ConnectionPoolSettings) Reset

func (m *ConnectionPoolSettings) Reset()

func (*ConnectionPoolSettings) Size

func (m *ConnectionPoolSettings) Size() (n int)

func (*ConnectionPoolSettings) String

func (m *ConnectionPoolSettings) String() string

func (*ConnectionPoolSettings) Unmarshal

func (m *ConnectionPoolSettings) Unmarshal(dAtA []byte) error

func (*ConnectionPoolSettings) UnmarshalJSON

func (this *ConnectionPoolSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings

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 2^32-1.
	Http1MaxPendingRequests int32 `` /* 135-byte string literal not displayed */
	// Maximum number of requests to a backend. Default 2^32-1.
	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. Default 0, meaning "unlimited",
	// up to 2^29.
	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 2^32-1.
	MaxRetries int32 `protobuf:"varint,4,opt,name=max_retries,json=maxRetries,proto3" json:"max_retries,omitempty"`
	// The idle timeout for upstream connection pool connections. The idle timeout is defined as the period in which there are no active requests.
	// If not set, the default is 1 hour. When the idle timeout is reached the connection will be closed.
	// Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections.
	IdleTimeout *types.Duration `protobuf:"bytes,5,opt,name=idle_timeout,json=idleTimeout,proto3" json:"idle_timeout,omitempty"`
	// Specify if http1.1 connection should be upgraded to http2 for the associated destination.
	H2UpgradePolicy      ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy `` /* 191-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                            `json:"-"`
	XXX_unrecognized     []byte                                              `json:"-"`
	XXX_sizecache        int32                                               `json:"-"`
}

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

func (*ConnectionPoolSettings_HTTPSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_HTTPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_HTTPSettings) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_HTTPSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_HTTPSettings) Descriptor

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

func (*ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy

func (*ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests

func (m *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32

func (*ConnectionPoolSettings_HTTPSettings) GetIdleTimeout

func (m *ConnectionPoolSettings_HTTPSettings) GetIdleTimeout() *types.Duration

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32

func (*ConnectionPoolSettings_HTTPSettings) GetMaxRetries

func (m *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32

func (*ConnectionPoolSettings_HTTPSettings) Marshal

func (m *ConnectionPoolSettings_HTTPSettings) Marshal() (dAtA []byte, err error)

func (*ConnectionPoolSettings_HTTPSettings) MarshalJSON

func (this *ConnectionPoolSettings_HTTPSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings_HTTPSettings

func (*ConnectionPoolSettings_HTTPSettings) MarshalTo

func (m *ConnectionPoolSettings_HTTPSettings) MarshalTo(dAtA []byte) (int, error)

func (*ConnectionPoolSettings_HTTPSettings) MarshalToSizedBuffer

func (m *ConnectionPoolSettings_HTTPSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage

func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()

func (*ConnectionPoolSettings_HTTPSettings) Reset

func (*ConnectionPoolSettings_HTTPSettings) Size

func (*ConnectionPoolSettings_HTTPSettings) String

func (*ConnectionPoolSettings_HTTPSettings) Unmarshal

func (m *ConnectionPoolSettings_HTTPSettings) Unmarshal(dAtA []byte) error

func (*ConnectionPoolSettings_HTTPSettings) UnmarshalJSON

func (this *ConnectionPoolSettings_HTTPSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_HTTPSettings

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_HTTPSettings_H2UpgradePolicy

type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy int32

Policy for upgrading http1.1 connections to http2.

const (
	// Use the global default.
	ConnectionPoolSettings_HTTPSettings_DEFAULT ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 0
	// Do not upgrade the connection to http2.
	// This opt-out option overrides the default.
	ConnectionPoolSettings_HTTPSettings_DO_NOT_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 1
	// Upgrade the connection to http2.
	// This opt-in option overrides the default.
	ConnectionPoolSettings_HTTPSettings_UPGRADE ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy = 2
)

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor

func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String

type ConnectionPoolSettings_TCPSettings

type ConnectionPoolSettings_TCPSettings struct {
	// Maximum number of HTTP1 /TCP connections to a destination host. Default 2^32-1.
	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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_TCPSettings within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_TCPSettings) Descriptor

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

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) Marshal

func (m *ConnectionPoolSettings_TCPSettings) Marshal() (dAtA []byte, err error)

func (*ConnectionPoolSettings_TCPSettings) MarshalJSON

func (this *ConnectionPoolSettings_TCPSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ConnectionPoolSettings_TCPSettings

func (*ConnectionPoolSettings_TCPSettings) MarshalTo

func (m *ConnectionPoolSettings_TCPSettings) MarshalTo(dAtA []byte) (int, error)

func (*ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer

func (m *ConnectionPoolSettings_TCPSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()

func (*ConnectionPoolSettings_TCPSettings) Reset

func (*ConnectionPoolSettings_TCPSettings) Size

func (*ConnectionPoolSettings_TCPSettings) String

func (*ConnectionPoolSettings_TCPSettings) Unmarshal

func (m *ConnectionPoolSettings_TCPSettings) Unmarshal(dAtA []byte) error

func (*ConnectionPoolSettings_TCPSettings) UnmarshalJSON

func (this *ConnectionPoolSettings_TCPSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_TCPSettings

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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoolSettings_TCPSettings_TcpKeepalive. Required by controller-gen.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) DeepCopyInto

DeepCopyInto supports using ConnectionPoolSettings_TCPSettings_TcpKeepalive within kubernetes types, where deepcopy-gen is used.

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Marshal

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Marshal() (dAtA []byte, err error)

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalJSON

MarshalJSON is a custom marshaler for ConnectionPoolSettings_TCPSettings_TcpKeepalive

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalTo

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer

func (m *ConnectionPoolSettings_TCPSettings_TcpKeepalive) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Size

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) String

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Unmarshal

func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for ConnectionPoolSettings_TCPSettings_TcpKeepalive

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.
	// $hide_from_docs
	AllowOrigin []string `protobuf:"bytes,1,rep,name=allow_origin,json=allowOrigin,proto3" json:"allow_origin,omitempty"` // Deprecated: Do not use.
	// String patterns that match allowed origins.
	// An origin is allowed if any of the string matchers match.
	// If a match is found, then the outgoing Access-Control-Allow-Origin would be set to the origin as provided by the client.
	AllowOrigins []*StringMatch `protobuf:"bytes,7,rep,name=allow_origins,json=allowOrigins,proto3" json:"allow_origins,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 [CORS](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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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:
    allowOrigins:
    - exact: https://example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "24h"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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:
    allowOrigins:
    - exact: https://example.com
    allowMethods:
    - POST
    - GET
    allowCredentials: false
    allowHeaders:
    - X-Foo-Bar
    maxAge: "24h"

``` {{</tab>}} {{</tabset>}}

func (*CorsPolicy) DeepCopy

func (in *CorsPolicy) DeepCopy() *CorsPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CorsPolicy. Required by controller-gen.

func (*CorsPolicy) DeepCopyInto

func (in *CorsPolicy) DeepCopyInto(out *CorsPolicy)

DeepCopyInto supports using CorsPolicy within kubernetes types, where deepcopy-gen is used.

func (*CorsPolicy) Descriptor

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

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 deprecated

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

Deprecated: Do not use.

func (*CorsPolicy) GetAllowOrigins

func (m *CorsPolicy) GetAllowOrigins() []*StringMatch

func (*CorsPolicy) GetExposeHeaders

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

func (*CorsPolicy) GetMaxAge

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

func (*CorsPolicy) Marshal

func (m *CorsPolicy) Marshal() (dAtA []byte, err error)

func (*CorsPolicy) MarshalJSON

func (this *CorsPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for CorsPolicy

func (*CorsPolicy) MarshalTo

func (m *CorsPolicy) MarshalTo(dAtA []byte) (int, error)

func (*CorsPolicy) MarshalToSizedBuffer

func (m *CorsPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CorsPolicy) ProtoMessage

func (*CorsPolicy) ProtoMessage()

func (*CorsPolicy) Reset

func (m *CorsPolicy) Reset()

func (*CorsPolicy) Size

func (m *CorsPolicy) Size() (n int)

func (*CorsPolicy) String

func (m *CorsPolicy) String() string

func (*CorsPolicy) Unmarshal

func (m *CorsPolicy) Unmarshal(dAtA []byte) error

func (*CorsPolicy) UnmarshalJSON

func (this *CorsPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for CorsPolicy

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 Delegate

type Delegate struct {
	// Name specifies the name of the delegate VirtualService.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Namespace specifies the namespace where the delegate VirtualService resides.
	// By default, it is same to the root's.
	Namespace            string   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Describes the delegate VirtualService. The following routing rules forward the traffic to `/productpage` by a delegate VirtualService named `productpage`, forward the traffic to `/reviews` by a delegate VirtualService named `reviews`.

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

name: bookinfo

spec:

hosts:
- "bookinfo.com"
gateways:
- mygateway
http:
- match:
  - uri:
      prefix: "/productpage"
  delegate:
     name: productpage
     namespace: nsA
- match:
  - uri:
      prefix: "/reviews"
  delegate:
      name: reviews
      namespace: nsB

```

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

name: productpage
namespace: nsA

spec:

http:
- match:
   - uri:
      prefix: "/productpage/v1/"
  route:
  - destination:
      host: productpage-v1.nsA.svc.cluster.local
- route:
  - destination:
      host: productpage.nsA.svc.cluster.local

```

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

name: reviews
namespace: nsB

spec:

http:
- route:
  - destination:
      host: reviews.nsB.svc.cluster.local

```

func (*Delegate) DeepCopy

func (in *Delegate) DeepCopy() *Delegate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Delegate. Required by controller-gen.

func (*Delegate) DeepCopyInto

func (in *Delegate) DeepCopyInto(out *Delegate)

DeepCopyInto supports using Delegate within kubernetes types, where deepcopy-gen is used.

func (*Delegate) Descriptor

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

func (*Delegate) GetName

func (m *Delegate) GetName() string

func (*Delegate) GetNamespace

func (m *Delegate) GetNamespace() string

func (*Delegate) Marshal

func (m *Delegate) Marshal() (dAtA []byte, err error)

func (*Delegate) MarshalJSON

func (this *Delegate) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Delegate

func (*Delegate) MarshalTo

func (m *Delegate) MarshalTo(dAtA []byte) (int, error)

func (*Delegate) MarshalToSizedBuffer

func (m *Delegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Delegate) ProtoMessage

func (*Delegate) ProtoMessage()

func (*Delegate) Reset

func (m *Delegate) Reset()

func (*Delegate) Size

func (m *Delegate) Size() (n int)

func (*Delegate) String

func (m *Delegate) String() string

func (*Delegate) Unmarshal

func (m *Delegate) Unmarshal(dAtA []byte) error

func (*Delegate) UnmarshalJSON

func (this *Delegate) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Delegate

func (*Delegate) XXX_DiscardUnknown

func (m *Delegate) XXX_DiscardUnknown()

func (*Delegate) XXX_Marshal

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

func (*Delegate) XXX_Merge

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

func (*Delegate) XXX_Size

func (m *Delegate) XXX_Size() int

func (*Delegate) XXX_Unmarshal

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

type Destination

type Destination struct {
	// 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](https://istio.io/docs/reference/config/networking/service-entry/#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 misconfiguration, 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(https://istio.io/docs/reference/config/networking/service-entry/#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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

And the associated DestinationRule

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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/v1beta1 kind: VirtualService metadata:

name: my-wiki-rule

spec:

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

``` {{</tab>}} {{</tabset>}}

func (*Destination) DeepCopy

func (in *Destination) DeepCopy() *Destination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination. Required by controller-gen.

func (*Destination) DeepCopyInto

func (in *Destination) DeepCopyInto(out *Destination)

DeepCopyInto supports using Destination within kubernetes types, where deepcopy-gen is used.

func (*Destination) Descriptor

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

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) Marshal

func (m *Destination) Marshal() (dAtA []byte, err error)

func (*Destination) MarshalJSON

func (this *Destination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Destination

func (*Destination) MarshalTo

func (m *Destination) MarshalTo(dAtA []byte) (int, error)

func (*Destination) MarshalToSizedBuffer

func (m *Destination) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) Reset

func (m *Destination) Reset()

func (*Destination) Size

func (m *Destination) Size() (n int)

func (*Destination) String

func (m *Destination) String() string

func (*Destination) Unmarshal

func (m *Destination) Unmarshal(dAtA []byte) error

func (*Destination) UnmarshalJSON

func (this *Destination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Destination

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 {
	// 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](https://istio.io/docs/reference/config/networking/service-entry/#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"`
	// A list of namespaces to which this destination rule is exported.
	// The resolution of a destination rule to apply to a service occurs in the
	// context of a hierarchy of namespaces. Exporting a destination rule allows
	// it to be included in the resolution hierarchy for services in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of destination rules
	// across namespace boundaries.
	//
	// If no namespaces are specified then the destination rule is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the destination rule is declared in. Similarly, the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo             []string `protobuf:"bytes,4,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	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.

<!-- crd generation tags +cue-gen:DestinationRule:groupName:networking.istio.io +cue-gen:DestinationRule:version:v1beta1 +cue-gen:DestinationRule:annotations:helm.sh/resource-policy=keep +cue-gen:DestinationRule:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:DestinationRule:subresource:status +cue-gen:DestinationRule:scope:Namespaced +cue-gen:DestinationRule:resource:categories=istio-io,networking-istio-io,shortNames=dr +cue-gen:DestinationRule:printerColumn:name=Host,type=string,JSONPath=.spec.host,description="The name of a service from the service registry" +cue-gen:DestinationRule:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:DestinationRule:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*DestinationRule) DeepCopy

func (in *DestinationRule) DeepCopy() *DestinationRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DestinationRule. Required by controller-gen.

func (*DestinationRule) DeepCopyInto

func (in *DestinationRule) DeepCopyInto(out *DestinationRule)

DeepCopyInto supports using DestinationRule within kubernetes types, where deepcopy-gen is used.

func (*DestinationRule) Descriptor

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

func (*DestinationRule) GetExportTo

func (m *DestinationRule) GetExportTo() []string

func (*DestinationRule) GetHost

func (m *DestinationRule) GetHost() string

func (*DestinationRule) GetSubsets

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

func (*DestinationRule) GetTrafficPolicy

func (m *DestinationRule) GetTrafficPolicy() *TrafficPolicy

func (*DestinationRule) Marshal

func (m *DestinationRule) Marshal() (dAtA []byte, err error)

func (*DestinationRule) MarshalJSON

func (this *DestinationRule) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for DestinationRule

func (*DestinationRule) MarshalTo

func (m *DestinationRule) MarshalTo(dAtA []byte) (int, error)

func (*DestinationRule) MarshalToSizedBuffer

func (m *DestinationRule) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DestinationRule) ProtoMessage

func (*DestinationRule) ProtoMessage()

func (*DestinationRule) Reset

func (m *DestinationRule) Reset()

func (*DestinationRule) Size

func (m *DestinationRule) Size() (n int)

func (*DestinationRule) String

func (m *DestinationRule) String() string

func (*DestinationRule) Unmarshal

func (m *DestinationRule) Unmarshal(dAtA []byte) error

func (*DestinationRule) UnmarshalJSON

func (this *DestinationRule) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for DestinationRule

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 Gateway

type Gateway struct {
	// A list of server specifications.
	Servers []*Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// 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 instance.
	// If selector is nil, the Gateway will be applied to all workloads.
	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.

<!-- crd generation tags +cue-gen:Gateway:groupName:networking.istio.io +cue-gen:Gateway:version:v1beta1 +cue-gen:Gateway:annotations:helm.sh/resource-policy=keep +cue-gen:Gateway:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:Gateway:subresource:status +cue-gen:Gateway:scope:Namespaced +cue-gen:Gateway:resource:categories=istio-io,networking-istio-io,shortNames=gw +cue-gen:Gateway:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*Gateway) DeepCopy

func (in *Gateway) DeepCopy() *Gateway

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Gateway. Required by controller-gen.

func (*Gateway) DeepCopyInto

func (in *Gateway) DeepCopyInto(out *Gateway)

DeepCopyInto supports using Gateway within kubernetes types, where deepcopy-gen is used.

func (*Gateway) Descriptor

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

func (*Gateway) GetSelector

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

func (*Gateway) GetServers

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

func (*Gateway) Marshal

func (m *Gateway) Marshal() (dAtA []byte, err error)

func (*Gateway) MarshalJSON

func (this *Gateway) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Gateway

func (*Gateway) MarshalTo

func (m *Gateway) MarshalTo(dAtA []byte) (int, error)

func (*Gateway) MarshalToSizedBuffer

func (m *Gateway) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Gateway) ProtoMessage

func (*Gateway) ProtoMessage()

func (*Gateway) Reset

func (m *Gateway) Reset()

func (*Gateway) Size

func (m *Gateway) Size() (n int)

func (*Gateway) String

func (m *Gateway) String() string

func (*Gateway) Unmarshal

func (m *Gateway) Unmarshal(dAtA []byte) error

func (*Gateway) UnmarshalJSON

func (this *Gateway) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Gateway

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) DeepCopy

func (in *HTTPFaultInjection) DeepCopy() *HTTPFaultInjection

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection. Required by controller-gen.

func (*HTTPFaultInjection) DeepCopyInto

func (in *HTTPFaultInjection) DeepCopyInto(out *HTTPFaultInjection)

DeepCopyInto supports using HTTPFaultInjection within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection) Descriptor

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

func (*HTTPFaultInjection) GetAbort

func (*HTTPFaultInjection) GetDelay

func (*HTTPFaultInjection) Marshal

func (m *HTTPFaultInjection) Marshal() (dAtA []byte, err error)

func (*HTTPFaultInjection) MarshalJSON

func (this *HTTPFaultInjection) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection

func (*HTTPFaultInjection) MarshalTo

func (m *HTTPFaultInjection) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection) MarshalToSizedBuffer

func (m *HTTPFaultInjection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection) ProtoMessage

func (*HTTPFaultInjection) ProtoMessage()

func (*HTTPFaultInjection) Reset

func (m *HTTPFaultInjection) Reset()

func (*HTTPFaultInjection) Size

func (m *HTTPFaultInjection) Size() (n int)

func (*HTTPFaultInjection) String

func (m *HTTPFaultInjection) String() string

func (*HTTPFaultInjection) Unmarshal

func (m *HTTPFaultInjection) Unmarshal(dAtA []byte) error

func (*HTTPFaultInjection) UnmarshalJSON

func (this *HTTPFaultInjection) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection

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 {
	// 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".

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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.1
      httpStatus: 400

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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.1
      httpStatus: 400

``` {{</tab>}} {{</tabset>}}

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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Abort. Required by controller-gen.

func (*HTTPFaultInjection_Abort) DeepCopyInto

func (in *HTTPFaultInjection_Abort) DeepCopyInto(out *HTTPFaultInjection_Abort)

DeepCopyInto supports using HTTPFaultInjection_Abort within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection_Abort) Descriptor

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

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) GetPercentage

func (m *HTTPFaultInjection_Abort) GetPercentage() *Percent

func (*HTTPFaultInjection_Abort) Marshal

func (m *HTTPFaultInjection_Abort) Marshal() (dAtA []byte, err error)

func (*HTTPFaultInjection_Abort) MarshalJSON

func (this *HTTPFaultInjection_Abort) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection_Abort

func (*HTTPFaultInjection_Abort) MarshalTo

func (m *HTTPFaultInjection_Abort) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Abort) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort) ProtoMessage

func (*HTTPFaultInjection_Abort) ProtoMessage()

func (*HTTPFaultInjection_Abort) Reset

func (m *HTTPFaultInjection_Abort) Reset()

func (*HTTPFaultInjection_Abort) Size

func (m *HTTPFaultInjection_Abort) Size() (n int)

func (*HTTPFaultInjection_Abort) String

func (m *HTTPFaultInjection_Abort) String() string

func (*HTTPFaultInjection_Abort) Unmarshal

func (m *HTTPFaultInjection_Abort) Unmarshal(dAtA []byte) error

func (*HTTPFaultInjection_Abort) UnmarshalJSON

func (this *HTTPFaultInjection_Abort) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection_Abort

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_OneofWrappers

func (*HTTPFaultInjection_Abort) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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) MarshalTo

func (m *HTTPFaultInjection_Abort_GrpcStatus) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_GrpcStatus) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Abort_GrpcStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_GrpcStatus) Size

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) MarshalTo

func (m *HTTPFaultInjection_Abort_Http2Error) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_Http2Error) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Abort_Http2Error) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_Http2Error) Size

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) MarshalTo

func (m *HTTPFaultInjection_Abort_HttpStatus) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_HttpStatus) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Abort_HttpStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Abort_HttpStatus) Size

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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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.1
      fixedDelay: 5s

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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.1
      fixedDelay: 5s

``` {{</tab>}} {{</tabset>}}

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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPFaultInjection_Delay. Required by controller-gen.

func (*HTTPFaultInjection_Delay) DeepCopyInto

func (in *HTTPFaultInjection_Delay) DeepCopyInto(out *HTTPFaultInjection_Delay)

DeepCopyInto supports using HTTPFaultInjection_Delay within kubernetes types, where deepcopy-gen is used.

func (*HTTPFaultInjection_Delay) Descriptor

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

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) Marshal

func (m *HTTPFaultInjection_Delay) Marshal() (dAtA []byte, err error)

func (*HTTPFaultInjection_Delay) MarshalJSON

func (this *HTTPFaultInjection_Delay) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPFaultInjection_Delay

func (*HTTPFaultInjection_Delay) MarshalTo

func (m *HTTPFaultInjection_Delay) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Delay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay) ProtoMessage

func (*HTTPFaultInjection_Delay) ProtoMessage()

func (*HTTPFaultInjection_Delay) Reset

func (m *HTTPFaultInjection_Delay) Reset()

func (*HTTPFaultInjection_Delay) Size

func (m *HTTPFaultInjection_Delay) Size() (n int)

func (*HTTPFaultInjection_Delay) String

func (m *HTTPFaultInjection_Delay) String() string

func (*HTTPFaultInjection_Delay) Unmarshal

func (m *HTTPFaultInjection_Delay) Unmarshal(dAtA []byte) error

func (*HTTPFaultInjection_Delay) UnmarshalJSON

func (this *HTTPFaultInjection_Delay) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPFaultInjection_Delay

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_OneofWrappers

func (*HTTPFaultInjection_Delay) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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) MarshalTo

func (m *HTTPFaultInjection_Delay_ExponentialDelay) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay_ExponentialDelay) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Delay_ExponentialDelay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay_ExponentialDelay) Size

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) MarshalTo

func (m *HTTPFaultInjection_Delay_FixedDelay) MarshalTo(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay_FixedDelay) MarshalToSizedBuffer

func (m *HTTPFaultInjection_Delay_FixedDelay) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPFaultInjection_Delay_FixedDelay) Size

type HTTPMatchRequest

type HTTPMatchRequest struct {
	// The name assigned to a match. The match's name will be
	// concatenated with the parent route's name and will be logged in
	// the access logs for requests matching this route.
	Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"`
	// 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
	//
	// **Note:** Case-insensitive matching could be enabled via the
	// `ignore_uri_case` flag.
	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
	//
	// If the value is empty and only the name of header is specfied, presence of the header is checked.
	// **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 in the top-level `gateways` field, it must include the reserved gateway
	// `mesh` 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. Gateway names
	// in the top-level `gateways` field 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"`
	// Query parameters for matching.
	//
	// Ex:
	// - For a query parameter like "?key=true", the map key would be "key" and
	//   the string match could be defined as `exact: "true"`.
	// - For a query parameter like "?key", the map key would be "key" and the
	//   string match could be defined as `exact: ""`.
	// - For a query parameter like "?key=123", the map key would be "key" and the
	//   string match could be defined as `regex: "\d+$"`. Note that this
	//   configuration will only match values like "123" but not "a123" or "123a".
	//
	// **Note:** `prefix` matching is currently not supported.
	QueryParams map[string]*StringMatch `` /* 182-byte string literal not displayed */
	// Flag to specify whether the URI matching should be case-insensitive.
	//
	// **Note:** The case will be ignored only in the case of `exact` and `prefix`
	// URI matches.
	IgnoreUriCase bool `protobuf:"varint,10,opt,name=ignore_uri_case,json=ignoreUriCase,proto3" json:"ignore_uri_case,omitempty"`
	// withoutHeader has the same syntax with the header, but has opposite meaning.
	// If a header is matched with a matching rule among withoutHeader, the traffic becomes not matched one.
	WithoutHeaders map[string]*StringMatch `` /* 192-byte string literal not displayed */
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace      string   `protobuf:"bytes,13,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,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`.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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/"
    ignoreUriCase: true
  route:
  - destination:
      host: ratings.prod.svc.cluster.local

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata:

name: ratings-route

spec:

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

``` {{</tab>}} {{</tabset>}}

HTTPMatchRequest CANNOT be empty. **Note:** No regex string match can be set when delegate VirtualService is specified.

func (*HTTPMatchRequest) DeepCopy

func (in *HTTPMatchRequest) DeepCopy() *HTTPMatchRequest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPMatchRequest. Required by controller-gen.

func (*HTTPMatchRequest) DeepCopyInto

func (in *HTTPMatchRequest) DeepCopyInto(out *HTTPMatchRequest)

DeepCopyInto supports using HTTPMatchRequest within kubernetes types, where deepcopy-gen is used.

func (*HTTPMatchRequest) Descriptor

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

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) GetIgnoreUriCase

func (m *HTTPMatchRequest) GetIgnoreUriCase() bool

func (*HTTPMatchRequest) GetMethod

func (m *HTTPMatchRequest) GetMethod() *StringMatch

func (*HTTPMatchRequest) GetName

func (m *HTTPMatchRequest) GetName() string

func (*HTTPMatchRequest) GetPort

func (m *HTTPMatchRequest) GetPort() uint32

func (*HTTPMatchRequest) GetQueryParams

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

func (*HTTPMatchRequest) GetScheme

func (m *HTTPMatchRequest) GetScheme() *StringMatch

func (*HTTPMatchRequest) GetSourceLabels

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

func (*HTTPMatchRequest) GetSourceNamespace

func (m *HTTPMatchRequest) GetSourceNamespace() string

func (*HTTPMatchRequest) GetUri

func (m *HTTPMatchRequest) GetUri() *StringMatch

func (*HTTPMatchRequest) GetWithoutHeaders

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

func (*HTTPMatchRequest) Marshal

func (m *HTTPMatchRequest) Marshal() (dAtA []byte, err error)

func (*HTTPMatchRequest) MarshalJSON

func (this *HTTPMatchRequest) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPMatchRequest

func (*HTTPMatchRequest) MarshalTo

func (m *HTTPMatchRequest) MarshalTo(dAtA []byte) (int, error)

func (*HTTPMatchRequest) MarshalToSizedBuffer

func (m *HTTPMatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPMatchRequest) ProtoMessage

func (*HTTPMatchRequest) ProtoMessage()

func (*HTTPMatchRequest) Reset

func (m *HTTPMatchRequest) Reset()

func (*HTTPMatchRequest) Size

func (m *HTTPMatchRequest) Size() (n int)

func (*HTTPMatchRequest) String

func (m *HTTPMatchRequest) String() string

func (*HTTPMatchRequest) Unmarshal

func (m *HTTPMatchRequest) Unmarshal(dAtA []byte) error

func (*HTTPMatchRequest) UnmarshalJSON

func (this *HTTPMatchRequest) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPMatchRequest

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"`
	// On a redirect, Specifies the HTTP status code to use in the redirect
	// response. The default response code is MOVED_PERMANENTLY (301).
	RedirectCode         uint32   `protobuf:"varint,3,opt,name=redirect_code,json=redirectCode,proto3" json:"redirect_code,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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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
...

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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
...

``` {{</tab>}} {{</tabset>}}

func (*HTTPRedirect) DeepCopy

func (in *HTTPRedirect) DeepCopy() *HTTPRedirect

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRedirect. Required by controller-gen.

func (*HTTPRedirect) DeepCopyInto

func (in *HTTPRedirect) DeepCopyInto(out *HTTPRedirect)

DeepCopyInto supports using HTTPRedirect within kubernetes types, where deepcopy-gen is used.

func (*HTTPRedirect) Descriptor

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

func (*HTTPRedirect) GetAuthority

func (m *HTTPRedirect) GetAuthority() string

func (*HTTPRedirect) GetRedirectCode

func (m *HTTPRedirect) GetRedirectCode() uint32

func (*HTTPRedirect) GetUri

func (m *HTTPRedirect) GetUri() string

func (*HTTPRedirect) Marshal

func (m *HTTPRedirect) Marshal() (dAtA []byte, err error)

func (*HTTPRedirect) MarshalJSON

func (this *HTTPRedirect) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRedirect

func (*HTTPRedirect) MarshalTo

func (m *HTTPRedirect) MarshalTo(dAtA []byte) (int, error)

func (*HTTPRedirect) MarshalToSizedBuffer

func (m *HTTPRedirect) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPRedirect) ProtoMessage

func (*HTTPRedirect) ProtoMessage()

func (*HTTPRedirect) Reset

func (m *HTTPRedirect) Reset()

func (*HTTPRedirect) Size

func (m *HTTPRedirect) Size() (n int)

func (*HTTPRedirect) String

func (m *HTTPRedirect) String() string

func (*HTTPRedirect) Unmarshal

func (m *HTTPRedirect) Unmarshal(dAtA []byte) error

func (*HTTPRedirect) UnmarshalJSON

func (this *HTTPRedirect) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRedirect

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 {
	// Number of retries for a given request. The interval
	// between retries will be determined automatically (25ms+). Actual
	// number of retries attempted depends on the request `timeout` of the
	// [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute).
	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.
	// See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
	// and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
	RetryOn string `protobuf:"bytes,3,opt,name=retry_on,json=retryOn,proto3" json:"retry_on,omitempty"`
	// Flag to specify whether the retries should retry to other localities.
	// See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
	RetryRemoteLocalities *types.BoolValue `` /* 126-byte string literal not displayed */
	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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*HTTPRetry) DeepCopy

func (in *HTTPRetry) DeepCopy() *HTTPRetry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRetry. Required by controller-gen.

func (*HTTPRetry) DeepCopyInto

func (in *HTTPRetry) DeepCopyInto(out *HTTPRetry)

DeepCopyInto supports using HTTPRetry within kubernetes types, where deepcopy-gen is used.

func (*HTTPRetry) Descriptor

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

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) GetRetryRemoteLocalities

func (m *HTTPRetry) GetRetryRemoteLocalities() *types.BoolValue

func (*HTTPRetry) Marshal

func (m *HTTPRetry) Marshal() (dAtA []byte, err error)

func (*HTTPRetry) MarshalJSON

func (this *HTTPRetry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRetry

func (*HTTPRetry) MarshalTo

func (m *HTTPRetry) MarshalTo(dAtA []byte) (int, error)

func (*HTTPRetry) MarshalToSizedBuffer

func (m *HTTPRetry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPRetry) ProtoMessage

func (*HTTPRetry) ProtoMessage()

func (*HTTPRetry) Reset

func (m *HTTPRetry) Reset()

func (*HTTPRetry) Size

func (m *HTTPRetry) Size() (n int)

func (*HTTPRetry) String

func (m *HTTPRetry) String() string

func (*HTTPRetry) Unmarshal

func (m *HTTPRetry) Unmarshal(dAtA []byte) error

func (*HTTPRetry) UnmarshalJSON

func (this *HTTPRetry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRetry

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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*HTTPRewrite) DeepCopy

func (in *HTTPRewrite) DeepCopy() *HTTPRewrite

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRewrite. Required by controller-gen.

func (*HTTPRewrite) DeepCopyInto

func (in *HTTPRewrite) DeepCopyInto(out *HTTPRewrite)

DeepCopyInto supports using HTTPRewrite within kubernetes types, where deepcopy-gen is used.

func (*HTTPRewrite) Descriptor

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

func (*HTTPRewrite) GetAuthority

func (m *HTTPRewrite) GetAuthority() string

func (*HTTPRewrite) GetUri

func (m *HTTPRewrite) GetUri() string

func (*HTTPRewrite) Marshal

func (m *HTTPRewrite) Marshal() (dAtA []byte, err error)

func (*HTTPRewrite) MarshalJSON

func (this *HTTPRewrite) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRewrite

func (*HTTPRewrite) MarshalTo

func (m *HTTPRewrite) MarshalTo(dAtA []byte) (int, error)

func (*HTTPRewrite) MarshalToSizedBuffer

func (m *HTTPRewrite) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPRewrite) ProtoMessage

func (*HTTPRewrite) ProtoMessage()

func (*HTTPRewrite) Reset

func (m *HTTPRewrite) Reset()

func (*HTTPRewrite) Size

func (m *HTTPRewrite) Size() (n int)

func (*HTTPRewrite) String

func (m *HTTPRewrite) String() string

func (*HTTPRewrite) Unmarshal

func (m *HTTPRewrite) Unmarshal(dAtA []byte) error

func (*HTTPRewrite) UnmarshalJSON

func (this *HTTPRewrite) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRewrite

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 {
	// The name assigned to the route for debugging purposes. The
	// route's name will be concatenated with the match's name and will
	// be logged in the access logs for requests matching this
	// route/match.
	Name string `protobuf:"bytes,17,opt,name=name,proto3" json:"name,omitempty"`
	// 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"`
	// Delegate is used to specify the particular VirtualService which
	// can be used to define delegate HTTPRoute.
	// It can be set only when `Route` and `Redirect` are empty, and the route rules of the
	// delegate VirtualService will be merged with that in the current one.
	// **NOTE**:
	//    1. Only one level delegation is supported.
	//    2. The delegate's HTTPMatchRequest must be a strict subset of the root's,
	//       otherwise there is a conflict and the HTTPRoute will not take effect.
	Delegate *Delegate `protobuf:"bytes,20,opt,name=delegate,proto3" json:"delegate,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"`
	// 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"`
	// Percentage of the traffic to be mirrored by the `mirror` field.
	// Use of integer `mirror_percent` value is deprecated. Use the
	// double `mirror_percentage` field instead
	MirrorPercent *types.UInt32Value `protobuf:"bytes,18,opt,name=mirror_percent,json=mirrorPercent,proto3" json:"mirror_percent,omitempty"` // Deprecated: Do not use.
	// Percentage of the traffic to be mirrored by the `mirror` field.
	// If this field is absent, all the traffic (100%) will be mirrored.
	// Max value is 100.
	MirrorPercentage *Percent `protobuf:"bytes,19,opt,name=mirror_percentage,json=mirrorPercentage,proto3" json:"mirror_percentage,omitempty"`
	// Cross-Origin Resource Sharing policy (CORS). Refer to
	// [CORS](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"`
	// 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) DeepCopy

func (in *HTTPRoute) DeepCopy() *HTTPRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRoute. Required by controller-gen.

func (*HTTPRoute) DeepCopyInto

func (in *HTTPRoute) DeepCopyInto(out *HTTPRoute)

DeepCopyInto supports using HTTPRoute within kubernetes types, where deepcopy-gen is used.

func (*HTTPRoute) Descriptor

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

func (*HTTPRoute) GetCorsPolicy

func (m *HTTPRoute) GetCorsPolicy() *CorsPolicy

func (*HTTPRoute) GetDelegate

func (m *HTTPRoute) GetDelegate() *Delegate

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) GetMirrorPercent deprecated

func (m *HTTPRoute) GetMirrorPercent() *types.UInt32Value

Deprecated: Do not use.

func (*HTTPRoute) GetMirrorPercentage

func (m *HTTPRoute) GetMirrorPercentage() *Percent

func (*HTTPRoute) GetName

func (m *HTTPRoute) GetName() string

func (*HTTPRoute) GetRedirect

func (m *HTTPRoute) GetRedirect() *HTTPRedirect

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) Marshal

func (m *HTTPRoute) Marshal() (dAtA []byte, err error)

func (*HTTPRoute) MarshalJSON

func (this *HTTPRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRoute

func (*HTTPRoute) MarshalTo

func (m *HTTPRoute) MarshalTo(dAtA []byte) (int, error)

func (*HTTPRoute) MarshalToSizedBuffer

func (m *HTTPRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPRoute) ProtoMessage

func (*HTTPRoute) ProtoMessage()

func (*HTTPRoute) Reset

func (m *HTTPRoute) Reset()

func (*HTTPRoute) Size

func (m *HTTPRoute) Size() (n int)

func (*HTTPRoute) String

func (m *HTTPRoute) String() string

func (*HTTPRoute) Unmarshal

func (m *HTTPRoute) Unmarshal(dAtA []byte) error

func (*HTTPRoute) UnmarshalJSON

func (this *HTTPRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRoute

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 {
	// 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"`
	// 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"`
	// 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".

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

And the associated DestinationRule

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: reviews-destination

spec:

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

``` {{</tab>}} {{</tabset>}}

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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*HTTPRouteDestination) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPRouteDestination. Required by controller-gen.

func (*HTTPRouteDestination) DeepCopyInto

func (in *HTTPRouteDestination) DeepCopyInto(out *HTTPRouteDestination)

DeepCopyInto supports using HTTPRouteDestination within kubernetes types, where deepcopy-gen is used.

func (*HTTPRouteDestination) Descriptor

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

func (*HTTPRouteDestination) GetDestination

func (m *HTTPRouteDestination) GetDestination() *Destination

func (*HTTPRouteDestination) GetHeaders

func (m *HTTPRouteDestination) GetHeaders() *Headers

func (*HTTPRouteDestination) GetWeight

func (m *HTTPRouteDestination) GetWeight() int32

func (*HTTPRouteDestination) Marshal

func (m *HTTPRouteDestination) Marshal() (dAtA []byte, err error)

func (*HTTPRouteDestination) MarshalJSON

func (this *HTTPRouteDestination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for HTTPRouteDestination

func (*HTTPRouteDestination) MarshalTo

func (m *HTTPRouteDestination) MarshalTo(dAtA []byte) (int, error)

func (*HTTPRouteDestination) MarshalToSizedBuffer

func (m *HTTPRouteDestination) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HTTPRouteDestination) ProtoMessage

func (*HTTPRouteDestination) ProtoMessage()

func (*HTTPRouteDestination) Reset

func (m *HTTPRouteDestination) Reset()

func (*HTTPRouteDestination) Size

func (m *HTTPRouteDestination) Size() (n int)

func (*HTTPRouteDestination) String

func (m *HTTPRouteDestination) String() string

func (*HTTPRouteDestination) Unmarshal

func (m *HTTPRouteDestination) Unmarshal(dAtA []byte) error

func (*HTTPRouteDestination) UnmarshalJSON

func (this *HTTPRouteDestination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for HTTPRouteDestination

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:"-"`
}

func (*Headers) DeepCopy

func (in *Headers) DeepCopy() *Headers

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Headers. Required by controller-gen.

func (*Headers) DeepCopyInto

func (in *Headers) DeepCopyInto(out *Headers)

DeepCopyInto supports using Headers within kubernetes types, where deepcopy-gen is used.

func (*Headers) Descriptor

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

func (*Headers) GetRequest

func (m *Headers) GetRequest() *Headers_HeaderOperations

func (*Headers) GetResponse

func (m *Headers) GetResponse() *Headers_HeaderOperations

func (*Headers) Marshal

func (m *Headers) Marshal() (dAtA []byte, err error)

func (*Headers) MarshalJSON

func (this *Headers) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Headers

func (*Headers) MarshalTo

func (m *Headers) MarshalTo(dAtA []byte) (int, error)

func (*Headers) MarshalToSizedBuffer

func (m *Headers) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Headers) ProtoMessage

func (*Headers) ProtoMessage()

func (*Headers) Reset

func (m *Headers) Reset()

func (*Headers) Size

func (m *Headers) Size() (n int)

func (*Headers) String

func (m *Headers) String() string

func (*Headers) Unmarshal

func (m *Headers) Unmarshal(dAtA []byte) error

func (*Headers) UnmarshalJSON

func (this *Headers) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Headers

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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Headers_HeaderOperations. Required by controller-gen.

func (*Headers_HeaderOperations) DeepCopyInto

func (in *Headers_HeaderOperations) DeepCopyInto(out *Headers_HeaderOperations)

DeepCopyInto supports using Headers_HeaderOperations within kubernetes types, where deepcopy-gen is used.

func (*Headers_HeaderOperations) Descriptor

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

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) Marshal

func (m *Headers_HeaderOperations) Marshal() (dAtA []byte, err error)

func (*Headers_HeaderOperations) MarshalJSON

func (this *Headers_HeaderOperations) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Headers_HeaderOperations

func (*Headers_HeaderOperations) MarshalTo

func (m *Headers_HeaderOperations) MarshalTo(dAtA []byte) (int, error)

func (*Headers_HeaderOperations) MarshalToSizedBuffer

func (m *Headers_HeaderOperations) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Headers_HeaderOperations) ProtoMessage

func (*Headers_HeaderOperations) ProtoMessage()

func (*Headers_HeaderOperations) Reset

func (m *Headers_HeaderOperations) Reset()

func (*Headers_HeaderOperations) Size

func (m *Headers_HeaderOperations) Size() (n int)

func (*Headers_HeaderOperations) String

func (m *Headers_HeaderOperations) String() string

func (*Headers_HeaderOperations) Unmarshal

func (m *Headers_HeaderOperations) Unmarshal(dAtA []byte) error

func (*Headers_HeaderOperations) UnmarshalJSON

func (this *Headers_HeaderOperations) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Headers_HeaderOperations

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 {
	// 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"`
	// 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 automatically configure the defaults based on imported
	// services, the workload instances to which this configuration is applied to and
	// the captureMode. If captureMode is `NONE`, bind will default to
	// 127.0.0.1.
	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 must be DEFAULT or `NONE` for Unix domain socket binds.
	CaptureMode CaptureMode `` /* 137-byte string literal not displayed */
	// One or more service hosts exposed by the listener
	// in `namespace/dnsName` format. Services in the specified namespace
	// matching `dnsName` will be exposed.
	// The corresponding service can be a service in the service registry
	// (e.g., a Kubernetes or cloud foundry service) or a service specified
	// using a `ServiceEntry` or `VirtualService` configuration. Any
	// associated `DestinationRule` in the same namespace will also be used.
	//
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g., `prod/*.example.com`).
	// Set the `dnsName` to `*` to select all services from the specified namespace
	// (e.g., `prod/*`).
	//
	// The `namespace` can be set to `*`, `.`, or `~`, representing any, the current,
	// or no namespace, respectively. For example, `*/foo.example.com` selects the
	// service from any available namespace while `./foo.example.com` only selects
	// the service from the namespace of the sidecar. If a host is set to `*/*`,
	// Istio will configure the sidecar to be able to reach every service in the
	// mesh that is exported to the sidecar's namespace. The value `~/*` can be used
	// to completely trim the configuration for sidecars that simply receive traffic
	// and respond, but make no outbound connections of their own.
	//
	// NOTE: Only services and configuration artifacts exported to the sidecar's
	// namespace (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will
	// not be available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	//
	// **WARNING:** The list of egress hosts in a `Sidecar` must also include
	// the Mixer control plane services if they are enabled. Envoy will not
	// be able to reach them otherwise. For example, add host
	// `istio-system/istio-telemetry.istio-system.svc.cluster.local` if telemetry
	// is enabled, `istio-system/istio-policy.istio-system.svc.cluster.local` if
	// policy is enabled, or add `istio-system/*` to allow all services in the
	// `istio-system` namespace. This requirement is temporary and will be removed
	// in a future Istio release.
	Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// $hide_from_docs
	// TLS settings to be used by the sidecar (server) when receiving
	// traffic from the workload (client) on the
	// localhost. Overrides the `localhost` level `serverTls` settings.
	//
	// **NOTE**: SIMPLE and MUTUAL are the only valid TLS
	// modes. `httpsRedirect` and `credentialName` (for fetching
	// certificates from Kubernetes secrets) are not valid. All
	// certificates must be mounted as files inside the sidecar
	// container.
	LocalhostServerTls   *ServerTLSSettings `protobuf:"bytes,5,opt,name=localhost_server_tls,json=localhostServerTls,proto3" json:"localhost_server_tls,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 instance.

func (*IstioEgressListener) DeepCopy

func (in *IstioEgressListener) DeepCopy() *IstioEgressListener

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioEgressListener. Required by controller-gen.

func (*IstioEgressListener) DeepCopyInto

func (in *IstioEgressListener) DeepCopyInto(out *IstioEgressListener)

DeepCopyInto supports using IstioEgressListener within kubernetes types, where deepcopy-gen is used.

func (*IstioEgressListener) Descriptor

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

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) GetLocalhostServerTls

func (m *IstioEgressListener) GetLocalhostServerTls() *ServerTLSSettings

func (*IstioEgressListener) GetPort

func (m *IstioEgressListener) GetPort() *Port

func (*IstioEgressListener) Marshal

func (m *IstioEgressListener) Marshal() (dAtA []byte, err error)

func (*IstioEgressListener) MarshalJSON

func (this *IstioEgressListener) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioEgressListener

func (*IstioEgressListener) MarshalTo

func (m *IstioEgressListener) MarshalTo(dAtA []byte) (int, error)

func (*IstioEgressListener) MarshalToSizedBuffer

func (m *IstioEgressListener) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IstioEgressListener) ProtoMessage

func (*IstioEgressListener) ProtoMessage()

func (*IstioEgressListener) Reset

func (m *IstioEgressListener) Reset()

func (*IstioEgressListener) Size

func (m *IstioEgressListener) Size() (n int)

func (*IstioEgressListener) String

func (m *IstioEgressListener) String() string

func (*IstioEgressListener) Unmarshal

func (m *IstioEgressListener) Unmarshal(dAtA []byte) error

func (*IstioEgressListener) UnmarshalJSON

func (this *IstioEgressListener) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioEgressListener

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 {
	// The port associated with the listener.
	Port *Port `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	// The IP to which the listener should be bound. Must be in the
	// format `x.x.x.x`. Unix domain socket addresses are not allowed in
	// the bind field for ingress listeners. If omitted, Istio will
	// automatically configure the defaults based on imported services
	// and the workload instances to which this configuration is applied
	// to.
	Bind string `protobuf:"bytes,2,opt,name=bind,proto3" json:"bind,omitempty"`
	// The captureMode option dictates how traffic to the listener is
	// expected to be captured (or not).
	CaptureMode CaptureMode `` /* 137-byte string literal not displayed */
	// The loopback IP endpoint or Unix domain socket to which
	// traffic should be forwarded to. This configuration can be used to
	// redirect traffic arriving at the bind `IP:Port` on the sidecar to a `localhost:port`
	// or Unix domain socket where the application workload instance 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"`
	// $hide_from_docs
	// TLS settings to be used by the sidecar (client) when forwarding
	// traffic from the sidecar to the workload (server) on the
	// localhost. Overrides the `localhost` level `clientTls` settings.
	//
	// **NOTE**: DISABLE, SIMPLE and MUTUAL are the only valid TLS modes.
	LocalhostClientTls   *ClientTLSSettings `protobuf:"bytes,6,opt,name=localhost_client_tls,json=localhostClientTls,proto3" json:"localhost_client_tls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

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

func (*IstioIngressListener) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IstioIngressListener. Required by controller-gen.

func (*IstioIngressListener) DeepCopyInto

func (in *IstioIngressListener) DeepCopyInto(out *IstioIngressListener)

DeepCopyInto supports using IstioIngressListener within kubernetes types, where deepcopy-gen is used.

func (*IstioIngressListener) Descriptor

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

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) GetLocalhostClientTls

func (m *IstioIngressListener) GetLocalhostClientTls() *ClientTLSSettings

func (*IstioIngressListener) GetPort

func (m *IstioIngressListener) GetPort() *Port

func (*IstioIngressListener) Marshal

func (m *IstioIngressListener) Marshal() (dAtA []byte, err error)

func (*IstioIngressListener) MarshalJSON

func (this *IstioIngressListener) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for IstioIngressListener

func (*IstioIngressListener) MarshalTo

func (m *IstioIngressListener) MarshalTo(dAtA []byte) (int, error)

func (*IstioIngressListener) MarshalToSizedBuffer

func (m *IstioIngressListener) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*IstioIngressListener) ProtoMessage

func (*IstioIngressListener) ProtoMessage()

func (*IstioIngressListener) Reset

func (m *IstioIngressListener) Reset()

func (*IstioIngressListener) Size

func (m *IstioIngressListener) Size() (n int)

func (*IstioIngressListener) String

func (m *IstioIngressListener) String() string

func (*IstioIngressListener) Unmarshal

func (m *IstioIngressListener) Unmarshal(dAtA []byte) error

func (*IstioIngressListener) UnmarshalJSON

func (this *IstioIngressListener) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for IstioIngressListener

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 in the top-level `gateways` field, 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. Gateway names
	// in the top-level `gateways` field 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"`
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace      string   `protobuf:"bytes,6,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,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) DeepCopy

func (in *L4MatchAttributes) DeepCopy() *L4MatchAttributes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L4MatchAttributes. Required by controller-gen.

func (*L4MatchAttributes) DeepCopyInto

func (in *L4MatchAttributes) DeepCopyInto(out *L4MatchAttributes)

DeepCopyInto supports using L4MatchAttributes within kubernetes types, where deepcopy-gen is used.

func (*L4MatchAttributes) Descriptor

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

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) GetSourceNamespace

func (m *L4MatchAttributes) GetSourceNamespace() string

func (*L4MatchAttributes) GetSourceSubnet

func (m *L4MatchAttributes) GetSourceSubnet() string

func (*L4MatchAttributes) Marshal

func (m *L4MatchAttributes) Marshal() (dAtA []byte, err error)

func (*L4MatchAttributes) MarshalJSON

func (this *L4MatchAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for L4MatchAttributes

func (*L4MatchAttributes) MarshalTo

func (m *L4MatchAttributes) MarshalTo(dAtA []byte) (int, error)

func (*L4MatchAttributes) MarshalToSizedBuffer

func (m *L4MatchAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*L4MatchAttributes) ProtoMessage

func (*L4MatchAttributes) ProtoMessage()

func (*L4MatchAttributes) Reset

func (m *L4MatchAttributes) Reset()

func (*L4MatchAttributes) Size

func (m *L4MatchAttributes) Size() (n int)

func (*L4MatchAttributes) String

func (m *L4MatchAttributes) String() string

func (*L4MatchAttributes) Unmarshal

func (m *L4MatchAttributes) Unmarshal(dAtA []byte) error

func (*L4MatchAttributes) UnmarshalJSON

func (this *L4MatchAttributes) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for L4MatchAttributes

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"`
	// Locality load balancer settings, this will override mesh wide settings in entirety, meaning no merging would be performed
	// between this object and the object one in MeshConfig
	LocalityLbSetting    *LocalityLoadBalancerSetting `protobuf:"bytes,3,opt,name=locality_lb_setting,json=localityLbSetting,proto3" json:"locality_lb_setting,omitempty"`
	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/upstream/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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata:

name: bookinfo-ratings

spec:

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

``` {{</tab>}} {{</tabset>}}

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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml

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

``` {{</tab>}} {{</tabset>}}

func (*LoadBalancerSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings. Required by controller-gen.

func (*LoadBalancerSettings) DeepCopyInto

func (in *LoadBalancerSettings) DeepCopyInto(out *LoadBalancerSettings)

DeepCopyInto supports using LoadBalancerSettings within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings) Descriptor

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

func (*LoadBalancerSettings) GetConsistentHash

func (*LoadBalancerSettings) GetLbPolicy

func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy

func (*LoadBalancerSettings) GetLocalityLbSetting

func (m *LoadBalancerSettings) GetLocalityLbSetting() *LocalityLoadBalancerSetting

func (*LoadBalancerSettings) GetSimple

func (*LoadBalancerSettings) Marshal

func (m *LoadBalancerSettings) Marshal() (dAtA []byte, err error)

func (*LoadBalancerSettings) MarshalJSON

func (this *LoadBalancerSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoadBalancerSettings

func (*LoadBalancerSettings) MarshalTo

func (m *LoadBalancerSettings) MarshalTo(dAtA []byte) (int, error)

func (*LoadBalancerSettings) MarshalToSizedBuffer

func (m *LoadBalancerSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings) ProtoMessage

func (*LoadBalancerSettings) ProtoMessage()

func (*LoadBalancerSettings) Reset

func (m *LoadBalancerSettings) Reset()

func (*LoadBalancerSettings) Size

func (m *LoadBalancerSettings) Size() (n int)

func (*LoadBalancerSettings) String

func (m *LoadBalancerSettings) String() string

func (*LoadBalancerSettings) Unmarshal

func (m *LoadBalancerSettings) Unmarshal(dAtA []byte) error

func (*LoadBalancerSettings) UnmarshalJSON

func (this *LoadBalancerSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings

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_OneofWrappers

func (*LoadBalancerSettings) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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) MarshalTo

func (m *LoadBalancerSettings_ConsistentHash) MarshalTo(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHash) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHash) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHash) Size

type LoadBalancerSettings_ConsistentHashLB

type LoadBalancerSettings_ConsistentHashLB struct {
	// The hash key to use.
	//
	// Types that are valid to be assigned to HashKey:
	//	*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName
	//	*LoadBalancerSettings_ConsistentHashLB_HttpCookie
	//	*LoadBalancerSettings_ConsistentHashLB_UseSourceIp
	//	*LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName
	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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB) Descriptor

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

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) GetHttpQueryParameterName

func (m *LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName() string

func (*LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize

func (m *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64

func (*LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp

func (m *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool

func (*LoadBalancerSettings_ConsistentHashLB) Marshal

func (m *LoadBalancerSettings_ConsistentHashLB) Marshal() (dAtA []byte, err error)

func (*LoadBalancerSettings_ConsistentHashLB) MarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB

func (*LoadBalancerSettings_ConsistentHashLB) MarshalTo

func (m *LoadBalancerSettings_ConsistentHashLB) MarshalTo(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHashLB) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()

func (*LoadBalancerSettings_ConsistentHashLB) Reset

func (*LoadBalancerSettings_ConsistentHashLB) Size

func (*LoadBalancerSettings_ConsistentHashLB) String

func (*LoadBalancerSettings_ConsistentHashLB) Unmarshal

func (m *LoadBalancerSettings_ConsistentHashLB) Unmarshal(dAtA []byte) error

func (*LoadBalancerSettings_ConsistentHashLB) UnmarshalJSON

func (this *LoadBalancerSettings_ConsistentHashLB) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB

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_OneofWrappers

func (*LoadBalancerSettings_ConsistentHashLB) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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 {
	// 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"`
	// Lifetime of the cookie.
	Ttl                  *types.Duration `protobuf:"bytes,3,opt,name=ttl,proto3" 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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoadBalancerSettings_ConsistentHashLB_HTTPCookie. Required by controller-gen.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) DeepCopyInto

DeepCopyInto supports using LoadBalancerSettings_ConsistentHashLB_HTTPCookie within kubernetes types, where deepcopy-gen is used.

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Marshal

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Marshal() (dAtA []byte, err error)

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalJSON

MarshalJSON is a custom marshaler for LoadBalancerSettings_ConsistentHashLB_HTTPCookie

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Size

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Unmarshal

func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) UnmarshalJSON

UnmarshalJSON is a custom unmarshaler for LoadBalancerSettings_ConsistentHashLB_HTTPCookie

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) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHashLB_HttpCookie) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB_HttpCookie) Size

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) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB_HttpHeaderName) Size

type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName

type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName struct {
	HttpQueryParameterName string `protobuf:"bytes,5,opt,name=http_query_parameter_name,json=httpQueryParameterName,proto3,oneof"`
}

func (*LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) MarshalToSizedBuffer

func (*LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName) Size

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) MarshalTo

func (*LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalToSizedBuffer

func (m *LoadBalancerSettings_ConsistentHashLB_UseSourceIp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_ConsistentHashLB_UseSourceIp) Size

type LoadBalancerSettings_Simple

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

func (*LoadBalancerSettings_Simple) MarshalTo

func (m *LoadBalancerSettings_Simple) MarshalTo(dAtA []byte) (int, error)

func (*LoadBalancerSettings_Simple) MarshalToSizedBuffer

func (m *LoadBalancerSettings_Simple) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LoadBalancerSettings_Simple) Size

func (m *LoadBalancerSettings_Simple) Size() (n int)

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 Localhost

type Localhost struct {
	// TLS settings to be used by the sidecar (client) when forwarding
	// traffic from the sidecar to the workload it is attached to
	// (server) on the localhost.
	//
	// **NOTE**: DISABLE, SIMPLE and MUTUAL are the only valid TLS modes.
	ClientTls *ClientTLSSettings `protobuf:"bytes,1,opt,name=client_tls,json=clientTls,proto3" json:"client_tls,omitempty"`
	// TLS settings to be used by the sidecar (server) when receiving
	// traffic from the workload (client) on the localhost.
	//
	// **NOTE**: SIMPLE and MUTUAL are the only valid TLS
	// modes. `httpsRedirect` and `credentialName` (for fetching
	// certificates from Kubernetes secrets) are not valid. All
	// certificates must be mounted as files inside the sidecar
	// container.
	ServerTls            *ServerTLSSettings `protobuf:"bytes,2,opt,name=server_tls,json=serverTls,proto3" json:"server_tls,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

$hide_from_docs `Localhost` describes the sidecar settings related to the communication between the sidecar and the workload it is attached to in a Kubernetes Pod or a VM. These settings apply by default to all ingress and egress listeners in a sidecar unless overridden.

The following example configures the sidecars on pods of the reviews service to use TLS for traffic to/from the sidecar to the workload in the same pod, assuming the appropriate certificates are mounted in the sidecar.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```yaml apiVersion: networking.istio.io/v1alpha3 kind: Sidecar metadata:

name: reviews-localhost-tls
namespace: prod-us1

spec:

workloadSelector:
  labels:
    app: reviews
localhost:
  clientTls:
    mode: SIMPLE
    caCertificates: /etc/legacy/ca.pem
  serverTls:
    mode: SIMPLE
    serverCertificate: /etc/legacy/server.pem
    privateKey: /etc/legacy/private.pem
egress:
- hosts:
  - "./"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Sidecar metadata:

name: reviews-localhost-tls
namespace: prod-us1

spec:

workloadSelector:
  labels:
    app: reviews
localhost:
  clientTls:
    mode: SIMPLE
    caCertificates: /etc/legacy/ca.pem
  serverTls:
    mode: SIMPLE
    serverCertificate: /etc/legacy/server.pem
    privateKey: /etc/legacy/private.pem
egress:
- hosts:
  - "./"

``` {{</tab>}} {{</tabset>}}

func (*Localhost) DeepCopy

func (in *Localhost) DeepCopy() *Localhost

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Localhost. Required by controller-gen.

func (*Localhost) DeepCopyInto

func (in *Localhost) DeepCopyInto(out *Localhost)

DeepCopyInto supports using Localhost within kubernetes types, where deepcopy-gen is used.

func (*Localhost) Descriptor

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

func (*Localhost) GetClientTls

func (m *Localhost) GetClientTls() *ClientTLSSettings

func (*Localhost) GetServerTls

func (m *Localhost) GetServerTls() *ServerTLSSettings

func (*Localhost) Marshal

func (m *Localhost) Marshal() (dAtA []byte, err error)

func (*Localhost) MarshalJSON

func (this *Localhost) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Localhost

func (*Localhost) MarshalTo

func (m *Localhost) MarshalTo(dAtA []byte) (int, error)

func (*Localhost) MarshalToSizedBuffer

func (m *Localhost) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Localhost) ProtoMessage

func (*Localhost) ProtoMessage()

func (*Localhost) Reset

func (m *Localhost) Reset()

func (*Localhost) Size

func (m *Localhost) Size() (n int)

func (*Localhost) String

func (m *Localhost) String() string

func (*Localhost) Unmarshal

func (m *Localhost) Unmarshal(dAtA []byte) error

func (*Localhost) UnmarshalJSON

func (this *Localhost) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Localhost

func (*Localhost) XXX_DiscardUnknown

func (m *Localhost) XXX_DiscardUnknown()

func (*Localhost) XXX_Marshal

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

func (*Localhost) XXX_Merge

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

func (*Localhost) XXX_Size

func (m *Localhost) XXX_Size() int

func (*Localhost) XXX_Unmarshal

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

type LocalityLoadBalancerSetting

type LocalityLoadBalancerSetting struct {
	// Optional: only one of distribute or failover can be set.
	// Explicitly specify loadbalancing weight across different zones and geographical locations.
	// Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight)
	// If empty, the locality weight is set according to the endpoints number within it.
	Distribute []*LocalityLoadBalancerSetting_Distribute `protobuf:"bytes,1,rep,name=distribute,proto3" json:"distribute,omitempty"`
	// Optional: only failover or distribute can be set.
	// Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy.
	// Should be used together with OutlierDetection to detect unhealthy endpoints.
	// Note: if no OutlierDetection specified, this will not take effect.
	Failover []*LocalityLoadBalancerSetting_Failover `protobuf:"bytes,2,rep,name=failover,proto3" json:"failover,omitempty"`
	// enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.
	// e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is.
	Enabled              *types.BoolValue `protobuf:"bytes,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Locality-weighted load balancing allows administrators to control the distribution of traffic to endpoints based on the localities of where the traffic originates and where it will terminate. These localities are specified using arbitrary labels that designate a hierarchy of localities in {region}/{zone}/{sub-zone} form. For additional detail refer to [Locality Weight](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) The following example shows how to setup locality weights mesh-wide.

Given a mesh with workloads and their service deployed to "us-west/zone1/*" and "us-west/zone2/*". This example specifies that when traffic accessing a service originates from workloads in "us-west/zone1/*", 80% of the traffic will be sent to endpoints in "us-west/zone1/*", i.e the same zone, and the remaining 20% will go to endpoints in "us-west/zone2/*". This setup is intended to favor routing traffic to endpoints in the same locality. A similar setting is specified for traffic originating in "us-west/zone2/*".

```yaml

distribute:
  - from: us-west/zone1/*
    to:
      "us-west/zone1/*": 80
      "us-west/zone2/*": 20
  - from: us-west/zone2/*
    to:
      "us-west/zone1/*": 20
      "us-west/zone2/*": 80

```

If the goal of the operator is not to distribute load across zones and regions but rather to restrict the regionality of failover to meet other operational requirements an operator can set a 'failover' policy instead of a 'distribute' policy.

The following example sets up a locality failover policy for regions. Assume a service resides in zones within us-east, us-west & eu-west this example specifies that when endpoints within us-east become unhealthy traffic should failover to endpoints in any zone or sub-zone within eu-west and similarly us-west should failover to us-east.

```yaml

failover:
  - from: us-east
    to: eu-west
  - from: us-west
    to: us-east

``` Locality load balancing settings.

func (*LocalityLoadBalancerSetting) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting. Required by controller-gen.

func (*LocalityLoadBalancerSetting) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting) Descriptor

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

func (*LocalityLoadBalancerSetting) GetDistribute

func (*LocalityLoadBalancerSetting) GetEnabled

func (m *LocalityLoadBalancerSetting) GetEnabled() *types.BoolValue

func (*LocalityLoadBalancerSetting) GetFailover

func (*LocalityLoadBalancerSetting) Marshal

func (m *LocalityLoadBalancerSetting) Marshal() (dAtA []byte, err error)

func (*LocalityLoadBalancerSetting) MarshalJSON

func (this *LocalityLoadBalancerSetting) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting

func (*LocalityLoadBalancerSetting) MarshalTo

func (m *LocalityLoadBalancerSetting) MarshalTo(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting) MarshalToSizedBuffer

func (m *LocalityLoadBalancerSetting) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting) ProtoMessage

func (*LocalityLoadBalancerSetting) ProtoMessage()

func (*LocalityLoadBalancerSetting) Reset

func (m *LocalityLoadBalancerSetting) Reset()

func (*LocalityLoadBalancerSetting) Size

func (m *LocalityLoadBalancerSetting) Size() (n int)

func (*LocalityLoadBalancerSetting) String

func (m *LocalityLoadBalancerSetting) String() string

func (*LocalityLoadBalancerSetting) Unmarshal

func (m *LocalityLoadBalancerSetting) Unmarshal(dAtA []byte) error

func (*LocalityLoadBalancerSetting) UnmarshalJSON

func (this *LocalityLoadBalancerSetting) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting

func (*LocalityLoadBalancerSetting) XXX_DiscardUnknown

func (m *LocalityLoadBalancerSetting) XXX_DiscardUnknown()

func (*LocalityLoadBalancerSetting) XXX_Marshal

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

func (*LocalityLoadBalancerSetting) XXX_Merge

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

func (*LocalityLoadBalancerSetting) XXX_Size

func (m *LocalityLoadBalancerSetting) XXX_Size() int

func (*LocalityLoadBalancerSetting) XXX_Unmarshal

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

type LocalityLoadBalancerSetting_Distribute

type LocalityLoadBalancerSetting_Distribute struct {
	// Originating locality, '/' separated, e.g. 'region/zone/sub_zone'.
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Map of upstream localities to traffic distribution weights. The sum of
	// all weights should be == 100. Any locality not assigned a weight will
	// receive no traffic.
	To                   map[string]uint32 `` /* 146-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

Describes how traffic originating in the 'from' zone or sub-zone is distributed over a set of 'to' zones. Syntax for specifying a zone is {region}/{zone}/{sub-zone} and terminal wildcards are allowed on any segment of the specification. Examples: * - matches all localities us-west/* - all zones and sub-zones within the us-west region us-west/zone-1/* - all sub-zones within us-west/zone-1

func (*LocalityLoadBalancerSetting_Distribute) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Distribute. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Distribute) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting_Distribute within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting_Distribute) Descriptor

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

func (*LocalityLoadBalancerSetting_Distribute) GetFrom

func (*LocalityLoadBalancerSetting_Distribute) GetTo

func (*LocalityLoadBalancerSetting_Distribute) Marshal

func (m *LocalityLoadBalancerSetting_Distribute) Marshal() (dAtA []byte, err error)

func (*LocalityLoadBalancerSetting_Distribute) MarshalJSON

func (this *LocalityLoadBalancerSetting_Distribute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting_Distribute

func (*LocalityLoadBalancerSetting_Distribute) MarshalTo

func (m *LocalityLoadBalancerSetting_Distribute) MarshalTo(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting_Distribute) MarshalToSizedBuffer

func (m *LocalityLoadBalancerSetting_Distribute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting_Distribute) ProtoMessage

func (*LocalityLoadBalancerSetting_Distribute) Reset

func (*LocalityLoadBalancerSetting_Distribute) Size

func (*LocalityLoadBalancerSetting_Distribute) String

func (*LocalityLoadBalancerSetting_Distribute) Unmarshal

func (m *LocalityLoadBalancerSetting_Distribute) Unmarshal(dAtA []byte) error

func (*LocalityLoadBalancerSetting_Distribute) UnmarshalJSON

func (this *LocalityLoadBalancerSetting_Distribute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting_Distribute

func (*LocalityLoadBalancerSetting_Distribute) XXX_DiscardUnknown

func (m *LocalityLoadBalancerSetting_Distribute) XXX_DiscardUnknown()

func (*LocalityLoadBalancerSetting_Distribute) XXX_Marshal

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

func (*LocalityLoadBalancerSetting_Distribute) XXX_Merge

func (*LocalityLoadBalancerSetting_Distribute) XXX_Size

func (*LocalityLoadBalancerSetting_Distribute) XXX_Unmarshal

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

type LocalityLoadBalancerSetting_Failover

type LocalityLoadBalancerSetting_Failover struct {
	// Originating region.
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	// Destination region the traffic will fail over to when endpoints in
	// the 'from' region becomes unhealthy.
	To                   string   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Specify the traffic failover policy across regions. Since zone and sub-zone failover is supported by default this only needs to be specified for regions when the operator needs to constrain traffic failover so that the default behavior of failing over to any endpoint globally does not apply. This is useful when failing over traffic across regions would not improve service health or may need to be restricted for other reasons like regulatory controls.

func (*LocalityLoadBalancerSetting_Failover) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalityLoadBalancerSetting_Failover. Required by controller-gen.

func (*LocalityLoadBalancerSetting_Failover) DeepCopyInto

DeepCopyInto supports using LocalityLoadBalancerSetting_Failover within kubernetes types, where deepcopy-gen is used.

func (*LocalityLoadBalancerSetting_Failover) Descriptor

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

func (*LocalityLoadBalancerSetting_Failover) GetFrom

func (*LocalityLoadBalancerSetting_Failover) GetTo

func (*LocalityLoadBalancerSetting_Failover) Marshal

func (m *LocalityLoadBalancerSetting_Failover) Marshal() (dAtA []byte, err error)

func (*LocalityLoadBalancerSetting_Failover) MarshalJSON

func (this *LocalityLoadBalancerSetting_Failover) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for LocalityLoadBalancerSetting_Failover

func (*LocalityLoadBalancerSetting_Failover) MarshalTo

func (m *LocalityLoadBalancerSetting_Failover) MarshalTo(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting_Failover) MarshalToSizedBuffer

func (m *LocalityLoadBalancerSetting_Failover) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LocalityLoadBalancerSetting_Failover) ProtoMessage

func (*LocalityLoadBalancerSetting_Failover) ProtoMessage()

func (*LocalityLoadBalancerSetting_Failover) Reset

func (*LocalityLoadBalancerSetting_Failover) Size

func (*LocalityLoadBalancerSetting_Failover) String

func (*LocalityLoadBalancerSetting_Failover) Unmarshal

func (m *LocalityLoadBalancerSetting_Failover) Unmarshal(dAtA []byte) error

func (*LocalityLoadBalancerSetting_Failover) UnmarshalJSON

func (this *LocalityLoadBalancerSetting_Failover) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for LocalityLoadBalancerSetting_Failover

func (*LocalityLoadBalancerSetting_Failover) XXX_DiscardUnknown

func (m *LocalityLoadBalancerSetting_Failover) XXX_DiscardUnknown()

func (*LocalityLoadBalancerSetting_Failover) XXX_Marshal

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

func (*LocalityLoadBalancerSetting_Failover) XXX_Merge

func (*LocalityLoadBalancerSetting_Failover) XXX_Size

func (*LocalityLoadBalancerSetting_Failover) XXX_Unmarshal

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

type OutboundTrafficPolicy

type OutboundTrafficPolicy struct {
	Mode OutboundTrafficPolicy_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=istio.networking.v1beta1.OutboundTrafficPolicy_Mode" json:"mode,omitempty"`
	// Specifies the details of the egress proxy to which unknown
	// traffic should be forwarded to from the sidecar. Valid only if
	// the mode is set to ALLOW_ANY. If not specified when the mode is
	// ALLOW_ANY, the sidecar will send the unknown traffic directly to
	// the IP requested by the application.
	//
	// ** NOTE 1**: The specified egress host must be imported in the
	// egress section for the traffic forwarding to work.
	//
	// ** NOTE 2**: An Envoy based egress gateway is unlikely to be able
	// to handle plain text TCP connections forwarded from the sidecar.
	// Envoy's dynamic forward proxy can handle only HTTP and TLS
	// connections.
	// $hide_from_docs
	EgressProxy          *Destination `protobuf:"bytes,2,opt,name=egress_proxy,json=egressProxy,proto3" json:"egress_proxy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

`OutboundTrafficPolicy` sets the default behavior of the sidecar for handling outbound traffic from the application. If your application uses one or more external services that are not known apriori, setting the policy to `ALLOW_ANY` will cause the sidecars to route any unknown traffic originating from the application to its requested destination. Users are strongly encouraged to use `ServiceEntry` configurations to explicitly declare any external dependencies, instead of using `ALLOW_ANY`, so that traffic to these services can be monitored.

func (*OutboundTrafficPolicy) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutboundTrafficPolicy. Required by controller-gen.

func (*OutboundTrafficPolicy) DeepCopyInto

func (in *OutboundTrafficPolicy) DeepCopyInto(out *OutboundTrafficPolicy)

DeepCopyInto supports using OutboundTrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*OutboundTrafficPolicy) Descriptor

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

func (*OutboundTrafficPolicy) GetEgressProxy

func (m *OutboundTrafficPolicy) GetEgressProxy() *Destination

func (*OutboundTrafficPolicy) GetMode

func (*OutboundTrafficPolicy) Marshal

func (m *OutboundTrafficPolicy) Marshal() (dAtA []byte, err error)

func (*OutboundTrafficPolicy) MarshalJSON

func (this *OutboundTrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for OutboundTrafficPolicy

func (*OutboundTrafficPolicy) MarshalTo

func (m *OutboundTrafficPolicy) MarshalTo(dAtA []byte) (int, error)

func (*OutboundTrafficPolicy) MarshalToSizedBuffer

func (m *OutboundTrafficPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OutboundTrafficPolicy) ProtoMessage

func (*OutboundTrafficPolicy) ProtoMessage()

func (*OutboundTrafficPolicy) Reset

func (m *OutboundTrafficPolicy) Reset()

func (*OutboundTrafficPolicy) Size

func (m *OutboundTrafficPolicy) Size() (n int)

func (*OutboundTrafficPolicy) String

func (m *OutboundTrafficPolicy) String() string

func (*OutboundTrafficPolicy) Unmarshal

func (m *OutboundTrafficPolicy) Unmarshal(dAtA []byte) error

func (*OutboundTrafficPolicy) UnmarshalJSON

func (this *OutboundTrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for OutboundTrafficPolicy

func (*OutboundTrafficPolicy) XXX_DiscardUnknown

func (m *OutboundTrafficPolicy) XXX_DiscardUnknown()

func (*OutboundTrafficPolicy) XXX_Marshal

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

func (*OutboundTrafficPolicy) XXX_Merge

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

func (*OutboundTrafficPolicy) XXX_Size

func (m *OutboundTrafficPolicy) XXX_Size() int

func (*OutboundTrafficPolicy) XXX_Unmarshal

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

type OutboundTrafficPolicy_Mode

type OutboundTrafficPolicy_Mode int32
const (
	// Outbound traffic will be restricted to services defined in the
	// service registry as well as those defined through `ServiceEntry` configurations.
	OutboundTrafficPolicy_REGISTRY_ONLY OutboundTrafficPolicy_Mode = 0
	// Outbound traffic to unknown destinations will be allowed, in case
	// there are no services or `ServiceEntry` configurations for the destination port.
	OutboundTrafficPolicy_ALLOW_ANY OutboundTrafficPolicy_Mode = 1
)

func (OutboundTrafficPolicy_Mode) EnumDescriptor

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

func (OutboundTrafficPolicy_Mode) 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.
	// $hide_from_docs
	ConsecutiveErrors int32 `protobuf:"varint,1,opt,name=consecutive_errors,json=consecutiveErrors,proto3" json:"consecutive_errors,omitempty"` // Deprecated: Do not use.
	// Number of gateway errors before a host is ejected from the connection pool.
	// When the upstream host is accessed over HTTP, a 502, 503, or 504 return
	// code qualifies as a gateway error. When the upstream host is accessed over
	// an opaque TCP connection, connect timeouts and connection error/failure
	// events qualify as a gateway error.
	// This feature is disabled by default or when set to the value 0.
	//
	// Note that consecutive_gateway_errors and consecutive_5xx_errors can be
	// used separately or together. Because the errors counted by
	// consecutive_gateway_errors are also included in consecutive_5xx_errors,
	// if the value of consecutive_gateway_errors is greater than or equal to
	// the value of consecutive_5xx_errors, consecutive_gateway_errors will have
	// no effect.
	ConsecutiveGatewayErrors *types.UInt32Value `` /* 135-byte string literal not displayed */
	// Number of 5xx errors before a host is ejected from the connection pool.
	// When the upstream host is accessed over an opaque TCP connection, connect
	// timeouts, connection error/failure and request failure events qualify as a
	// 5xx error.
	// This feature defaults to 5 but can be disabled by setting the value to 0.
	//
	// Note that consecutive_gateway_errors and consecutive_5xx_errors can be
	// used separately or together. Because the errors counted by
	// consecutive_gateway_errors are also included in consecutive_5xx_errors,
	// if the value of consecutive_gateway_errors is greater than or equal to
	// the value of consecutive_5xx_errors, consecutive_gateway_errors will have
	// no effect.
	Consecutive_5XxErrors *types.UInt32Value `protobuf:"bytes,7,opt,name=consecutive_5xx_errors,json=consecutive5xxErrors,proto3" json:"consecutive_5xx_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 threshold can be
	// disabled by setting it to 0%. The default is 0% as it's not typically
	// applicable in k8s environments with few pods per service.
	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/upstream/outlier) for more details.

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

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*OutlierDetection) DeepCopy

func (in *OutlierDetection) DeepCopy() *OutlierDetection

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutlierDetection. Required by controller-gen.

func (*OutlierDetection) DeepCopyInto

func (in *OutlierDetection) DeepCopyInto(out *OutlierDetection)

DeepCopyInto supports using OutlierDetection within kubernetes types, where deepcopy-gen is used.

func (*OutlierDetection) Descriptor

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

func (*OutlierDetection) GetBaseEjectionTime

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

func (*OutlierDetection) GetConsecutiveErrors deprecated

func (m *OutlierDetection) GetConsecutiveErrors() int32

Deprecated: Do not use.

func (*OutlierDetection) GetConsecutiveGatewayErrors

func (m *OutlierDetection) GetConsecutiveGatewayErrors() *types.UInt32Value

func (*OutlierDetection) GetConsecutive_5XxErrors

func (m *OutlierDetection) GetConsecutive_5XxErrors() *types.UInt32Value

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) Marshal

func (m *OutlierDetection) Marshal() (dAtA []byte, err error)

func (*OutlierDetection) MarshalJSON

func (this *OutlierDetection) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for OutlierDetection

func (*OutlierDetection) MarshalTo

func (m *OutlierDetection) MarshalTo(dAtA []byte) (int, error)

func (*OutlierDetection) MarshalToSizedBuffer

func (m *OutlierDetection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OutlierDetection) ProtoMessage

func (*OutlierDetection) ProtoMessage()

func (*OutlierDetection) Reset

func (m *OutlierDetection) Reset()

func (*OutlierDetection) Size

func (m *OutlierDetection) Size() (n int)

func (*OutlierDetection) String

func (m *OutlierDetection) String() string

func (*OutlierDetection) Unmarshal

func (m *OutlierDetection) Unmarshal(dAtA []byte) error

func (*OutlierDetection) UnmarshalJSON

func (this *OutlierDetection) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for OutlierDetection

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) DeepCopy

func (in *Percent) DeepCopy() *Percent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Percent. Required by controller-gen.

func (*Percent) DeepCopyInto

func (in *Percent) DeepCopyInto(out *Percent)

DeepCopyInto supports using Percent within kubernetes types, where deepcopy-gen is used.

func (*Percent) Descriptor

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

func (*Percent) GetValue

func (m *Percent) GetValue() float64

func (*Percent) Marshal

func (m *Percent) Marshal() (dAtA []byte, err error)

func (*Percent) MarshalJSON

func (this *Percent) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Percent

func (*Percent) MarshalTo

func (m *Percent) MarshalTo(dAtA []byte) (int, error)

func (*Percent) MarshalToSizedBuffer

func (m *Percent) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Percent) ProtoMessage

func (*Percent) ProtoMessage()

func (*Percent) Reset

func (m *Percent) Reset()

func (*Percent) Size

func (m *Percent) Size() (n int)

func (*Percent) String

func (m *Percent) String() string

func (*Percent) Unmarshal

func (m *Percent) Unmarshal(dAtA []byte) error

func (*Percent) UnmarshalJSON

func (this *Percent) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Percent

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 {
	// A valid non-negative integer port number.
	Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// 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) DeepCopy

func (in *Port) DeepCopy() *Port

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port. Required by controller-gen.

func (*Port) DeepCopyInto

func (in *Port) DeepCopyInto(out *Port)

DeepCopyInto supports using Port within kubernetes types, where deepcopy-gen is used.

func (*Port) Descriptor

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

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) Marshal

func (m *Port) Marshal() (dAtA []byte, err error)

func (*Port) MarshalJSON

func (this *Port) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Port

func (*Port) MarshalTo

func (m *Port) MarshalTo(dAtA []byte) (int, error)

func (*Port) MarshalToSizedBuffer

func (m *Port) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Port) ProtoMessage

func (*Port) ProtoMessage()

func (*Port) Reset

func (m *Port) Reset()

func (*Port) Size

func (m *Port) Size() (n int)

func (*Port) String

func (m *Port) String() string

func (*Port) Unmarshal

func (m *Port) Unmarshal(dAtA []byte) error

func (*Port) UnmarshalJSON

func (this *Port) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Port

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 {
	// Valid port number
	Number               uint32   `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	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) DeepCopy

func (in *PortSelector) DeepCopy() *PortSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortSelector. Required by controller-gen.

func (*PortSelector) DeepCopyInto

func (in *PortSelector) DeepCopyInto(out *PortSelector)

DeepCopyInto supports using PortSelector within kubernetes types, where deepcopy-gen is used.

func (*PortSelector) Descriptor

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

func (*PortSelector) GetNumber

func (m *PortSelector) GetNumber() uint32

func (*PortSelector) Marshal

func (m *PortSelector) Marshal() (dAtA []byte, err error)

func (*PortSelector) MarshalJSON

func (this *PortSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for PortSelector

func (*PortSelector) MarshalTo

func (m *PortSelector) MarshalTo(dAtA []byte) (int, error)

func (*PortSelector) MarshalToSizedBuffer

func (m *PortSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PortSelector) ProtoMessage

func (*PortSelector) ProtoMessage()

func (*PortSelector) Reset

func (m *PortSelector) Reset()

func (*PortSelector) Size

func (m *PortSelector) Size() (n int)

func (*PortSelector) String

func (m *PortSelector) String() string

func (*PortSelector) Unmarshal

func (m *PortSelector) Unmarshal(dAtA []byte) error

func (*PortSelector) UnmarshalJSON

func (this *PortSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for PortSelector

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_Size

func (m *PortSelector) XXX_Size() int

func (*PortSelector) XXX_Unmarshal

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

type RouteDestination

type RouteDestination struct {
	// 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"`
	// 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) DeepCopy

func (in *RouteDestination) DeepCopy() *RouteDestination

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteDestination. Required by controller-gen.

func (*RouteDestination) DeepCopyInto

func (in *RouteDestination) DeepCopyInto(out *RouteDestination)

DeepCopyInto supports using RouteDestination within kubernetes types, where deepcopy-gen is used.

func (*RouteDestination) Descriptor

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

func (*RouteDestination) GetDestination

func (m *RouteDestination) GetDestination() *Destination

func (*RouteDestination) GetWeight

func (m *RouteDestination) GetWeight() int32

func (*RouteDestination) Marshal

func (m *RouteDestination) Marshal() (dAtA []byte, err error)

func (*RouteDestination) MarshalJSON

func (this *RouteDestination) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for RouteDestination

func (*RouteDestination) MarshalTo

func (m *RouteDestination) MarshalTo(dAtA []byte) (int, error)

func (*RouteDestination) MarshalToSizedBuffer

func (m *RouteDestination) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RouteDestination) ProtoMessage

func (*RouteDestination) ProtoMessage()

func (*RouteDestination) Reset

func (m *RouteDestination) Reset()

func (*RouteDestination) Size

func (m *RouteDestination) Size() (n int)

func (*RouteDestination) String

func (m *RouteDestination) String() string

func (*RouteDestination) Unmarshal

func (m *RouteDestination) Unmarshal(dAtA []byte) error

func (*RouteDestination) UnmarshalJSON

func (this *RouteDestination) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for RouteDestination

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 {
	// The Port on which the proxy should listen for incoming
	// connections.
	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). When using Unix domain sockets, the port
	// number should be 0.
	Bind string `protobuf:"bytes,4,opt,name=bind,proto3" json:"bind,omitempty"`
	// One or more hosts exposed by this gateway.
	// While typically applicable to
	// HTTP services, it can also be used for TCP services using TLS with SNI.
	// A host is specified as a `dnsName` with an optional `namespace/` prefix.
	// The `dnsName` should be specified using FQDN format, optionally including
	// a wildcard character in the left-most component (e.g.,
	// `prod/*.example.com`). Set the `dnsName` to `*` to select all
	// `VirtualService` hosts from the specified namespace (e.g.,`prod/*`).
	//
	// The `namespace` can be set to `*` or `.`, representing any or the current
	// namespace, respectively. For example, `*/foo.example.com` selects the
	// service from any available namespace while `./foo.example.com` only selects
	// the service from the namespace of the sidecar. The default, if no
	// `namespace/` is specified, is `*/`, that is, select services from any
	// namespace. Any associated `DestinationRule` in the selected namespace will
	// also be used.
	//
	// A `VirtualService` must be bound to the gateway and 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`, a
	// `VirtualService` with hosts `dev.example.com` or `prod.example.com` will
	// match. However, a `VirtualService` with host `example.com` or
	// `newexample.com` will not match.
	//
	// NOTE: Only virtual services exported to the gateway's namespace
	// (e.g., `exportTo` value of `*`) can be referenced.
	// Private configurations (e.g., `exportTo` set to `.`) will not be
	// available. Refer to the `exportTo` setting in `VirtualService`,
	// `DestinationRule`, and `ServiceEntry` configurations for details.
	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 *ServerTLSSettings `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).
	// NOT IMPLEMENTED.
	// $hide_from_docs
	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,

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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:
  - "*"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata:

name: my-ingress

spec:

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

``` {{</tab>}} {{</tabset>}}

Another example

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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:
  - "*"

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 kind: Gateway metadata:

name: my-tcp-ingress

spec:

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

``` {{</tab>}} {{</tabset>}}

The following is an example of TLS configuration for port 443

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*Server) DeepCopy

func (in *Server) DeepCopy() *Server

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Server. Required by controller-gen.

func (*Server) DeepCopyInto

func (in *Server) DeepCopyInto(out *Server)

DeepCopyInto supports using Server within kubernetes types, where deepcopy-gen is used.

func (*Server) Descriptor

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

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() *ServerTLSSettings

func (*Server) Marshal

func (m *Server) Marshal() (dAtA []byte, err error)

func (*Server) MarshalJSON

func (this *Server) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Server

func (*Server) MarshalTo

func (m *Server) MarshalTo(dAtA []byte) (int, error)

func (*Server) MarshalToSizedBuffer

func (m *Server) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) Reset

func (m *Server) Reset()

func (*Server) Size

func (m *Server) Size() (n int)

func (*Server) String

func (m *Server) String() string

func (*Server) Unmarshal

func (m *Server) Unmarshal(dAtA []byte) error

func (*Server) UnmarshalJSON

func (this *Server) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Server

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 ServerTLSSettings

type ServerTLSSettings 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 ServerTLSSettings_TLSmode `protobuf:"varint,2,opt,name=mode,proto3,enum=istio.networking.v1beta1.ServerTLSSettings_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"`
	// For gateways running on Kubernetes, the name of the secret that
	// holds the TLS certs including the CA certificates. Applicable
	// only on Kubernetes, and only if the dynamic credential fetching
	// feature is enabled in the proxy by setting
	// `ISTIO_META_USER_SDS` metadata variable.  The secret (of type
	// `generic`) should contain the following keys and values: `key:
	// <privateKey>`, `cert: <serverCert>`, `cacert: <CACertificate>`.
	CredentialName string `protobuf:"bytes,10,opt,name=credential_name,json=credentialName,proto3" json:"credential_name,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"`
	// An optional list of base64-encoded SHA-256 hashes of the SKPIs of
	// authorized client certificates.
	// Note: When both verify_certificate_hash and verify_certificate_spki
	// are specified, a hash matching either value will result in the
	// certificate being accepted.
	VerifyCertificateSpki []string `` /* 127-byte string literal not displayed */
	// An optional list of hex-encoded SHA-256 hashes of the
	// authorized client certificates. Both simple and colon separated
	// formats are acceptable.
	// Note: When both verify_certificate_hash and verify_certificate_spki
	// are specified, a hash matching either value will result in the
	// certificate being accepted.
	VerifyCertificateHash []string `` /* 127-byte string literal not displayed */
	// Optional: Minimum TLS protocol version.
	MinProtocolVersion ServerTLSSettings_TLSProtocol `` /* 178-byte string literal not displayed */
	// Optional: Maximum TLS protocol version.
	MaxProtocolVersion ServerTLSSettings_TLSProtocol `` /* 178-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 (*ServerTLSSettings) DeepCopy

func (in *ServerTLSSettings) DeepCopy() *ServerTLSSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServerTLSSettings. Required by controller-gen.

func (*ServerTLSSettings) DeepCopyInto

func (in *ServerTLSSettings) DeepCopyInto(out *ServerTLSSettings)

DeepCopyInto supports using ServerTLSSettings within kubernetes types, where deepcopy-gen is used.

func (*ServerTLSSettings) Descriptor

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

func (*ServerTLSSettings) GetCaCertificates

func (m *ServerTLSSettings) GetCaCertificates() string

func (*ServerTLSSettings) GetCipherSuites

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

func (*ServerTLSSettings) GetCredentialName

func (m *ServerTLSSettings) GetCredentialName() string

func (*ServerTLSSettings) GetHttpsRedirect

func (m *ServerTLSSettings) GetHttpsRedirect() bool

func (*ServerTLSSettings) GetMaxProtocolVersion

func (m *ServerTLSSettings) GetMaxProtocolVersion() ServerTLSSettings_TLSProtocol

func (*ServerTLSSettings) GetMinProtocolVersion

func (m *ServerTLSSettings) GetMinProtocolVersion() ServerTLSSettings_TLSProtocol

func (*ServerTLSSettings) GetMode

func (*ServerTLSSettings) GetPrivateKey

func (m *ServerTLSSettings) GetPrivateKey() string

func (*ServerTLSSettings) GetServerCertificate

func (m *ServerTLSSettings) GetServerCertificate() string

func (*ServerTLSSettings) GetSubjectAltNames

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

func (*ServerTLSSettings) GetVerifyCertificateHash

func (m *ServerTLSSettings) GetVerifyCertificateHash() []string

func (*ServerTLSSettings) GetVerifyCertificateSpki

func (m *ServerTLSSettings) GetVerifyCertificateSpki() []string

func (*ServerTLSSettings) Marshal

func (m *ServerTLSSettings) Marshal() (dAtA []byte, err error)

func (*ServerTLSSettings) MarshalJSON

func (this *ServerTLSSettings) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServerTLSSettings

func (*ServerTLSSettings) MarshalTo

func (m *ServerTLSSettings) MarshalTo(dAtA []byte) (int, error)

func (*ServerTLSSettings) MarshalToSizedBuffer

func (m *ServerTLSSettings) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServerTLSSettings) ProtoMessage

func (*ServerTLSSettings) ProtoMessage()

func (*ServerTLSSettings) Reset

func (m *ServerTLSSettings) Reset()

func (*ServerTLSSettings) Size

func (m *ServerTLSSettings) Size() (n int)

func (*ServerTLSSettings) String

func (m *ServerTLSSettings) String() string

func (*ServerTLSSettings) Unmarshal

func (m *ServerTLSSettings) Unmarshal(dAtA []byte) error

func (*ServerTLSSettings) UnmarshalJSON

func (this *ServerTLSSettings) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServerTLSSettings

func (*ServerTLSSettings) XXX_DiscardUnknown

func (m *ServerTLSSettings) XXX_DiscardUnknown()

func (*ServerTLSSettings) XXX_Marshal

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

func (*ServerTLSSettings) XXX_Merge

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

func (*ServerTLSSettings) XXX_Size

func (m *ServerTLSSettings) XXX_Size() int

func (*ServerTLSSettings) XXX_Unmarshal

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

type ServerTLSSettings_TLSProtocol

type ServerTLSSettings_TLSProtocol int32

TLS protocol versions.

const (
	// Automatically choose the optimal TLS version.
	ServerTLSSettings_TLS_AUTO ServerTLSSettings_TLSProtocol = 0
	// TLS version 1.0
	ServerTLSSettings_TLSV1_0 ServerTLSSettings_TLSProtocol = 1
	// TLS version 1.1
	ServerTLSSettings_TLSV1_1 ServerTLSSettings_TLSProtocol = 2
	// TLS version 1.2
	ServerTLSSettings_TLSV1_2 ServerTLSSettings_TLSProtocol = 3
	// TLS version 1.3
	ServerTLSSettings_TLSV1_3 ServerTLSSettings_TLSProtocol = 4
)

func (ServerTLSSettings_TLSProtocol) EnumDescriptor

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

func (ServerTLSSettings_TLSProtocol) String

type ServerTLSSettings_TLSmode

type ServerTLSSettings_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.
	ServerTLSSettings_PASSTHROUGH ServerTLSSettings_TLSmode = 0
	// Secure connections with standard TLS semantics.
	ServerTLSSettings_SIMPLE ServerTLSSettings_TLSmode = 1
	// Secure connections to the downstream using mutual TLS by
	// presenting server certificates for authentication.
	ServerTLSSettings_MUTUAL ServerTLSSettings_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.
	ServerTLSSettings_AUTO_PASSTHROUGH ServerTLSSettings_TLSmode = 3
	// Secure connections from the downstream using mutual TLS by
	// presenting server certificates for authentication.  Compared
	// to Mutual mode, this mode uses certificates, representing
	// gateway workload identity, generated automatically by Istio
	// for mTLS authentication. When this mode is used, all other
	// fields in `TLSOptions` should be empty.
	ServerTLSSettings_ISTIO_MUTUAL ServerTLSSettings_TLSmode = 4
)

func (ServerTLSSettings_TLSmode) EnumDescriptor

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

func (ServerTLSSettings_TLSmode) String

func (x ServerTLSSettings_TLSmode) String() string

type ServiceEntry

type ServiceEntry struct {
	// The hosts associated with the ServiceEntry. Could be a DNS
	// name with wildcard prefix.
	//
	// 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules.
	// 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field.
	// 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value
	// will be matched against the hosts field.
	//
	// **NOTE 1:** When resolution is set to type DNS and no endpoints
	// are specified, the host field will be used as the DNS name of the
	// endpoint to route traffic to.
	//
	// **NOTE 2:** If the hostname matches with the name of a service
	// from another service registry such as Kubernetes that also
	// supplies its own set of endpoints, the ServiceEntry will be
	// treated as a decorator of the existing Kubernetes
	// service. Properties in the service entry will be added to the
	// Kubernetes service if applicable. Currently, the only the
	// following additional properties will be considered by `istiod`:
	//
	// 1. subjectAltNames: In addition to verifying the SANs of the
	//    service accounts associated with the pods of the service, the
	//    SANs specified here will also be verified.
	//
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The virtual IP addresses associated with the service. Could be CIDR
	// prefix. For HTTP traffic, generated route configurations will include http route
	// domains for both the `addresses` and `hosts` field values and the destination will
	// be identified based on the HTTP Host/Authority header.
	// If one or more IP addresses are specified,
	// the incoming traffic will be identified as belonging to this service
	// if the destination IP matches the IP/CIDRs specified in the addresses
	// field. If the Addresses field is empty, traffic will be identified
	// solely based on the destination port. In such scenarios, the port on
	// which the service is being accessed must not be shared by any other
	// service in the mesh. In other words, the sidecar will behave as a
	// simple TCP proxy, forwarding incoming traffic on a specified port to
	// the specified destination endpoint IP/host. Unix domain socket
	// addresses are not supported in this field.
	Addresses []string `protobuf:"bytes,2,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// The ports associated with the external service. If the
	// Endpoints are Unix domain socket addresses, there must be exactly one
	// port.
	Ports []*Port `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"`
	// Specify whether the service should be considered external to the mesh
	// or part of the mesh.
	Location ServiceEntry_Location `protobuf:"varint,4,opt,name=location,proto3,enum=istio.networking.v1beta1.ServiceEntry_Location" json:"location,omitempty"`
	// Service discovery mode for the hosts. Care must be taken
	// when setting the resolution mode to NONE for a TCP port without
	// accompanying IP addresses. In such cases, traffic to any IP on
	// said port will be allowed (i.e. `0.0.0.0:<port>`).
	Resolution ServiceEntry_Resolution `` /* 128-byte string literal not displayed */
	// One or more endpoints associated with the service. Only one of
	// `endpoints` or `workloadSelector` can be specified.
	Endpoints []*WorkloadEntry `protobuf:"bytes,6,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// Applicable only for MESH_INTERNAL services. Only one of
	// `endpoints` or `workloadSelector` can be specified. Selects one
	// or more Kubernetes pods or VM workloads (specified using
	// `WorkloadEntry`) based on their labels. The `WorkloadEntry` object
	// representing the VMs should be defined in the same namespace as
	// the ServiceEntry.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,9,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// A list of namespaces to which this service is exported. Exporting a service
	// allows it to be used by sidecars, gateways and virtual services defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of services across
	// namespace boundaries.
	//
	// If no namespaces are specified then the service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// For a Kubernetes Service, the equivalent effect can be achieved by setting
	// the annotation "networking.istio.io/exportTo" to a comma-separated list
	// of namespace names.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo []string `protobuf:"bytes,7,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	// If specified, the proxy will verify that the server certificate's
	// subject alternate name matches one of the specified values.
	//
	// NOTE: When using the workloadEntry with workloadSelectors, the
	// service account specified in the workloadEntry will also be used
	// to derive the additional subject alternate names that should be
	// verified.
	SubjectAltNames      []string `protobuf:"bytes,8,rep,name=subject_alt_names,json=subjectAltNames,proto3" json:"subject_alt_names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

ServiceEntry enables adding additional entries into Istio's internal service registry.

<!-- crd generation tags +cue-gen:ServiceEntry:groupName:networking.istio.io +cue-gen:ServiceEntry:version:v1beta1 +cue-gen:ServiceEntry:annotations:helm.sh/resource-policy=keep +cue-gen:ServiceEntry:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:ServiceEntry:subresource:status +cue-gen:ServiceEntry:scope:Namespaced +cue-gen:ServiceEntry:resource:categories=istio-io,networking-istio-io,shortNames=se,plural=serviceentries +cue-gen:ServiceEntry:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The hosts associated with the ServiceEntry" +cue-gen:ServiceEntry:printerColumn:name=Location,type=string,JSONPath=.spec.location,description="Whether the service is external to the mesh or part of the mesh (MESH_EXTERNAL or MESH_INTERNAL)" +cue-gen:ServiceEntry:printerColumn:name=Resolution,type=string,JSONPath=.spec.resolution,description="Service discovery mode for the hosts (NONE, STATIC, or DNS)" +cue-gen:ServiceEntry:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:ServiceEntry:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*ServiceEntry) DeepCopy

func (in *ServiceEntry) DeepCopy() *ServiceEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceEntry. Required by controller-gen.

func (*ServiceEntry) DeepCopyInto

func (in *ServiceEntry) DeepCopyInto(out *ServiceEntry)

DeepCopyInto supports using ServiceEntry within kubernetes types, where deepcopy-gen is used.

func (*ServiceEntry) Descriptor

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

func (*ServiceEntry) GetAddresses

func (m *ServiceEntry) GetAddresses() []string

func (*ServiceEntry) GetEndpoints

func (m *ServiceEntry) GetEndpoints() []*WorkloadEntry

func (*ServiceEntry) GetExportTo

func (m *ServiceEntry) GetExportTo() []string

func (*ServiceEntry) GetHosts

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

func (*ServiceEntry) GetLocation

func (m *ServiceEntry) GetLocation() ServiceEntry_Location

func (*ServiceEntry) GetPorts

func (m *ServiceEntry) GetPorts() []*Port

func (*ServiceEntry) GetResolution

func (m *ServiceEntry) GetResolution() ServiceEntry_Resolution

func (*ServiceEntry) GetSubjectAltNames

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

func (*ServiceEntry) GetWorkloadSelector

func (m *ServiceEntry) GetWorkloadSelector() *WorkloadSelector

func (*ServiceEntry) Marshal

func (m *ServiceEntry) Marshal() (dAtA []byte, err error)

func (*ServiceEntry) MarshalJSON

func (this *ServiceEntry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ServiceEntry

func (*ServiceEntry) MarshalTo

func (m *ServiceEntry) MarshalTo(dAtA []byte) (int, error)

func (*ServiceEntry) MarshalToSizedBuffer

func (m *ServiceEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ServiceEntry) ProtoMessage

func (*ServiceEntry) ProtoMessage()

func (*ServiceEntry) Reset

func (m *ServiceEntry) Reset()

func (*ServiceEntry) Size

func (m *ServiceEntry) Size() (n int)

func (*ServiceEntry) String

func (m *ServiceEntry) String() string

func (*ServiceEntry) Unmarshal

func (m *ServiceEntry) Unmarshal(dAtA []byte) error

func (*ServiceEntry) UnmarshalJSON

func (this *ServiceEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ServiceEntry

func (*ServiceEntry) XXX_DiscardUnknown

func (m *ServiceEntry) XXX_DiscardUnknown()

func (*ServiceEntry) XXX_Marshal

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

func (*ServiceEntry) XXX_Merge

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

func (*ServiceEntry) XXX_Size

func (m *ServiceEntry) XXX_Size() int

func (*ServiceEntry) XXX_Unmarshal

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

type ServiceEntry_Location

type ServiceEntry_Location int32

Location specifies whether the service is part of Istio mesh or outside the mesh. Location determines the behavior of several features, such as service-to-service mTLS authentication, policy enforcement, etc. When communicating with services outside the mesh, Istio's mTLS authentication is disabled, and policy enforcement is performed on the client-side as opposed to server-side.

const (
	// Signifies that the service is external to the mesh. Typically used
	// to indicate external services consumed through APIs.
	ServiceEntry_MESH_EXTERNAL ServiceEntry_Location = 0
	// Signifies that the service is part of the mesh. Typically used to
	// indicate services added explicitly as part of expanding the service
	// mesh to include unmanaged infrastructure (e.g., VMs added to a
	// Kubernetes based service mesh).
	ServiceEntry_MESH_INTERNAL ServiceEntry_Location = 1
)

func (ServiceEntry_Location) EnumDescriptor

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

func (ServiceEntry_Location) String

func (x ServiceEntry_Location) String() string

type ServiceEntry_Resolution

type ServiceEntry_Resolution int32

Resolution determines how the proxy will resolve the IP addresses of the network endpoints associated with the service, so that it can route to one of them. The resolution mode specified here has no impact on how the application resolves the IP address associated with the service. The application may still have to use DNS to resolve the service to an IP so that the outbound traffic can be captured by the Proxy. Alternatively, for HTTP services, the application could directly communicate with the proxy (e.g., by setting HTTP_PROXY) to talk to these services.

const (
	// Assume that incoming connections have already been resolved (to a
	// specific destination IP address). Such connections are typically
	// routed via the proxy using mechanisms such as IP table REDIRECT/
	// eBPF. After performing any routing related transformations, the
	// proxy will forward the connection to the IP address to which the
	// connection was bound.
	ServiceEntry_NONE ServiceEntry_Resolution = 0
	// Use the static IP addresses specified in endpoints (see below) as the
	// backing instances associated with the service.
	ServiceEntry_STATIC ServiceEntry_Resolution = 1
	// Attempt to resolve the IP address by querying the ambient DNS,
	// during request processing. If no endpoints are specified, the proxy
	// will resolve the DNS address specified in the hosts field, if
	// wildcards are not used. If endpoints are specified, the DNS
	// addresses specified in the endpoints will be resolved to determine
	// the destination IP address.  DNS resolution cannot be used with Unix
	// domain socket endpoints.
	ServiceEntry_DNS ServiceEntry_Resolution = 2
)

func (ServiceEntry_Resolution) EnumDescriptor

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

func (ServiceEntry_Resolution) String

func (x ServiceEntry_Resolution) String() string

type Sidecar

type Sidecar struct {
	// 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 workload instances in the same namespace.
	WorkloadSelector *WorkloadSelector `protobuf:"bytes,1,opt,name=workload_selector,json=workloadSelector,proto3" json:"workload_selector,omitempty"`
	// Ingress specifies the configuration of the sidecar for processing
	// inbound traffic to the attached workload instance. If omitted, Istio will
	// automatically configure the sidecar based on the information about the workload
	// obtained from the orchestration platform (e.g., exposed ports, services,
	// etc.). If specified, inbound ports are configured if and only if the
	// workload instance is associated with a service.
	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 instance to other
	// services in the mesh. If not specified, inherits the system
	// detected defaults from the namespace-wide or the global default Sidecar.
	Egress []*IstioEgressListener `protobuf:"bytes,3,rep,name=egress,proto3" json:"egress,omitempty"`
	// Configuration for the outbound traffic policy.  If your
	// application uses one or more external services that are not known
	// apriori, setting the policy to `ALLOW_ANY` will cause the
	// sidecars to route any unknown traffic originating from the
	// application to its requested destination. If not specified,
	// inherits the system detected defaults from the namespace-wide or
	// the global default Sidecar.
	OutboundTrafficPolicy *OutboundTrafficPolicy `` /* 126-byte string literal not displayed */
	// $hide_from_docs
	// `Localhost` describes the sidecar settings related to the
	// communication between the sidecar and the workload it is attached to
	// in a Kubernetes Pod or a VM. These settings apply to all ingress
	// and egress listeners in a sidecar unless overridden. There are no
	// built in defaults for this setting. If not specified, the
	// features will be disabled.
	Localhost            *Localhost `protobuf:"bytes,6,opt,name=localhost,proto3" json:"localhost,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 of the workload instance to which it is attached.

<!-- crd generation tags +cue-gen:Sidecar:groupName:networking.istio.io +cue-gen:Sidecar:version:v1beta1 +cue-gen:Sidecar:annotations:helm.sh/resource-policy=keep +cue-gen:Sidecar:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:Sidecar:subresource:status +cue-gen:Sidecar:scope:Namespaced +cue-gen:Sidecar:resource:categories=istio-io,networking-istio-io +cue-gen:Sidecar:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*Sidecar) DeepCopy

func (in *Sidecar) DeepCopy() *Sidecar

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sidecar. Required by controller-gen.

func (*Sidecar) DeepCopyInto

func (in *Sidecar) DeepCopyInto(out *Sidecar)

DeepCopyInto supports using Sidecar within kubernetes types, where deepcopy-gen is used.

func (*Sidecar) Descriptor

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

func (*Sidecar) GetEgress

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

func (*Sidecar) GetIngress

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

func (*Sidecar) GetLocalhost

func (m *Sidecar) GetLocalhost() *Localhost

func (*Sidecar) GetOutboundTrafficPolicy

func (m *Sidecar) GetOutboundTrafficPolicy() *OutboundTrafficPolicy

func (*Sidecar) GetWorkloadSelector

func (m *Sidecar) GetWorkloadSelector() *WorkloadSelector

func (*Sidecar) Marshal

func (m *Sidecar) Marshal() (dAtA []byte, err error)

func (*Sidecar) MarshalJSON

func (this *Sidecar) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Sidecar

func (*Sidecar) MarshalTo

func (m *Sidecar) MarshalTo(dAtA []byte) (int, error)

func (*Sidecar) MarshalToSizedBuffer

func (m *Sidecar) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Sidecar) ProtoMessage

func (*Sidecar) ProtoMessage()

func (*Sidecar) Reset

func (m *Sidecar) Reset()

func (*Sidecar) Size

func (m *Sidecar) Size() (n int)

func (*Sidecar) String

func (m *Sidecar) String() string

func (*Sidecar) Unmarshal

func (m *Sidecar) Unmarshal(dAtA []byte) error

func (*Sidecar) UnmarshalJSON

func (this *Sidecar) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Sidecar

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) DeepCopy

func (in *StringMatch) DeepCopy() *StringMatch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StringMatch. Required by controller-gen.

func (*StringMatch) DeepCopyInto

func (in *StringMatch) DeepCopyInto(out *StringMatch)

DeepCopyInto supports using StringMatch within kubernetes types, where deepcopy-gen is used.

func (*StringMatch) Descriptor

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

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) Marshal

func (m *StringMatch) Marshal() (dAtA []byte, err error)

func (*StringMatch) MarshalJSON

func (this *StringMatch) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for StringMatch

func (*StringMatch) MarshalTo

func (m *StringMatch) MarshalTo(dAtA []byte) (int, error)

func (*StringMatch) MarshalToSizedBuffer

func (m *StringMatch) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatch) ProtoMessage

func (*StringMatch) ProtoMessage()

func (*StringMatch) Reset

func (m *StringMatch) Reset()

func (*StringMatch) Size

func (m *StringMatch) Size() (n int)

func (*StringMatch) String

func (m *StringMatch) String() string

func (*StringMatch) Unmarshal

func (m *StringMatch) Unmarshal(dAtA []byte) error

func (*StringMatch) UnmarshalJSON

func (this *StringMatch) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for StringMatch

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_OneofWrappers

func (*StringMatch) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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) MarshalTo

func (m *StringMatch_Exact) MarshalTo(dAtA []byte) (int, error)

func (*StringMatch_Exact) MarshalToSizedBuffer

func (m *StringMatch_Exact) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatch_Exact) Size

func (m *StringMatch_Exact) Size() (n int)

type StringMatch_Prefix

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

func (*StringMatch_Prefix) MarshalTo

func (m *StringMatch_Prefix) MarshalTo(dAtA []byte) (int, error)

func (*StringMatch_Prefix) MarshalToSizedBuffer

func (m *StringMatch_Prefix) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatch_Prefix) Size

func (m *StringMatch_Prefix) Size() (n int)

type StringMatch_Regex

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

func (*StringMatch_Regex) MarshalTo

func (m *StringMatch_Regex) MarshalTo(dAtA []byte) (int, error)

func (*StringMatch_Regex) MarshalToSizedBuffer

func (m *StringMatch_Regex) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StringMatch_Regex) Size

func (m *StringMatch_Regex) Size() (n int)

type Subset

type Subset struct {
	// 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(https://istio.io/docs/reference/config/networking/virtual-service/#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).

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

**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 ClientTLSSettings(#ClientTLSSettings) can be used to identify a specific SNI host corresponding to the named subset.

func (*Subset) DeepCopy

func (in *Subset) DeepCopy() *Subset

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subset. Required by controller-gen.

func (*Subset) DeepCopyInto

func (in *Subset) DeepCopyInto(out *Subset)

DeepCopyInto supports using Subset within kubernetes types, where deepcopy-gen is used.

func (*Subset) Descriptor

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

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) Marshal

func (m *Subset) Marshal() (dAtA []byte, err error)

func (*Subset) MarshalJSON

func (this *Subset) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Subset

func (*Subset) MarshalTo

func (m *Subset) MarshalTo(dAtA []byte) (int, error)

func (*Subset) MarshalToSizedBuffer

func (m *Subset) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Subset) ProtoMessage

func (*Subset) ProtoMessage()

func (*Subset) Reset

func (m *Subset) Reset()

func (*Subset) Size

func (m *Subset) Size() (n int)

func (*Subset) String

func (m *Subset) String() string

func (*Subset) Unmarshal

func (m *Subset) Unmarshal(dAtA []byte) error

func (*Subset) UnmarshalJSON

func (this *Subset) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Subset

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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*TCPRoute) DeepCopy

func (in *TCPRoute) DeepCopy() *TCPRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPRoute. Required by controller-gen.

func (*TCPRoute) DeepCopyInto

func (in *TCPRoute) DeepCopyInto(out *TCPRoute)

DeepCopyInto supports using TCPRoute within kubernetes types, where deepcopy-gen is used.

func (*TCPRoute) Descriptor

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

func (*TCPRoute) GetMatch

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

func (*TCPRoute) GetRoute

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

func (*TCPRoute) Marshal

func (m *TCPRoute) Marshal() (dAtA []byte, err error)

func (*TCPRoute) MarshalJSON

func (this *TCPRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TCPRoute

func (*TCPRoute) MarshalTo

func (m *TCPRoute) MarshalTo(dAtA []byte) (int, error)

func (*TCPRoute) MarshalToSizedBuffer

func (m *TCPRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TCPRoute) ProtoMessage

func (*TCPRoute) ProtoMessage()

func (*TCPRoute) Reset

func (m *TCPRoute) Reset()

func (*TCPRoute) Size

func (m *TCPRoute) Size() (n int)

func (*TCPRoute) String

func (m *TCPRoute) String() string

func (*TCPRoute) Unmarshal

func (m *TCPRoute) Unmarshal(dAtA []byte) error

func (*TCPRoute) UnmarshalJSON

func (this *TCPRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TCPRoute

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 {
	// 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"`
	// 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 in the top-level `gateways` field, 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. Gateway names
	// in the top-level `gateways` field 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"`
	// Source namespace constraining the applicability of a rule to workloads in that namespace.
	// If the VirtualService has a list of gateways specified in the top-level `gateways` field,
	// it must include the reserved gateway `mesh` for this field to be applicable.
	SourceNamespace      string   `protobuf:"bytes,7,opt,name=source_namespace,json=sourceNamespace,proto3" json:"source_namespace,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TLS connection match attributes.

func (*TLSMatchAttributes) DeepCopy

func (in *TLSMatchAttributes) DeepCopy() *TLSMatchAttributes

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSMatchAttributes. Required by controller-gen.

func (*TLSMatchAttributes) DeepCopyInto

func (in *TLSMatchAttributes) DeepCopyInto(out *TLSMatchAttributes)

DeepCopyInto supports using TLSMatchAttributes within kubernetes types, where deepcopy-gen is used.

func (*TLSMatchAttributes) Descriptor

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

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) GetSourceNamespace

func (m *TLSMatchAttributes) GetSourceNamespace() string

func (*TLSMatchAttributes) Marshal

func (m *TLSMatchAttributes) Marshal() (dAtA []byte, err error)

func (*TLSMatchAttributes) MarshalJSON

func (this *TLSMatchAttributes) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TLSMatchAttributes

func (*TLSMatchAttributes) MarshalTo

func (m *TLSMatchAttributes) MarshalTo(dAtA []byte) (int, error)

func (*TLSMatchAttributes) MarshalToSizedBuffer

func (m *TLSMatchAttributes) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSMatchAttributes) ProtoMessage

func (*TLSMatchAttributes) ProtoMessage()

func (*TLSMatchAttributes) Reset

func (m *TLSMatchAttributes) Reset()

func (*TLSMatchAttributes) Size

func (m *TLSMatchAttributes) Size() (n int)

func (*TLSMatchAttributes) String

func (m *TLSMatchAttributes) String() string

func (*TLSMatchAttributes) Unmarshal

func (m *TLSMatchAttributes) Unmarshal(dAtA []byte) error

func (*TLSMatchAttributes) UnmarshalJSON

func (this *TLSMatchAttributes) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TLSMatchAttributes

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 {
	// 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.

{{<tabset category-name="example">}} {{<tab name="v1alpha3" category-value="v1alpha3">}} ```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

``` {{</tab>}}

{{<tab name="v1beta1" category-value="v1beta1">}} ```yaml apiVersion: networking.istio.io/v1beta1 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

``` {{</tab>}} {{</tabset>}}

func (*TLSRoute) DeepCopy

func (in *TLSRoute) DeepCopy() *TLSRoute

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLSRoute. Required by controller-gen.

func (*TLSRoute) DeepCopyInto

func (in *TLSRoute) DeepCopyInto(out *TLSRoute)

DeepCopyInto supports using TLSRoute within kubernetes types, where deepcopy-gen is used.

func (*TLSRoute) Descriptor

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

func (*TLSRoute) GetMatch

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

func (*TLSRoute) GetRoute

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

func (*TLSRoute) Marshal

func (m *TLSRoute) Marshal() (dAtA []byte, err error)

func (*TLSRoute) MarshalJSON

func (this *TLSRoute) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TLSRoute

func (*TLSRoute) MarshalTo

func (m *TLSRoute) MarshalTo(dAtA []byte) (int, error)

func (*TLSRoute) MarshalToSizedBuffer

func (m *TLSRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TLSRoute) ProtoMessage

func (*TLSRoute) ProtoMessage()

func (*TLSRoute) Reset

func (m *TLSRoute) Reset()

func (*TLSRoute) Size

func (m *TLSRoute) Size() (n int)

func (*TLSRoute) String

func (m *TLSRoute) String() string

func (*TLSRoute) Unmarshal

func (m *TLSRoute) Unmarshal(dAtA []byte) error

func (*TLSRoute) UnmarshalJSON

func (this *TLSRoute) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TLSRoute

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 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 *ClientTLSSettings `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) DeepCopy

func (in *TrafficPolicy) DeepCopy() *TrafficPolicy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy. Required by controller-gen.

func (*TrafficPolicy) DeepCopyInto

func (in *TrafficPolicy) DeepCopyInto(out *TrafficPolicy)

DeepCopyInto supports using TrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy) Descriptor

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

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() *ClientTLSSettings

func (*TrafficPolicy) Marshal

func (m *TrafficPolicy) Marshal() (dAtA []byte, err error)

func (*TrafficPolicy) MarshalJSON

func (this *TrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy

func (*TrafficPolicy) MarshalTo

func (m *TrafficPolicy) MarshalTo(dAtA []byte) (int, error)

func (*TrafficPolicy) MarshalToSizedBuffer

func (m *TrafficPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrafficPolicy) ProtoMessage

func (*TrafficPolicy) ProtoMessage()

func (*TrafficPolicy) Reset

func (m *TrafficPolicy) Reset()

func (*TrafficPolicy) Size

func (m *TrafficPolicy) Size() (n int)

func (*TrafficPolicy) String

func (m *TrafficPolicy) String() string

func (*TrafficPolicy) Unmarshal

func (m *TrafficPolicy) Unmarshal(dAtA []byte) error

func (*TrafficPolicy) UnmarshalJSON

func (this *TrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy

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 number of a port on the destination service
	// on which this policy is being applied.
	//
	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                  *ClientTLSSettings `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) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TrafficPolicy_PortTrafficPolicy. Required by controller-gen.

func (*TrafficPolicy_PortTrafficPolicy) DeepCopyInto

DeepCopyInto supports using TrafficPolicy_PortTrafficPolicy within kubernetes types, where deepcopy-gen is used.

func (*TrafficPolicy_PortTrafficPolicy) Descriptor

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

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) Marshal

func (m *TrafficPolicy_PortTrafficPolicy) Marshal() (dAtA []byte, err error)

func (*TrafficPolicy_PortTrafficPolicy) MarshalJSON

func (this *TrafficPolicy_PortTrafficPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for TrafficPolicy_PortTrafficPolicy

func (*TrafficPolicy_PortTrafficPolicy) MarshalTo

func (m *TrafficPolicy_PortTrafficPolicy) MarshalTo(dAtA []byte) (int, error)

func (*TrafficPolicy_PortTrafficPolicy) MarshalToSizedBuffer

func (m *TrafficPolicy_PortTrafficPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage

func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()

func (*TrafficPolicy_PortTrafficPolicy) Reset

func (*TrafficPolicy_PortTrafficPolicy) Size

func (m *TrafficPolicy_PortTrafficPolicy) Size() (n int)

func (*TrafficPolicy_PortTrafficPolicy) String

func (*TrafficPolicy_PortTrafficPolicy) Unmarshal

func (m *TrafficPolicy_PortTrafficPolicy) Unmarshal(dAtA []byte) error

func (*TrafficPolicy_PortTrafficPolicy) UnmarshalJSON

func (this *TrafficPolicy_PortTrafficPolicy) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for TrafficPolicy_PortTrafficPolicy

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 VirtualService

type VirtualService struct {
	// 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 single VirtualService can be used to describe all the traffic
	// properties of the corresponding hosts, including those for multiple
	// HTTP and TCP ports. Alternatively, the traffic properties of a host
	// can be defined using more than one VirtualService, with certain
	// caveats. Refer to the
	// [Operations Guide](https://istio.io/docs/ops/best-practices/traffic-management/#split-virtual-services)
	// for details.
	//
	// *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.
	//
	// *Note*: It must be empty for a delegate VirtualService.
	Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
	// The names of gateways and sidecars that should apply these routes.
	// Gateways in other namespaces may be referred to by
	// `<gateway namespace>/<gateway name>`; specifying a gateway with no
	// namespace qualifier is the same as specifying the VirtualService's
	// namespace. 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"`
	// A list of namespaces to which this virtual service is exported. Exporting a
	// virtual service allows it to be used by sidecars and gateways defined in
	// other namespaces. This feature provides a mechanism for service owners
	// and mesh administrators to control the visibility of virtual services
	// across namespace boundaries.
	//
	// If no namespaces are specified then the virtual service is exported to all
	// namespaces by default.
	//
	// The value "." is reserved and defines an export to the same namespace that
	// the virtual service is declared in. Similarly the value "*" is reserved and
	// defines an export to all namespaces.
	//
	// NOTE: in the current release, the `exportTo` value is restricted to
	// "." or "*" (i.e., the current namespace or all namespaces).
	ExportTo             []string `protobuf:"bytes,6,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Configuration affecting traffic routing.

<!-- crd generation tags +cue-gen:VirtualService:groupName:networking.istio.io +cue-gen:VirtualService:version:v1beta1 +cue-gen:VirtualService:annotations:helm.sh/resource-policy=keep +cue-gen:VirtualService:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:VirtualService:subresource:status +cue-gen:VirtualService:scope:Namespaced +cue-gen:VirtualService:resource:categories=istio-io,networking-istio-io,shortNames=vs +cue-gen:VirtualService:printerColumn:name=Gateways,type=string,JSONPath=.spec.gateways,description="The names of gateways and sidecars that should apply these routes" +cue-gen:VirtualService:printerColumn:name=Hosts,type=string,JSONPath=.spec.hosts,description="The destination hosts to which traffic is being sent" +cue-gen:VirtualService:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:VirtualService:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*VirtualService) DeepCopy

func (in *VirtualService) DeepCopy() *VirtualService

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualService. Required by controller-gen.

func (*VirtualService) DeepCopyInto

func (in *VirtualService) DeepCopyInto(out *VirtualService)

DeepCopyInto supports using VirtualService within kubernetes types, where deepcopy-gen is used.

func (*VirtualService) Descriptor

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

func (*VirtualService) GetExportTo

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

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) GetTcp

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

func (*VirtualService) GetTls

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

func (*VirtualService) Marshal

func (m *VirtualService) Marshal() (dAtA []byte, err error)

func (*VirtualService) MarshalJSON

func (this *VirtualService) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for VirtualService

func (*VirtualService) MarshalTo

func (m *VirtualService) MarshalTo(dAtA []byte) (int, error)

func (*VirtualService) MarshalToSizedBuffer

func (m *VirtualService) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VirtualService) ProtoMessage

func (*VirtualService) ProtoMessage()

func (*VirtualService) Reset

func (m *VirtualService) Reset()

func (*VirtualService) Size

func (m *VirtualService) Size() (n int)

func (*VirtualService) String

func (m *VirtualService) String() string

func (*VirtualService) Unmarshal

func (m *VirtualService) Unmarshal(dAtA []byte) error

func (*VirtualService) UnmarshalJSON

func (this *VirtualService) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for VirtualService

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 WorkloadEntry

type WorkloadEntry struct {
	// Address associated with the network endpoint without the
	// port.  Domain names can be used if and only if the resolution is set
	// to DNS, and must be fully-qualified without wildcards. Use the form
	// unix:///absolute/path/to/socket for Unix domain socket endpoints.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Set of ports associated with the endpoint. The ports must be
	// associated with a port name that was declared as part of the
	// service. Do not use for `unix://` addresses.
	Ports map[string]uint32 `` /* 152-byte string literal not displayed */
	// One or more labels associated with the endpoint.
	Labels map[string]string `` /* 153-byte string literal not displayed */
	// Network enables Istio to group endpoints resident in the same L3
	// domain/network. All endpoints in the same network are assumed to be
	// directly reachable from one another. When endpoints in different
	// networks cannot reach each other directly, an Istio Gateway can be
	// used to establish connectivity (usually using the
	// `AUTO_PASSTHROUGH` mode in a Gateway Server). This is
	// an advanced configuration used typically for spanning an Istio mesh
	// over multiple clusters.
	Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
	// The locality associated with the endpoint. A locality corresponds
	// to a failure domain (e.g., country/region/zone). Arbitrary failure
	// domain hierarchies can be represented by separating each
	// encapsulating failure domain by /. For example, the locality of an
	// an endpoint in US, in US-East-1 region, within availability zone
	// az-1, in data center rack r11 can be represented as
	// us/us-east-1/az-1/r11. Istio will configure the sidecar to route to
	// endpoints within the same locality as the sidecar. If none of the
	// endpoints in the locality are available, endpoints parent locality
	// (but within the same network ID) will be chosen. For example, if
	// there are two endpoints in same network (networkID "n1"), say e1
	// with locality us/us-east-1/az-1/r11 and e2 with locality
	// us/us-east-1/az-2/r12, a sidecar from us/us-east-1/az-1/r11 locality
	// will prefer e1 from the same locality over e2 from a different
	// locality. Endpoint e2 could be the IP associated with a gateway
	// (that bridges networks n1 and n2), or the IP associated with a
	// standard service endpoint.
	Locality string `protobuf:"bytes,5,opt,name=locality,proto3" json:"locality,omitempty"`
	// The load balancing weight associated with the endpoint. Endpoints
	// with higher weights will receive proportionally higher traffic.
	Weight uint32 `protobuf:"varint,6,opt,name=weight,proto3" json:"weight,omitempty"`
	// The service account associated with the workload if a sidecar
	// is present in the workload. The service account must be present
	// in the same namespace as the configuration ( WorkloadEntry or a
	// ServiceEntry)
	ServiceAccount       string   `protobuf:"bytes,7,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

WorkloadEntry enables specifying the properties of a single non-Kubernetes workload such a VM or a bare metal services that can be referred to by service entries.

<!-- crd generation tags +cue-gen:WorkloadEntry:groupName:networking.istio.io +cue-gen:WorkloadEntry:version:v1beta1 +cue-gen:WorkloadEntry:annotations:helm.sh/resource-policy=keep +cue-gen:WorkloadEntry:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:WorkloadEntry:subresource:status +cue-gen:WorkloadEntry:scope:Namespaced +cue-gen:WorkloadEntry:resource:categories=istio-io,networking-istio-io,shortNames=we,plural=workloadentries +cue-gen:WorkloadEntry:printerColumn:name=Age,type=date,JSONPath=.metadata.creationTimestamp,description="CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" +cue-gen:WorkloadEntry:printerColumn:name=Address,type=string,JSONPath=.spec.address,description="Address associated with the network endpoint." +cue-gen:WorkloadEntry:preserveUnknownFields:false -->

<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->

func (*WorkloadEntry) DeepCopy

func (in *WorkloadEntry) DeepCopy() *WorkloadEntry

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadEntry. Required by controller-gen.

func (*WorkloadEntry) DeepCopyInto

func (in *WorkloadEntry) DeepCopyInto(out *WorkloadEntry)

DeepCopyInto supports using WorkloadEntry within kubernetes types, where deepcopy-gen is used.

func (*WorkloadEntry) Descriptor

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

func (*WorkloadEntry) GetAddress

func (m *WorkloadEntry) GetAddress() string

func (*WorkloadEntry) GetLabels

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

func (*WorkloadEntry) GetLocality

func (m *WorkloadEntry) GetLocality() string

func (*WorkloadEntry) GetNetwork

func (m *WorkloadEntry) GetNetwork() string

func (*WorkloadEntry) GetPorts

func (m *WorkloadEntry) GetPorts() map[string]uint32

func (*WorkloadEntry) GetServiceAccount

func (m *WorkloadEntry) GetServiceAccount() string

func (*WorkloadEntry) GetWeight

func (m *WorkloadEntry) GetWeight() uint32

func (*WorkloadEntry) Marshal

func (m *WorkloadEntry) Marshal() (dAtA []byte, err error)

func (*WorkloadEntry) MarshalJSON

func (this *WorkloadEntry) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadEntry

func (*WorkloadEntry) MarshalTo

func (m *WorkloadEntry) MarshalTo(dAtA []byte) (int, error)

func (*WorkloadEntry) MarshalToSizedBuffer

func (m *WorkloadEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WorkloadEntry) ProtoMessage

func (*WorkloadEntry) ProtoMessage()

func (*WorkloadEntry) Reset

func (m *WorkloadEntry) Reset()

func (*WorkloadEntry) Size

func (m *WorkloadEntry) Size() (n int)

func (*WorkloadEntry) String

func (m *WorkloadEntry) String() string

func (*WorkloadEntry) Unmarshal

func (m *WorkloadEntry) Unmarshal(dAtA []byte) error

func (*WorkloadEntry) UnmarshalJSON

func (this *WorkloadEntry) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadEntry

func (*WorkloadEntry) XXX_DiscardUnknown

func (m *WorkloadEntry) XXX_DiscardUnknown()

func (*WorkloadEntry) XXX_Marshal

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

func (*WorkloadEntry) XXX_Merge

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

func (*WorkloadEntry) XXX_Size

func (m *WorkloadEntry) XXX_Size() int

func (*WorkloadEntry) XXX_Unmarshal

func (m *WorkloadEntry) XXX_Unmarshal(b []byte) 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`, `Sidecar`, or `EnvoyFilter` configuration can be applied to a proxy. The matching criteria includes the metadata associated with a proxy, workload instance 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 instance to be selected. Currently, only label based selection mechanism is supported.

func (*WorkloadSelector) DeepCopy

func (in *WorkloadSelector) DeepCopy() *WorkloadSelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkloadSelector. Required by controller-gen.

func (*WorkloadSelector) DeepCopyInto

func (in *WorkloadSelector) DeepCopyInto(out *WorkloadSelector)

DeepCopyInto supports using WorkloadSelector within kubernetes types, where deepcopy-gen is used.

func (*WorkloadSelector) Descriptor

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

func (*WorkloadSelector) GetLabels

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

func (*WorkloadSelector) Marshal

func (m *WorkloadSelector) Marshal() (dAtA []byte, err error)

func (*WorkloadSelector) MarshalJSON

func (this *WorkloadSelector) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for WorkloadSelector

func (*WorkloadSelector) MarshalTo

func (m *WorkloadSelector) MarshalTo(dAtA []byte) (int, error)

func (*WorkloadSelector) MarshalToSizedBuffer

func (m *WorkloadSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WorkloadSelector) ProtoMessage

func (*WorkloadSelector) ProtoMessage()

func (*WorkloadSelector) Reset

func (m *WorkloadSelector) Reset()

func (*WorkloadSelector) Size

func (m *WorkloadSelector) Size() (n int)

func (*WorkloadSelector) String

func (m *WorkloadSelector) String() string

func (*WorkloadSelector) Unmarshal

func (m *WorkloadSelector) Unmarshal(dAtA []byte) error

func (*WorkloadSelector) UnmarshalJSON

func (this *WorkloadSelector) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for WorkloadSelector

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

Jump to

Keyboard shortcuts

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