Documentation ¶
Index ¶
- Variables
- type CaptureMode
- func (CaptureMode) Descriptor() protoreflect.EnumDescriptor
- func (x CaptureMode) Enum() *CaptureMode
- func (CaptureMode) EnumDescriptor() ([]byte, []int)deprecated
- func (x CaptureMode) Number() protoreflect.EnumNumber
- func (x CaptureMode) String() string
- func (CaptureMode) Type() protoreflect.EnumType
- type ClientTLSSettings
- func (*ClientTLSSettings) Descriptor() ([]byte, []int)deprecated
- func (x *ClientTLSSettings) GetCaCertificates() string
- func (x *ClientTLSSettings) GetClientCertificate() string
- func (x *ClientTLSSettings) GetCredentialName() string
- func (x *ClientTLSSettings) GetInsecureSkipVerify() *wrapperspb.BoolValue
- func (x *ClientTLSSettings) GetMode() ClientTLSSettings_TLSmode
- func (x *ClientTLSSettings) GetPrivateKey() string
- func (x *ClientTLSSettings) GetSni() string
- func (x *ClientTLSSettings) GetSubjectAltNames() []string
- func (*ClientTLSSettings) ProtoMessage()
- func (x *ClientTLSSettings) ProtoReflect() protoreflect.Message
- func (x *ClientTLSSettings) Reset()
- func (x *ClientTLSSettings) String() string
- type ClientTLSSettings_TLSmode
- func (ClientTLSSettings_TLSmode) Descriptor() protoreflect.EnumDescriptor
- func (x ClientTLSSettings_TLSmode) Enum() *ClientTLSSettings_TLSmode
- func (ClientTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ClientTLSSettings_TLSmode) Number() protoreflect.EnumNumber
- func (x ClientTLSSettings_TLSmode) String() string
- func (ClientTLSSettings_TLSmode) Type() protoreflect.EnumType
- type ConnectionPoolSettings
- func (*ConnectionPoolSettings) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionPoolSettings) GetHttp() *ConnectionPoolSettings_HTTPSettings
- func (x *ConnectionPoolSettings) GetTcp() *ConnectionPoolSettings_TCPSettings
- func (*ConnectionPoolSettings) ProtoMessage()
- func (x *ConnectionPoolSettings) ProtoReflect() protoreflect.Message
- func (x *ConnectionPoolSettings) Reset()
- func (x *ConnectionPoolSettings) String() string
- type ConnectionPoolSettings_HTTPSettings
- func (*ConnectionPoolSettings_HTTPSettings) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy() ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy
- func (x *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32
- func (x *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32
- func (x *ConnectionPoolSettings_HTTPSettings) GetIdleTimeout() *durationpb.Duration
- func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32
- func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32
- func (x *ConnectionPoolSettings_HTTPSettings) GetUseClientProtocol() bool
- func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()
- func (x *ConnectionPoolSettings_HTTPSettings) ProtoReflect() protoreflect.Message
- func (x *ConnectionPoolSettings_HTTPSettings) Reset()
- func (x *ConnectionPoolSettings_HTTPSettings) String() string
- type ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy
- func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Descriptor() protoreflect.EnumDescriptor
- func (x ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Enum() *ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy
- func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Number() protoreflect.EnumNumber
- func (x ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String() string
- func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Type() protoreflect.EnumType
- type ConnectionPoolSettings_TCPSettings
- func (*ConnectionPoolSettings_TCPSettings) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionPoolSettings_TCPSettings) GetConnectTimeout() *durationpb.Duration
- func (x *ConnectionPoolSettings_TCPSettings) GetMaxConnections() int32
- func (x *ConnectionPoolSettings_TCPSettings) GetTcpKeepalive() *ConnectionPoolSettings_TCPSettings_TcpKeepalive
- func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()
- func (x *ConnectionPoolSettings_TCPSettings) ProtoReflect() protoreflect.Message
- func (x *ConnectionPoolSettings_TCPSettings) Reset()
- func (x *ConnectionPoolSettings_TCPSettings) String() string
- type ConnectionPoolSettings_TCPSettings_TcpKeepalive
- func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor() ([]byte, []int)deprecated
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval() *durationpb.Duration
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes() uint32
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime() *durationpb.Duration
- func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage()
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoReflect() protoreflect.Message
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset()
- func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) String() string
- type CorsPolicy
- func (*CorsPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *CorsPolicy) GetAllowCredentials() *wrapperspb.BoolValue
- func (x *CorsPolicy) GetAllowHeaders() []string
- func (x *CorsPolicy) GetAllowMethods() []string
- func (x *CorsPolicy) GetAllowOrigin() []stringdeprecated
- func (x *CorsPolicy) GetAllowOrigins() []*StringMatch
- func (x *CorsPolicy) GetExposeHeaders() []string
- func (x *CorsPolicy) GetMaxAge() *durationpb.Duration
- func (*CorsPolicy) ProtoMessage()
- func (x *CorsPolicy) ProtoReflect() protoreflect.Message
- func (x *CorsPolicy) Reset()
- func (x *CorsPolicy) String() string
- type Delegate
- type Destination
- func (*Destination) Descriptor() ([]byte, []int)deprecated
- func (x *Destination) GetHost() string
- func (x *Destination) GetPort() *PortSelector
- func (x *Destination) GetSubset() string
- func (*Destination) ProtoMessage()
- func (x *Destination) ProtoReflect() protoreflect.Message
- func (x *Destination) Reset()
- func (x *Destination) String() string
- type DestinationRule
- func (*DestinationRule) Descriptor() ([]byte, []int)deprecated
- func (x *DestinationRule) GetExportTo() []string
- func (x *DestinationRule) GetHost() string
- func (x *DestinationRule) GetSubsets() []*Subset
- func (x *DestinationRule) GetTrafficPolicy() *TrafficPolicy
- func (*DestinationRule) ProtoMessage()
- func (x *DestinationRule) ProtoReflect() protoreflect.Message
- func (x *DestinationRule) Reset()
- func (x *DestinationRule) String() string
- type ExecHealthCheckConfig
- func (*ExecHealthCheckConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ExecHealthCheckConfig) GetCommand() []string
- func (*ExecHealthCheckConfig) ProtoMessage()
- func (x *ExecHealthCheckConfig) ProtoReflect() protoreflect.Message
- func (x *ExecHealthCheckConfig) Reset()
- func (x *ExecHealthCheckConfig) String() string
- type Gateway
- type HTTPFaultInjection
- func (*HTTPFaultInjection) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPFaultInjection) GetAbort() *HTTPFaultInjection_Abort
- func (x *HTTPFaultInjection) GetDelay() *HTTPFaultInjection_Delay
- func (*HTTPFaultInjection) ProtoMessage()
- func (x *HTTPFaultInjection) ProtoReflect() protoreflect.Message
- func (x *HTTPFaultInjection) Reset()
- func (x *HTTPFaultInjection) String() string
- type HTTPFaultInjection_Abort
- func (*HTTPFaultInjection_Abort) Descriptor() ([]byte, []int)deprecated
- func (m *HTTPFaultInjection_Abort) GetErrorType() isHTTPFaultInjection_Abort_ErrorType
- func (x *HTTPFaultInjection_Abort) GetGrpcStatus() string
- func (x *HTTPFaultInjection_Abort) GetHttp2Error() string
- func (x *HTTPFaultInjection_Abort) GetHttpStatus() int32
- func (x *HTTPFaultInjection_Abort) GetPercentage() *Percent
- func (*HTTPFaultInjection_Abort) ProtoMessage()
- func (x *HTTPFaultInjection_Abort) ProtoReflect() protoreflect.Message
- func (x *HTTPFaultInjection_Abort) Reset()
- func (x *HTTPFaultInjection_Abort) String() string
- type HTTPFaultInjection_Abort_GrpcStatus
- type HTTPFaultInjection_Abort_Http2Error
- type HTTPFaultInjection_Abort_HttpStatus
- type HTTPFaultInjection_Delay
- func (*HTTPFaultInjection_Delay) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPFaultInjection_Delay) GetExponentialDelay() *durationpb.Duration
- func (x *HTTPFaultInjection_Delay) GetFixedDelay() *durationpb.Duration
- func (m *HTTPFaultInjection_Delay) GetHttpDelayType() isHTTPFaultInjection_Delay_HttpDelayType
- func (x *HTTPFaultInjection_Delay) GetPercent() int32deprecated
- func (x *HTTPFaultInjection_Delay) GetPercentage() *Percent
- func (*HTTPFaultInjection_Delay) ProtoMessage()
- func (x *HTTPFaultInjection_Delay) ProtoReflect() protoreflect.Message
- func (x *HTTPFaultInjection_Delay) Reset()
- func (x *HTTPFaultInjection_Delay) String() string
- type HTTPFaultInjection_Delay_ExponentialDelay
- type HTTPFaultInjection_Delay_FixedDelay
- type HTTPHeader
- type HTTPHealthCheckConfig
- func (*HTTPHealthCheckConfig) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPHealthCheckConfig) GetHost() string
- func (x *HTTPHealthCheckConfig) GetHttpHeaders() []*HTTPHeader
- func (x *HTTPHealthCheckConfig) GetPath() string
- func (x *HTTPHealthCheckConfig) GetPort() uint32
- func (x *HTTPHealthCheckConfig) GetScheme() string
- func (*HTTPHealthCheckConfig) ProtoMessage()
- func (x *HTTPHealthCheckConfig) ProtoReflect() protoreflect.Message
- func (x *HTTPHealthCheckConfig) Reset()
- func (x *HTTPHealthCheckConfig) String() string
- type HTTPMatchRequest
- func (*HTTPMatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPMatchRequest) GetAuthority() *StringMatch
- func (x *HTTPMatchRequest) GetGateways() []string
- func (x *HTTPMatchRequest) GetHeaders() map[string]*StringMatch
- func (x *HTTPMatchRequest) GetIgnoreUriCase() bool
- func (x *HTTPMatchRequest) GetMethod() *StringMatch
- func (x *HTTPMatchRequest) GetName() string
- func (x *HTTPMatchRequest) GetPort() uint32
- func (x *HTTPMatchRequest) GetQueryParams() map[string]*StringMatch
- func (x *HTTPMatchRequest) GetScheme() *StringMatch
- func (x *HTTPMatchRequest) GetSourceLabels() map[string]string
- func (x *HTTPMatchRequest) GetSourceNamespace() string
- func (x *HTTPMatchRequest) GetUri() *StringMatch
- func (x *HTTPMatchRequest) GetWithoutHeaders() map[string]*StringMatch
- func (*HTTPMatchRequest) ProtoMessage()
- func (x *HTTPMatchRequest) ProtoReflect() protoreflect.Message
- func (x *HTTPMatchRequest) Reset()
- func (x *HTTPMatchRequest) String() string
- type HTTPRedirect
- func (*HTTPRedirect) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRedirect) GetAuthority() string
- func (x *HTTPRedirect) GetDerivePort() HTTPRedirect_RedirectPortSelection
- func (x *HTTPRedirect) GetPort() uint32
- func (x *HTTPRedirect) GetRedirectCode() uint32
- func (m *HTTPRedirect) GetRedirectPort() isHTTPRedirect_RedirectPort
- func (x *HTTPRedirect) GetScheme() string
- func (x *HTTPRedirect) GetUri() string
- func (*HTTPRedirect) ProtoMessage()
- func (x *HTTPRedirect) ProtoReflect() protoreflect.Message
- func (x *HTTPRedirect) Reset()
- func (x *HTTPRedirect) String() string
- type HTTPRedirect_DerivePort
- type HTTPRedirect_Port
- type HTTPRedirect_RedirectPortSelection
- func (HTTPRedirect_RedirectPortSelection) Descriptor() protoreflect.EnumDescriptor
- func (x HTTPRedirect_RedirectPortSelection) Enum() *HTTPRedirect_RedirectPortSelection
- func (HTTPRedirect_RedirectPortSelection) EnumDescriptor() ([]byte, []int)deprecated
- func (x HTTPRedirect_RedirectPortSelection) Number() protoreflect.EnumNumber
- func (x HTTPRedirect_RedirectPortSelection) String() string
- func (HTTPRedirect_RedirectPortSelection) Type() protoreflect.EnumType
- type HTTPRetry
- func (*HTTPRetry) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRetry) GetAttempts() int32
- func (x *HTTPRetry) GetPerTryTimeout() *durationpb.Duration
- func (x *HTTPRetry) GetRetryOn() string
- func (x *HTTPRetry) GetRetryRemoteLocalities() *wrapperspb.BoolValue
- func (*HTTPRetry) ProtoMessage()
- func (x *HTTPRetry) ProtoReflect() protoreflect.Message
- func (x *HTTPRetry) Reset()
- func (x *HTTPRetry) String() string
- type HTTPRewrite
- func (*HTTPRewrite) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRewrite) GetAuthority() string
- func (x *HTTPRewrite) GetUri() string
- func (*HTTPRewrite) ProtoMessage()
- func (x *HTTPRewrite) ProtoReflect() protoreflect.Message
- func (x *HTTPRewrite) Reset()
- func (x *HTTPRewrite) String() string
- type HTTPRoute
- func (*HTTPRoute) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRoute) GetCorsPolicy() *CorsPolicy
- func (x *HTTPRoute) GetDelegate() *Delegate
- func (x *HTTPRoute) GetFault() *HTTPFaultInjection
- func (x *HTTPRoute) GetHeaders() *Headers
- func (x *HTTPRoute) GetMatch() []*HTTPMatchRequest
- func (x *HTTPRoute) GetMirror() *Destination
- func (x *HTTPRoute) GetMirrorPercent() *wrapperspb.UInt32Valuedeprecated
- func (x *HTTPRoute) GetMirrorPercentage() *Percent
- func (x *HTTPRoute) GetName() string
- func (x *HTTPRoute) GetRedirect() *HTTPRedirect
- func (x *HTTPRoute) GetRetries() *HTTPRetry
- func (x *HTTPRoute) GetRewrite() *HTTPRewrite
- func (x *HTTPRoute) GetRoute() []*HTTPRouteDestination
- func (x *HTTPRoute) GetTimeout() *durationpb.Duration
- func (*HTTPRoute) ProtoMessage()
- func (x *HTTPRoute) ProtoReflect() protoreflect.Message
- func (x *HTTPRoute) Reset()
- func (x *HTTPRoute) String() string
- type HTTPRouteDestination
- func (*HTTPRouteDestination) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPRouteDestination) GetDestination() *Destination
- func (x *HTTPRouteDestination) GetHeaders() *Headers
- func (x *HTTPRouteDestination) GetWeight() int32
- func (*HTTPRouteDestination) ProtoMessage()
- func (x *HTTPRouteDestination) ProtoReflect() protoreflect.Message
- func (x *HTTPRouteDestination) Reset()
- func (x *HTTPRouteDestination) String() string
- type Headers
- func (*Headers) Descriptor() ([]byte, []int)deprecated
- func (x *Headers) GetRequest() *Headers_HeaderOperations
- func (x *Headers) GetResponse() *Headers_HeaderOperations
- func (*Headers) ProtoMessage()
- func (x *Headers) ProtoReflect() protoreflect.Message
- func (x *Headers) Reset()
- func (x *Headers) String() string
- type Headers_HeaderOperations
- func (*Headers_HeaderOperations) Descriptor() ([]byte, []int)deprecated
- func (x *Headers_HeaderOperations) GetAdd() map[string]string
- func (x *Headers_HeaderOperations) GetRemove() []string
- func (x *Headers_HeaderOperations) GetSet() map[string]string
- func (*Headers_HeaderOperations) ProtoMessage()
- func (x *Headers_HeaderOperations) ProtoReflect() protoreflect.Message
- func (x *Headers_HeaderOperations) Reset()
- func (x *Headers_HeaderOperations) String() string
- type IstioEgressListener
- func (*IstioEgressListener) Descriptor() ([]byte, []int)deprecated
- func (x *IstioEgressListener) GetBind() string
- func (x *IstioEgressListener) GetCaptureMode() CaptureMode
- func (x *IstioEgressListener) GetHosts() []string
- func (x *IstioEgressListener) GetPort() *Port
- func (*IstioEgressListener) ProtoMessage()
- func (x *IstioEgressListener) ProtoReflect() protoreflect.Message
- func (x *IstioEgressListener) Reset()
- func (x *IstioEgressListener) String() string
- type IstioIngressListener
- func (*IstioIngressListener) Descriptor() ([]byte, []int)deprecated
- func (x *IstioIngressListener) GetBind() string
- func (x *IstioIngressListener) GetCaptureMode() CaptureMode
- func (x *IstioIngressListener) GetDefaultEndpoint() string
- func (x *IstioIngressListener) GetPort() *Port
- func (x *IstioIngressListener) GetTls() *ServerTLSSettings
- func (*IstioIngressListener) ProtoMessage()
- func (x *IstioIngressListener) ProtoReflect() protoreflect.Message
- func (x *IstioIngressListener) Reset()
- func (x *IstioIngressListener) String() string
- type L4MatchAttributes
- func (*L4MatchAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *L4MatchAttributes) GetDestinationSubnets() []string
- func (x *L4MatchAttributes) GetGateways() []string
- func (x *L4MatchAttributes) GetPort() uint32
- func (x *L4MatchAttributes) GetSourceLabels() map[string]string
- func (x *L4MatchAttributes) GetSourceNamespace() string
- func (x *L4MatchAttributes) GetSourceSubnet() string
- func (*L4MatchAttributes) ProtoMessage()
- func (x *L4MatchAttributes) ProtoReflect() protoreflect.Message
- func (x *L4MatchAttributes) Reset()
- func (x *L4MatchAttributes) String() string
- type LoadBalancerSettings
- func (*LoadBalancerSettings) Descriptor() ([]byte, []int)deprecated
- func (x *LoadBalancerSettings) GetConsistentHash() *LoadBalancerSettings_ConsistentHashLB
- func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy
- func (x *LoadBalancerSettings) GetLocalityLbSetting() *LocalityLoadBalancerSetting
- func (x *LoadBalancerSettings) GetSimple() LoadBalancerSettings_SimpleLB
- func (*LoadBalancerSettings) ProtoMessage()
- func (x *LoadBalancerSettings) ProtoReflect() protoreflect.Message
- func (x *LoadBalancerSettings) Reset()
- func (x *LoadBalancerSettings) String() string
- type LoadBalancerSettings_ConsistentHash
- type LoadBalancerSettings_ConsistentHashLB
- func (*LoadBalancerSettings_ConsistentHashLB) Descriptor() ([]byte, []int)deprecated
- func (m *LoadBalancerSettings_ConsistentHashLB) GetHashKey() isLoadBalancerSettings_ConsistentHashLB_HashKey
- func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpCookie() *LoadBalancerSettings_ConsistentHashLB_HTTPCookie
- func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName() string
- func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName() string
- func (x *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64
- func (x *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool
- func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()
- func (x *LoadBalancerSettings_ConsistentHashLB) ProtoReflect() protoreflect.Message
- func (x *LoadBalancerSettings_ConsistentHashLB) Reset()
- func (x *LoadBalancerSettings_ConsistentHashLB) String() string
- type LoadBalancerSettings_ConsistentHashLB_HTTPCookie
- func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor() ([]byte, []int)deprecated
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName() string
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath() string
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl() *durationpb.Duration
- func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage()
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoReflect() protoreflect.Message
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset()
- func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String() string
- type LoadBalancerSettings_ConsistentHashLB_HttpCookie
- type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName
- type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName
- type LoadBalancerSettings_ConsistentHashLB_UseSourceIp
- type LoadBalancerSettings_Simple
- type LoadBalancerSettings_SimpleLB
- func (LoadBalancerSettings_SimpleLB) Descriptor() protoreflect.EnumDescriptor
- func (x LoadBalancerSettings_SimpleLB) Enum() *LoadBalancerSettings_SimpleLB
- func (LoadBalancerSettings_SimpleLB) EnumDescriptor() ([]byte, []int)deprecated
- func (x LoadBalancerSettings_SimpleLB) Number() protoreflect.EnumNumber
- func (x LoadBalancerSettings_SimpleLB) String() string
- func (LoadBalancerSettings_SimpleLB) Type() protoreflect.EnumType
- type LocalityLoadBalancerSetting
- func (*LocalityLoadBalancerSetting) Descriptor() ([]byte, []int)deprecated
- func (x *LocalityLoadBalancerSetting) GetDistribute() []*LocalityLoadBalancerSetting_Distribute
- func (x *LocalityLoadBalancerSetting) GetEnabled() *wrapperspb.BoolValue
- func (x *LocalityLoadBalancerSetting) GetFailover() []*LocalityLoadBalancerSetting_Failover
- func (x *LocalityLoadBalancerSetting) GetFailoverPriority() []string
- func (*LocalityLoadBalancerSetting) ProtoMessage()
- func (x *LocalityLoadBalancerSetting) ProtoReflect() protoreflect.Message
- func (x *LocalityLoadBalancerSetting) Reset()
- func (x *LocalityLoadBalancerSetting) String() string
- type LocalityLoadBalancerSetting_Distribute
- func (*LocalityLoadBalancerSetting_Distribute) Descriptor() ([]byte, []int)deprecated
- func (x *LocalityLoadBalancerSetting_Distribute) GetFrom() string
- func (x *LocalityLoadBalancerSetting_Distribute) GetTo() map[string]uint32
- func (*LocalityLoadBalancerSetting_Distribute) ProtoMessage()
- func (x *LocalityLoadBalancerSetting_Distribute) ProtoReflect() protoreflect.Message
- func (x *LocalityLoadBalancerSetting_Distribute) Reset()
- func (x *LocalityLoadBalancerSetting_Distribute) String() string
- type LocalityLoadBalancerSetting_Failover
- func (*LocalityLoadBalancerSetting_Failover) Descriptor() ([]byte, []int)deprecated
- func (x *LocalityLoadBalancerSetting_Failover) GetFrom() string
- func (x *LocalityLoadBalancerSetting_Failover) GetTo() string
- func (*LocalityLoadBalancerSetting_Failover) ProtoMessage()
- func (x *LocalityLoadBalancerSetting_Failover) ProtoReflect() protoreflect.Message
- func (x *LocalityLoadBalancerSetting_Failover) Reset()
- func (x *LocalityLoadBalancerSetting_Failover) String() string
- type OutboundTrafficPolicy
- func (*OutboundTrafficPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *OutboundTrafficPolicy) GetEgressProxy() *Destination
- func (x *OutboundTrafficPolicy) GetMode() OutboundTrafficPolicy_Mode
- func (*OutboundTrafficPolicy) ProtoMessage()
- func (x *OutboundTrafficPolicy) ProtoReflect() protoreflect.Message
- func (x *OutboundTrafficPolicy) Reset()
- func (x *OutboundTrafficPolicy) String() string
- type OutboundTrafficPolicy_Mode
- func (OutboundTrafficPolicy_Mode) Descriptor() protoreflect.EnumDescriptor
- func (x OutboundTrafficPolicy_Mode) Enum() *OutboundTrafficPolicy_Mode
- func (OutboundTrafficPolicy_Mode) EnumDescriptor() ([]byte, []int)deprecated
- func (x OutboundTrafficPolicy_Mode) Number() protoreflect.EnumNumber
- func (x OutboundTrafficPolicy_Mode) String() string
- func (OutboundTrafficPolicy_Mode) Type() protoreflect.EnumType
- type OutlierDetection
- func (*OutlierDetection) Descriptor() ([]byte, []int)deprecated
- func (x *OutlierDetection) GetBaseEjectionTime() *durationpb.Duration
- func (x *OutlierDetection) GetConsecutiveErrors() int32deprecated
- func (x *OutlierDetection) GetConsecutiveGatewayErrors() *wrapperspb.UInt32Value
- func (x *OutlierDetection) GetConsecutiveLocalOriginFailures() *wrapperspb.UInt32Value
- func (x *OutlierDetection) GetConsecutive_5XxErrors() *wrapperspb.UInt32Value
- func (x *OutlierDetection) GetInterval() *durationpb.Duration
- func (x *OutlierDetection) GetMaxEjectionPercent() int32
- func (x *OutlierDetection) GetMinHealthPercent() int32
- func (x *OutlierDetection) GetSplitExternalLocalOriginErrors() bool
- func (*OutlierDetection) ProtoMessage()
- func (x *OutlierDetection) ProtoReflect() protoreflect.Message
- func (x *OutlierDetection) Reset()
- func (x *OutlierDetection) String() string
- type Percent
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetName() string
- func (x *Port) GetNumber() uint32
- func (x *Port) GetProtocol() string
- func (x *Port) GetTargetPort() uint32
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- type PortSelector
- type ProxyConfig
- func (*ProxyConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ProxyConfig) GetConcurrency() *wrapperspb.Int32Value
- func (x *ProxyConfig) GetEnvironmentVariables() map[string]string
- func (x *ProxyConfig) GetImage() *ProxyImage
- func (x *ProxyConfig) GetSelector() *v1beta1.WorkloadSelector
- func (*ProxyConfig) ProtoMessage()
- func (x *ProxyConfig) ProtoReflect() protoreflect.Message
- func (x *ProxyConfig) Reset()
- func (x *ProxyConfig) String() string
- type ProxyImage
- type ReadinessProbe
- func (*ReadinessProbe) Descriptor() ([]byte, []int)deprecated
- func (x *ReadinessProbe) GetExec() *ExecHealthCheckConfig
- func (x *ReadinessProbe) GetFailureThreshold() int32
- func (m *ReadinessProbe) GetHealthCheckMethod() isReadinessProbe_HealthCheckMethod
- func (x *ReadinessProbe) GetHttpGet() *HTTPHealthCheckConfig
- func (x *ReadinessProbe) GetInitialDelaySeconds() int32
- func (x *ReadinessProbe) GetPeriodSeconds() int32
- func (x *ReadinessProbe) GetSuccessThreshold() int32
- func (x *ReadinessProbe) GetTcpSocket() *TCPHealthCheckConfig
- func (x *ReadinessProbe) GetTimeoutSeconds() int32
- func (*ReadinessProbe) ProtoMessage()
- func (x *ReadinessProbe) ProtoReflect() protoreflect.Message
- func (x *ReadinessProbe) Reset()
- func (x *ReadinessProbe) String() string
- type ReadinessProbe_Exec
- type ReadinessProbe_HttpGet
- type ReadinessProbe_TcpSocket
- type RouteDestination
- func (*RouteDestination) Descriptor() ([]byte, []int)deprecated
- func (x *RouteDestination) GetDestination() *Destination
- func (x *RouteDestination) GetWeight() int32
- func (*RouteDestination) ProtoMessage()
- func (x *RouteDestination) ProtoReflect() protoreflect.Message
- func (x *RouteDestination) Reset()
- func (x *RouteDestination) String() string
- type Server
- func (*Server) Descriptor() ([]byte, []int)deprecated
- func (x *Server) GetBind() string
- func (x *Server) GetDefaultEndpoint() string
- func (x *Server) GetHosts() []string
- func (x *Server) GetName() string
- func (x *Server) GetPort() *Port
- func (x *Server) GetTls() *ServerTLSSettings
- func (*Server) ProtoMessage()
- func (x *Server) ProtoReflect() protoreflect.Message
- func (x *Server) Reset()
- func (x *Server) String() string
- type ServerTLSSettings
- func (*ServerTLSSettings) Descriptor() ([]byte, []int)deprecated
- func (x *ServerTLSSettings) GetCaCertificates() string
- func (x *ServerTLSSettings) GetCipherSuites() []string
- func (x *ServerTLSSettings) GetCredentialName() string
- func (x *ServerTLSSettings) GetHttpsRedirect() bool
- func (x *ServerTLSSettings) GetMaxProtocolVersion() ServerTLSSettings_TLSProtocol
- func (x *ServerTLSSettings) GetMinProtocolVersion() ServerTLSSettings_TLSProtocol
- func (x *ServerTLSSettings) GetMode() ServerTLSSettings_TLSmode
- func (x *ServerTLSSettings) GetPrivateKey() string
- func (x *ServerTLSSettings) GetServerCertificate() string
- func (x *ServerTLSSettings) GetSubjectAltNames() []string
- func (x *ServerTLSSettings) GetVerifyCertificateHash() []string
- func (x *ServerTLSSettings) GetVerifyCertificateSpki() []string
- func (*ServerTLSSettings) ProtoMessage()
- func (x *ServerTLSSettings) ProtoReflect() protoreflect.Message
- func (x *ServerTLSSettings) Reset()
- func (x *ServerTLSSettings) String() string
- type ServerTLSSettings_TLSProtocol
- func (ServerTLSSettings_TLSProtocol) Descriptor() protoreflect.EnumDescriptor
- func (x ServerTLSSettings_TLSProtocol) Enum() *ServerTLSSettings_TLSProtocol
- func (ServerTLSSettings_TLSProtocol) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServerTLSSettings_TLSProtocol) Number() protoreflect.EnumNumber
- func (x ServerTLSSettings_TLSProtocol) String() string
- func (ServerTLSSettings_TLSProtocol) Type() protoreflect.EnumType
- type ServerTLSSettings_TLSmode
- func (ServerTLSSettings_TLSmode) Descriptor() protoreflect.EnumDescriptor
- func (x ServerTLSSettings_TLSmode) Enum() *ServerTLSSettings_TLSmode
- func (ServerTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServerTLSSettings_TLSmode) Number() protoreflect.EnumNumber
- func (x ServerTLSSettings_TLSmode) String() string
- func (ServerTLSSettings_TLSmode) Type() protoreflect.EnumType
- type ServiceEntry
- func (*ServiceEntry) Descriptor() ([]byte, []int)deprecated
- func (x *ServiceEntry) GetAddresses() []string
- func (x *ServiceEntry) GetEndpoints() []*WorkloadEntry
- func (x *ServiceEntry) GetExportTo() []string
- func (x *ServiceEntry) GetHosts() []string
- func (x *ServiceEntry) GetLocation() ServiceEntry_Location
- func (x *ServiceEntry) GetPorts() []*Port
- func (x *ServiceEntry) GetResolution() ServiceEntry_Resolution
- func (x *ServiceEntry) GetSubjectAltNames() []string
- func (x *ServiceEntry) GetWorkloadSelector() *WorkloadSelector
- func (*ServiceEntry) ProtoMessage()
- func (x *ServiceEntry) ProtoReflect() protoreflect.Message
- func (x *ServiceEntry) Reset()
- func (x *ServiceEntry) String() string
- type ServiceEntry_Location
- func (ServiceEntry_Location) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceEntry_Location) Enum() *ServiceEntry_Location
- func (ServiceEntry_Location) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceEntry_Location) Number() protoreflect.EnumNumber
- func (x ServiceEntry_Location) String() string
- func (ServiceEntry_Location) Type() protoreflect.EnumType
- type ServiceEntry_Resolution
- func (ServiceEntry_Resolution) Descriptor() protoreflect.EnumDescriptor
- func (x ServiceEntry_Resolution) Enum() *ServiceEntry_Resolution
- func (ServiceEntry_Resolution) EnumDescriptor() ([]byte, []int)deprecated
- func (x ServiceEntry_Resolution) Number() protoreflect.EnumNumber
- func (x ServiceEntry_Resolution) String() string
- func (ServiceEntry_Resolution) Type() protoreflect.EnumType
- type Sidecar
- func (*Sidecar) Descriptor() ([]byte, []int)deprecated
- func (x *Sidecar) GetEgress() []*IstioEgressListener
- func (x *Sidecar) GetIngress() []*IstioIngressListener
- func (x *Sidecar) GetOutboundTrafficPolicy() *OutboundTrafficPolicy
- func (x *Sidecar) GetWorkloadSelector() *WorkloadSelector
- func (*Sidecar) ProtoMessage()
- func (x *Sidecar) ProtoReflect() protoreflect.Message
- func (x *Sidecar) Reset()
- func (x *Sidecar) String() string
- type StringMatch
- func (*StringMatch) Descriptor() ([]byte, []int)deprecated
- func (x *StringMatch) GetExact() string
- func (m *StringMatch) GetMatchType() isStringMatch_MatchType
- func (x *StringMatch) GetPrefix() string
- func (x *StringMatch) GetRegex() string
- func (*StringMatch) ProtoMessage()
- func (x *StringMatch) ProtoReflect() protoreflect.Message
- func (x *StringMatch) Reset()
- func (x *StringMatch) String() string
- type StringMatch_Exact
- type StringMatch_Prefix
- type StringMatch_Regex
- type Subset
- func (*Subset) Descriptor() ([]byte, []int)deprecated
- func (x *Subset) GetLabels() map[string]string
- func (x *Subset) GetName() string
- func (x *Subset) GetTrafficPolicy() *TrafficPolicy
- func (*Subset) ProtoMessage()
- func (x *Subset) ProtoReflect() protoreflect.Message
- func (x *Subset) Reset()
- func (x *Subset) String() string
- type TCPHealthCheckConfig
- func (*TCPHealthCheckConfig) Descriptor() ([]byte, []int)deprecated
- func (x *TCPHealthCheckConfig) GetHost() string
- func (x *TCPHealthCheckConfig) GetPort() uint32
- func (*TCPHealthCheckConfig) ProtoMessage()
- func (x *TCPHealthCheckConfig) ProtoReflect() protoreflect.Message
- func (x *TCPHealthCheckConfig) Reset()
- func (x *TCPHealthCheckConfig) String() string
- type TCPRoute
- func (*TCPRoute) Descriptor() ([]byte, []int)deprecated
- func (x *TCPRoute) GetMatch() []*L4MatchAttributes
- func (x *TCPRoute) GetRoute() []*RouteDestination
- func (*TCPRoute) ProtoMessage()
- func (x *TCPRoute) ProtoReflect() protoreflect.Message
- func (x *TCPRoute) Reset()
- func (x *TCPRoute) String() string
- type TLSMatchAttributes
- func (*TLSMatchAttributes) Descriptor() ([]byte, []int)deprecated
- func (x *TLSMatchAttributes) GetDestinationSubnets() []string
- func (x *TLSMatchAttributes) GetGateways() []string
- func (x *TLSMatchAttributes) GetPort() uint32
- func (x *TLSMatchAttributes) GetSniHosts() []string
- func (x *TLSMatchAttributes) GetSourceLabels() map[string]string
- func (x *TLSMatchAttributes) GetSourceNamespace() string
- func (*TLSMatchAttributes) ProtoMessage()
- func (x *TLSMatchAttributes) ProtoReflect() protoreflect.Message
- func (x *TLSMatchAttributes) Reset()
- func (x *TLSMatchAttributes) String() string
- type TLSRoute
- func (*TLSRoute) Descriptor() ([]byte, []int)deprecated
- func (x *TLSRoute) GetMatch() []*TLSMatchAttributes
- func (x *TLSRoute) GetRoute() []*RouteDestination
- func (*TLSRoute) ProtoMessage()
- func (x *TLSRoute) ProtoReflect() protoreflect.Message
- func (x *TLSRoute) Reset()
- func (x *TLSRoute) String() string
- type TrafficPolicy
- func (*TrafficPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficPolicy) GetConnectionPool() *ConnectionPoolSettings
- func (x *TrafficPolicy) GetLoadBalancer() *LoadBalancerSettings
- func (x *TrafficPolicy) GetOutlierDetection() *OutlierDetection
- func (x *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolicy
- func (x *TrafficPolicy) GetTls() *ClientTLSSettings
- func (*TrafficPolicy) ProtoMessage()
- func (x *TrafficPolicy) ProtoReflect() protoreflect.Message
- func (x *TrafficPolicy) Reset()
- func (x *TrafficPolicy) String() string
- type TrafficPolicy_PortTrafficPolicy
- func (*TrafficPolicy_PortTrafficPolicy) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficPolicy_PortTrafficPolicy) GetConnectionPool() *ConnectionPoolSettings
- func (x *TrafficPolicy_PortTrafficPolicy) GetLoadBalancer() *LoadBalancerSettings
- func (x *TrafficPolicy_PortTrafficPolicy) GetOutlierDetection() *OutlierDetection
- func (x *TrafficPolicy_PortTrafficPolicy) GetPort() *PortSelector
- func (x *TrafficPolicy_PortTrafficPolicy) GetTls() *ClientTLSSettings
- func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()
- func (x *TrafficPolicy_PortTrafficPolicy) ProtoReflect() protoreflect.Message
- func (x *TrafficPolicy_PortTrafficPolicy) Reset()
- func (x *TrafficPolicy_PortTrafficPolicy) String() string
- type VirtualService
- func (*VirtualService) Descriptor() ([]byte, []int)deprecated
- func (x *VirtualService) GetExportTo() []string
- func (x *VirtualService) GetGateways() []string
- func (x *VirtualService) GetHosts() []string
- func (x *VirtualService) GetHttp() []*HTTPRoute
- func (x *VirtualService) GetTcp() []*TCPRoute
- func (x *VirtualService) GetTls() []*TLSRoute
- func (*VirtualService) ProtoMessage()
- func (x *VirtualService) ProtoReflect() protoreflect.Message
- func (x *VirtualService) Reset()
- func (x *VirtualService) String() string
- type WorkloadEntry
- func (*WorkloadEntry) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadEntry) GetAddress() string
- func (x *WorkloadEntry) GetLabels() map[string]string
- func (x *WorkloadEntry) GetLocality() string
- func (x *WorkloadEntry) GetNetwork() string
- func (x *WorkloadEntry) GetPorts() map[string]uint32
- func (x *WorkloadEntry) GetServiceAccount() string
- func (x *WorkloadEntry) GetWeight() uint32
- func (*WorkloadEntry) ProtoMessage()
- func (x *WorkloadEntry) ProtoReflect() protoreflect.Message
- func (x *WorkloadEntry) Reset()
- func (x *WorkloadEntry) String() string
- type WorkloadGroup
- func (*WorkloadGroup) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadGroup) GetMetadata() *WorkloadGroup_ObjectMeta
- func (x *WorkloadGroup) GetProbe() *ReadinessProbe
- func (x *WorkloadGroup) GetTemplate() *WorkloadEntry
- func (*WorkloadGroup) ProtoMessage()
- func (x *WorkloadGroup) ProtoReflect() protoreflect.Message
- func (x *WorkloadGroup) Reset()
- func (x *WorkloadGroup) String() string
- type WorkloadGroup_ObjectMeta
- func (*WorkloadGroup_ObjectMeta) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadGroup_ObjectMeta) GetAnnotations() map[string]string
- func (x *WorkloadGroup_ObjectMeta) GetLabels() map[string]string
- func (*WorkloadGroup_ObjectMeta) ProtoMessage()
- func (x *WorkloadGroup_ObjectMeta) ProtoReflect() protoreflect.Message
- func (x *WorkloadGroup_ObjectMeta) Reset()
- func (x *WorkloadGroup_ObjectMeta) String() string
- type WorkloadSelector
- func (*WorkloadSelector) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadSelector) GetLabels() map[string]string
- func (*WorkloadSelector) ProtoMessage()
- func (x *WorkloadSelector) ProtoReflect() protoreflect.Message
- func (x *WorkloadSelector) Reset()
- func (x *WorkloadSelector) String() string
Constants ¶
This section is empty.
Variables ¶
var ( LoadBalancerSettings_SimpleLB_name = map[int32]string{ 0: "ROUND_ROBIN", 1: "LEAST_CONN", 2: "RANDOM", 3: "PASSTHROUGH", } LoadBalancerSettings_SimpleLB_value = map[string]int32{ "ROUND_ROBIN": 0, "LEAST_CONN": 1, "RANDOM": 2, "PASSTHROUGH": 3, } )
Enum value maps for LoadBalancerSettings_SimpleLB.
var ( ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_name = map[int32]string{ 0: "DEFAULT", 1: "DO_NOT_UPGRADE", 2: "UPGRADE", } ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy_value = map[string]int32{ "DEFAULT": 0, "DO_NOT_UPGRADE": 1, "UPGRADE": 2, } )
Enum value maps for ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy.
var ( ClientTLSSettings_TLSmode_name = map[int32]string{ 0: "DISABLE", 1: "SIMPLE", 2: "MUTUAL", 3: "ISTIO_MUTUAL", } ClientTLSSettings_TLSmode_value = map[string]int32{ "DISABLE": 0, "SIMPLE": 1, "MUTUAL": 2, "ISTIO_MUTUAL": 3, } )
Enum value maps for ClientTLSSettings_TLSmode.
var ( ServerTLSSettings_TLSmode_name = map[int32]string{ 0: "PASSTHROUGH", 1: "SIMPLE", 2: "MUTUAL", 3: "AUTO_PASSTHROUGH", 4: "ISTIO_MUTUAL", } ServerTLSSettings_TLSmode_value = map[string]int32{ "PASSTHROUGH": 0, "SIMPLE": 1, "MUTUAL": 2, "AUTO_PASSTHROUGH": 3, "ISTIO_MUTUAL": 4, } )
Enum value maps for ServerTLSSettings_TLSmode.
var ( ServerTLSSettings_TLSProtocol_name = map[int32]string{ 0: "TLS_AUTO", 1: "TLSV1_0", 2: "TLSV1_1", 3: "TLSV1_2", 4: "TLSV1_3", } ServerTLSSettings_TLSProtocol_value = map[string]int32{ "TLS_AUTO": 0, "TLSV1_0": 1, "TLSV1_1": 2, "TLSV1_2": 3, "TLSV1_3": 4, } )
Enum value maps for ServerTLSSettings_TLSProtocol.
var ( ServiceEntry_Location_name = map[int32]string{ 0: "MESH_EXTERNAL", 1: "MESH_INTERNAL", } ServiceEntry_Location_value = map[string]int32{ "MESH_EXTERNAL": 0, "MESH_INTERNAL": 1, } )
Enum value maps for ServiceEntry_Location.
var ( ServiceEntry_Resolution_name = map[int32]string{ 0: "NONE", 1: "STATIC", 2: "DNS", 3: "DNS_ROUND_ROBIN", } ServiceEntry_Resolution_value = map[string]int32{ "NONE": 0, "STATIC": 1, "DNS": 2, "DNS_ROUND_ROBIN": 3, } )
Enum value maps for ServiceEntry_Resolution.
var ( CaptureMode_name = map[int32]string{ 0: "DEFAULT", 1: "IPTABLES", 2: "NONE", } CaptureMode_value = map[string]int32{ "DEFAULT": 0, "IPTABLES": 1, "NONE": 2, } )
Enum value maps for CaptureMode.
var ( OutboundTrafficPolicy_Mode_name = map[int32]string{ 0: "REGISTRY_ONLY", 1: "ALLOW_ANY", } OutboundTrafficPolicy_Mode_value = map[string]int32{ "REGISTRY_ONLY": 0, "ALLOW_ANY": 1, } )
Enum value maps for OutboundTrafficPolicy_Mode.
var ( HTTPRedirect_RedirectPortSelection_name = map[int32]string{ 0: "FROM_PROTOCOL_DEFAULT", 1: "FROM_REQUEST_PORT", } HTTPRedirect_RedirectPortSelection_value = map[string]int32{ "FROM_PROTOCOL_DEFAULT": 0, "FROM_REQUEST_PORT": 1, } )
Enum value maps for HTTPRedirect_RedirectPortSelection.
var File_networking_v1beta1_destination_rule_proto protoreflect.FileDescriptor
var File_networking_v1beta1_gateway_proto protoreflect.FileDescriptor
var File_networking_v1beta1_proxy_config_proto protoreflect.FileDescriptor
var File_networking_v1beta1_service_entry_proto protoreflect.FileDescriptor
var File_networking_v1beta1_sidecar_proto protoreflect.FileDescriptor
var File_networking_v1beta1_virtual_service_proto protoreflect.FileDescriptor
var File_networking_v1beta1_workload_entry_proto protoreflect.FileDescriptor
var File_networking_v1beta1_workload_group_proto protoreflect.FileDescriptor
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) Descriptor ¶
func (CaptureMode) Descriptor() protoreflect.EnumDescriptor
func (CaptureMode) Enum ¶
func (x CaptureMode) Enum() *CaptureMode
func (CaptureMode) EnumDescriptor
deprecated
func (CaptureMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use CaptureMode.Descriptor instead.
func (CaptureMode) Number ¶
func (x CaptureMode) Number() protoreflect.EnumNumber
func (CaptureMode) String ¶
func (x CaptureMode) String() string
func (CaptureMode) Type ¶
func (CaptureMode) Type() protoreflect.EnumType
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"` // The name of the secret that holds the TLS certs for the // client including the CA certificates. Secret must exist in the // same namespace with the proxy using the certificates. // The secret (of type `generic`)should contain the // following keys and values: `key: <privateKey>`, // `cert: <clientCert>`, `cacert: <CACertificate>`. // Here CACertificate is used to verify the server certificate. // Secret of type tls for client certificates along with // ca.crt key for CA certificates is also supported. // Only one of client certificates and CA certificate // or credentialName can be specified. // // **NOTE:** This field is currently applicable only at gateways. // Sidecars will continue to use the certificate paths. CredentialName string `protobuf:"bytes,7,opt,name=credential_name,json=credentialName,proto3" json:"credential_name,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"` // InsecureSkipVerify specifies whether the proxy should skip verifying the // CA signature and SAN for the server certificate corresponding to the host. // This flag should only be set if global CA signature verifcation is // enabled, `VerifyCertAtClient` environmental variable is set to `true`, // but no verification is desired for a specific host. If enabled with or // without `VerifyCertAtClient` enabled, verification of the CA signature and // SAN will be skipped. // // `InsecureSkipVerify` is `false` by default. // `VerifyCertAtClient` is `false` by default in Istio version 1.9 but will // be `true` by default in a later version where, going forward, it will be // enabled by default. InsecureSkipVerify *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=insecure_skip_verify,json=insecureSkipVerify,proto3" json:"insecure_skip_verify,omitempty"` // contains filtered or unexported fields }
SSL/TLS related settings for upstream connections. See Envoy's [TLS context](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto.html#common-tls-configuration) 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) Descriptor
deprecated
func (*ClientTLSSettings) Descriptor() ([]byte, []int)
Deprecated: Use ClientTLSSettings.ProtoReflect.Descriptor instead.
func (*ClientTLSSettings) GetCaCertificates ¶
func (x *ClientTLSSettings) GetCaCertificates() string
func (*ClientTLSSettings) GetClientCertificate ¶
func (x *ClientTLSSettings) GetClientCertificate() string
func (*ClientTLSSettings) GetCredentialName ¶
func (x *ClientTLSSettings) GetCredentialName() string
func (*ClientTLSSettings) GetInsecureSkipVerify ¶
func (x *ClientTLSSettings) GetInsecureSkipVerify() *wrapperspb.BoolValue
func (*ClientTLSSettings) GetMode ¶
func (x *ClientTLSSettings) GetMode() ClientTLSSettings_TLSmode
func (*ClientTLSSettings) GetPrivateKey ¶
func (x *ClientTLSSettings) GetPrivateKey() string
func (*ClientTLSSettings) GetSni ¶
func (x *ClientTLSSettings) GetSni() string
func (*ClientTLSSettings) GetSubjectAltNames ¶
func (x *ClientTLSSettings) GetSubjectAltNames() []string
func (*ClientTLSSettings) ProtoMessage ¶
func (*ClientTLSSettings) ProtoMessage()
func (*ClientTLSSettings) ProtoReflect ¶
func (x *ClientTLSSettings) ProtoReflect() protoreflect.Message
func (*ClientTLSSettings) Reset ¶
func (x *ClientTLSSettings) Reset()
func (*ClientTLSSettings) String ¶
func (x *ClientTLSSettings) String() string
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) Descriptor ¶
func (ClientTLSSettings_TLSmode) Descriptor() protoreflect.EnumDescriptor
func (ClientTLSSettings_TLSmode) Enum ¶
func (x ClientTLSSettings_TLSmode) Enum() *ClientTLSSettings_TLSmode
func (ClientTLSSettings_TLSmode) EnumDescriptor
deprecated
func (ClientTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClientTLSSettings_TLSmode.Descriptor instead.
func (ClientTLSSettings_TLSmode) Number ¶
func (x ClientTLSSettings_TLSmode) Number() protoreflect.EnumNumber
func (ClientTLSSettings_TLSmode) String ¶
func (x ClientTLSSettings_TLSmode) String() string
func (ClientTLSSettings_TLSmode) Type ¶
func (ClientTLSSettings_TLSmode) Type() protoreflect.EnumType
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*ConnectionPoolSettings) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionPoolSettings.ProtoReflect.Descriptor instead.
func (*ConnectionPoolSettings) GetHttp ¶
func (x *ConnectionPoolSettings) GetHttp() *ConnectionPoolSettings_HTTPSettings
func (*ConnectionPoolSettings) GetTcp ¶
func (x *ConnectionPoolSettings) GetTcp() *ConnectionPoolSettings_TCPSettings
func (*ConnectionPoolSettings) ProtoMessage ¶
func (*ConnectionPoolSettings) ProtoMessage()
func (*ConnectionPoolSettings) ProtoReflect ¶
func (x *ConnectionPoolSettings) ProtoReflect() protoreflect.Message
func (*ConnectionPoolSettings) Reset ¶
func (x *ConnectionPoolSettings) Reset()
func (*ConnectionPoolSettings) String ¶
func (x *ConnectionPoolSettings) String() string
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. If the connection is an HTTP/2 // connection a drain sequence will occur prior to closing the connection. // 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 *durationpb.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 */ // If set to true, client protocol will be preserved while initiating connection to backend. // Note that when this is set to true, h2_upgrade_policy will be ineffective i.e. the client // connections will not be upgraded to http2. UseClientProtocol bool `protobuf:"varint,7,opt,name=use_client_protocol,json=useClientProtocol,proto3" json:"use_client_protocol,omitempty"` // contains filtered or unexported fields }
Settings applicable to HTTP1.1/HTTP2/GRPC connections.
func (*ConnectionPoolSettings_HTTPSettings) Descriptor
deprecated
func (*ConnectionPoolSettings_HTTPSettings) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionPoolSettings_HTTPSettings.ProtoReflect.Descriptor instead.
func (*ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetH2UpgradePolicy() ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy
func (*ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetHttp1MaxPendingRequests() int32
func (*ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetHttp2MaxRequests() int32
func (*ConnectionPoolSettings_HTTPSettings) GetIdleTimeout ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetIdleTimeout() *durationpb.Duration
func (*ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRequestsPerConnection() int32
func (*ConnectionPoolSettings_HTTPSettings) GetMaxRetries ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetMaxRetries() int32
func (*ConnectionPoolSettings_HTTPSettings) GetUseClientProtocol ¶
func (x *ConnectionPoolSettings_HTTPSettings) GetUseClientProtocol() bool
func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage ¶
func (*ConnectionPoolSettings_HTTPSettings) ProtoMessage()
func (*ConnectionPoolSettings_HTTPSettings) ProtoReflect ¶
func (x *ConnectionPoolSettings_HTTPSettings) ProtoReflect() protoreflect.Message
func (*ConnectionPoolSettings_HTTPSettings) Reset ¶
func (x *ConnectionPoolSettings_HTTPSettings) Reset()
func (*ConnectionPoolSettings_HTTPSettings) String ¶
func (x *ConnectionPoolSettings_HTTPSettings) String() string
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) Descriptor ¶
func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Descriptor() protoreflect.EnumDescriptor
func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor
deprecated
func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy.Descriptor instead.
func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Number ¶
func (x ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) Number() protoreflect.EnumNumber
func (ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String ¶
func (x ConnectionPoolSettings_HTTPSettings_H2UpgradePolicy) String() 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. format: // 1h/1m/1s/1ms. MUST BE >=1ms. Default is 10s. ConnectTimeout *durationpb.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"` // contains filtered or unexported fields }
Settings common to both HTTP and TCP upstream connections.
func (*ConnectionPoolSettings_TCPSettings) Descriptor
deprecated
func (*ConnectionPoolSettings_TCPSettings) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionPoolSettings_TCPSettings.ProtoReflect.Descriptor instead.
func (*ConnectionPoolSettings_TCPSettings) GetConnectTimeout ¶
func (x *ConnectionPoolSettings_TCPSettings) GetConnectTimeout() *durationpb.Duration
func (*ConnectionPoolSettings_TCPSettings) GetMaxConnections ¶
func (x *ConnectionPoolSettings_TCPSettings) GetMaxConnections() int32
func (*ConnectionPoolSettings_TCPSettings) GetTcpKeepalive ¶
func (x *ConnectionPoolSettings_TCPSettings) GetTcpKeepalive() *ConnectionPoolSettings_TCPSettings_TcpKeepalive
func (*ConnectionPoolSettings_TCPSettings) ProtoMessage ¶
func (*ConnectionPoolSettings_TCPSettings) ProtoMessage()
func (*ConnectionPoolSettings_TCPSettings) ProtoReflect ¶
func (x *ConnectionPoolSettings_TCPSettings) ProtoReflect() protoreflect.Message
func (*ConnectionPoolSettings_TCPSettings) Reset ¶
func (x *ConnectionPoolSettings_TCPSettings) Reset()
func (*ConnectionPoolSettings_TCPSettings) String ¶
func (x *ConnectionPoolSettings_TCPSettings) String() string
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 *durationpb.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 *durationpb.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
TCP keepalive.
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor
deprecated
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Descriptor() ([]byte, []int)
Deprecated: Use ConnectionPoolSettings_TCPSettings_TcpKeepalive.ProtoReflect.Descriptor instead.
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetInterval() *durationpb.Duration
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetProbes() uint32
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) GetTime() *durationpb.Duration
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage ¶
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoMessage()
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoReflect ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) ProtoReflect() protoreflect.Message
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) Reset()
func (*ConnectionPoolSettings_TCPSettings_TcpKeepalive) String ¶
func (x *ConnectionPoolSettings_TCPSettings_TcpKeepalive) String() string
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 // // Deprecated: Do not use. AllowOrigin []string `protobuf:"bytes,1,rep,name=allow_origin,json=allowOrigin,proto3" json:"allow_origin,omitempty"` // 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 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 *durationpb.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 *wrapperspb.BoolValue `protobuf:"bytes,6,opt,name=allow_credentials,json=allowCredentials,proto3" json:"allow_credentials,omitempty"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*CorsPolicy) Descriptor() ([]byte, []int)
Deprecated: Use CorsPolicy.ProtoReflect.Descriptor instead.
func (*CorsPolicy) GetAllowCredentials ¶
func (x *CorsPolicy) GetAllowCredentials() *wrapperspb.BoolValue
func (*CorsPolicy) GetAllowHeaders ¶
func (x *CorsPolicy) GetAllowHeaders() []string
func (*CorsPolicy) GetAllowMethods ¶
func (x *CorsPolicy) GetAllowMethods() []string
func (*CorsPolicy) GetAllowOrigin
deprecated
func (x *CorsPolicy) GetAllowOrigin() []string
Deprecated: Do not use.
func (*CorsPolicy) GetAllowOrigins ¶
func (x *CorsPolicy) GetAllowOrigins() []*StringMatch
func (*CorsPolicy) GetExposeHeaders ¶
func (x *CorsPolicy) GetExposeHeaders() []string
func (*CorsPolicy) GetMaxAge ¶
func (x *CorsPolicy) GetMaxAge() *durationpb.Duration
func (*CorsPolicy) ProtoMessage ¶
func (*CorsPolicy) ProtoMessage()
func (*CorsPolicy) ProtoReflect ¶
func (x *CorsPolicy) ProtoReflect() protoreflect.Message
func (*CorsPolicy) Reset ¶
func (x *CorsPolicy) Reset()
func (*CorsPolicy) String ¶
func (x *CorsPolicy) String() string
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*Delegate) GetNamespace ¶
func (*Delegate) ProtoMessage ¶
func (*Delegate) ProtoMessage()
func (*Delegate) ProtoReflect ¶
func (x *Delegate) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*Destination) Descriptor() ([]byte, []int)
Deprecated: Use Destination.ProtoReflect.Descriptor instead.
func (*Destination) GetHost ¶
func (x *Destination) GetHost() string
func (*Destination) GetPort ¶
func (x *Destination) GetPort() *PortSelector
func (*Destination) GetSubset ¶
func (x *Destination) GetSubset() string
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) ProtoReflect ¶
func (x *Destination) ProtoReflect() protoreflect.Message
func (*Destination) Reset ¶
func (x *Destination) Reset()
func (*Destination) String ¶
func (x *Destination) String() string
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. ExportTo []string `protobuf:"bytes,4,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"` // contains filtered or unexported fields }
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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/destination_rule.proto -->
func (*DestinationRule) Descriptor
deprecated
func (*DestinationRule) Descriptor() ([]byte, []int)
Deprecated: Use DestinationRule.ProtoReflect.Descriptor instead.
func (*DestinationRule) GetExportTo ¶
func (x *DestinationRule) GetExportTo() []string
func (*DestinationRule) GetHost ¶
func (x *DestinationRule) GetHost() string
func (*DestinationRule) GetSubsets ¶
func (x *DestinationRule) GetSubsets() []*Subset
func (*DestinationRule) GetTrafficPolicy ¶
func (x *DestinationRule) GetTrafficPolicy() *TrafficPolicy
func (*DestinationRule) ProtoMessage ¶
func (*DestinationRule) ProtoMessage()
func (*DestinationRule) ProtoReflect ¶
func (x *DestinationRule) ProtoReflect() protoreflect.Message
func (*DestinationRule) Reset ¶
func (x *DestinationRule) Reset()
func (*DestinationRule) String ¶
func (x *DestinationRule) String() string
type ExecHealthCheckConfig ¶
type ExecHealthCheckConfig struct { // Command to run. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. Command []string `protobuf:"bytes,1,rep,name=command,proto3" json:"command,omitempty"` // contains filtered or unexported fields }
func (*ExecHealthCheckConfig) Descriptor
deprecated
func (*ExecHealthCheckConfig) Descriptor() ([]byte, []int)
Deprecated: Use ExecHealthCheckConfig.ProtoReflect.Descriptor instead.
func (*ExecHealthCheckConfig) GetCommand ¶
func (x *ExecHealthCheckConfig) GetCommand() []string
func (*ExecHealthCheckConfig) ProtoMessage ¶
func (*ExecHealthCheckConfig) ProtoMessage()
func (*ExecHealthCheckConfig) ProtoReflect ¶
func (x *ExecHealthCheckConfig) ProtoReflect() protoreflect.Message
func (*ExecHealthCheckConfig) Reset ¶
func (x *ExecHealthCheckConfig) Reset()
func (*ExecHealthCheckConfig) String ¶
func (x *ExecHealthCheckConfig) String() string
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. // By default workloads are searched across all namespaces based on label selectors. // This implies that a gateway resource in the namespace "foo" can select pods in // the namespace "bar" based on labels. // This behavior can be controlled via the `PILOT_SCOPE_GATEWAY_TO_NAMESPACE` // environment variable in istiod. If this variable is set // to true, 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 */ // contains filtered or unexported fields }
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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/gateway.proto -->
func (*Gateway) Descriptor
deprecated
func (*Gateway) GetSelector ¶
func (*Gateway) GetServers ¶
func (*Gateway) ProtoMessage ¶
func (*Gateway) ProtoMessage()
func (*Gateway) ProtoReflect ¶
func (x *Gateway) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
HTTPFaultInjection can be used to specify one or more faults to inject while forwarding HTTP requests to the destination specified in a route. Fault specification is part of a VirtualService rule. Faults include aborting the Http request from downstream service, and/or delaying proxying of requests. A fault rule MUST HAVE delay or abort or both.
*Note:* Delay and abort faults are independent of one another, even if both are specified simultaneously.
func (*HTTPFaultInjection) Descriptor
deprecated
func (*HTTPFaultInjection) Descriptor() ([]byte, []int)
Deprecated: Use HTTPFaultInjection.ProtoReflect.Descriptor instead.
func (*HTTPFaultInjection) GetAbort ¶
func (x *HTTPFaultInjection) GetAbort() *HTTPFaultInjection_Abort
func (*HTTPFaultInjection) GetDelay ¶
func (x *HTTPFaultInjection) GetDelay() *HTTPFaultInjection_Delay
func (*HTTPFaultInjection) ProtoMessage ¶
func (*HTTPFaultInjection) ProtoMessage()
func (*HTTPFaultInjection) ProtoReflect ¶
func (x *HTTPFaultInjection) ProtoReflect() protoreflect.Message
func (*HTTPFaultInjection) Reset ¶
func (x *HTTPFaultInjection) Reset()
func (*HTTPFaultInjection) String ¶
func (x *HTTPFaultInjection) String() string
type HTTPFaultInjection_Abort ¶
type HTTPFaultInjection_Abort struct { // Types that are assignable 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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPFaultInjection_Abort) Descriptor() ([]byte, []int)
Deprecated: Use HTTPFaultInjection_Abort.ProtoReflect.Descriptor instead.
func (*HTTPFaultInjection_Abort) GetErrorType ¶
func (m *HTTPFaultInjection_Abort) GetErrorType() isHTTPFaultInjection_Abort_ErrorType
func (*HTTPFaultInjection_Abort) GetGrpcStatus ¶
func (x *HTTPFaultInjection_Abort) GetGrpcStatus() string
func (*HTTPFaultInjection_Abort) GetHttp2Error ¶
func (x *HTTPFaultInjection_Abort) GetHttp2Error() string
func (*HTTPFaultInjection_Abort) GetHttpStatus ¶
func (x *HTTPFaultInjection_Abort) GetHttpStatus() int32
func (*HTTPFaultInjection_Abort) GetPercentage ¶
func (x *HTTPFaultInjection_Abort) GetPercentage() *Percent
func (*HTTPFaultInjection_Abort) ProtoMessage ¶
func (*HTTPFaultInjection_Abort) ProtoMessage()
func (*HTTPFaultInjection_Abort) ProtoReflect ¶
func (x *HTTPFaultInjection_Abort) ProtoReflect() protoreflect.Message
func (*HTTPFaultInjection_Abort) Reset ¶
func (x *HTTPFaultInjection_Abort) Reset()
func (*HTTPFaultInjection_Abort) String ¶
func (x *HTTPFaultInjection_Abort) String() string
type HTTPFaultInjection_Abort_GrpcStatus ¶
type HTTPFaultInjection_Abort_GrpcStatus struct { // $hide_from_docs GrpcStatus string `protobuf:"bytes,3,opt,name=grpc_status,json=grpcStatus,proto3,oneof"` }
type HTTPFaultInjection_Abort_Http2Error ¶
type HTTPFaultInjection_Abort_Http2Error struct { // $hide_from_docs Http2Error string `protobuf:"bytes,4,opt,name=http2_error,json=http2Error,proto3,oneof"` }
type HTTPFaultInjection_Abort_HttpStatus ¶
type HTTPFaultInjection_Abort_HttpStatus struct { // HTTP status code to use to abort the Http request. HttpStatus int32 `protobuf:"varint,2,opt,name=http_status,json=httpStatus,proto3,oneof"` }
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. // // Deprecated: Do not use. Percent int32 `protobuf:"varint,1,opt,name=percent,proto3" json:"percent,omitempty"` // Types that are assignable 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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPFaultInjection_Delay) Descriptor() ([]byte, []int)
Deprecated: Use HTTPFaultInjection_Delay.ProtoReflect.Descriptor instead.
func (*HTTPFaultInjection_Delay) GetExponentialDelay ¶
func (x *HTTPFaultInjection_Delay) GetExponentialDelay() *durationpb.Duration
func (*HTTPFaultInjection_Delay) GetFixedDelay ¶
func (x *HTTPFaultInjection_Delay) GetFixedDelay() *durationpb.Duration
func (*HTTPFaultInjection_Delay) GetHttpDelayType ¶
func (m *HTTPFaultInjection_Delay) GetHttpDelayType() isHTTPFaultInjection_Delay_HttpDelayType
func (*HTTPFaultInjection_Delay) GetPercent
deprecated
func (x *HTTPFaultInjection_Delay) GetPercent() int32
Deprecated: Do not use.
func (*HTTPFaultInjection_Delay) GetPercentage ¶
func (x *HTTPFaultInjection_Delay) GetPercentage() *Percent
func (*HTTPFaultInjection_Delay) ProtoMessage ¶
func (*HTTPFaultInjection_Delay) ProtoMessage()
func (*HTTPFaultInjection_Delay) ProtoReflect ¶
func (x *HTTPFaultInjection_Delay) ProtoReflect() protoreflect.Message
func (*HTTPFaultInjection_Delay) Reset ¶
func (x *HTTPFaultInjection_Delay) Reset()
func (*HTTPFaultInjection_Delay) String ¶
func (x *HTTPFaultInjection_Delay) String() string
type HTTPFaultInjection_Delay_ExponentialDelay ¶
type HTTPFaultInjection_Delay_ExponentialDelay struct { // $hide_from_docs ExponentialDelay *durationpb.Duration `protobuf:"bytes,3,opt,name=exponential_delay,json=exponentialDelay,proto3,oneof"` }
type HTTPFaultInjection_Delay_FixedDelay ¶
type HTTPFaultInjection_Delay_FixedDelay struct { // Add a fixed delay before forwarding the request. Format: // 1h/1m/1s/1ms. MUST be >=1ms. FixedDelay *durationpb.Duration `protobuf:"bytes,2,opt,name=fixed_delay,json=fixedDelay,proto3,oneof"` }
type HTTPHeader ¶
type HTTPHeader struct { // The header field name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The header field value Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*HTTPHeader) Descriptor
deprecated
func (*HTTPHeader) Descriptor() ([]byte, []int)
Deprecated: Use HTTPHeader.ProtoReflect.Descriptor instead.
func (*HTTPHeader) GetName ¶
func (x *HTTPHeader) GetName() string
func (*HTTPHeader) GetValue ¶
func (x *HTTPHeader) GetValue() string
func (*HTTPHeader) ProtoMessage ¶
func (*HTTPHeader) ProtoMessage()
func (*HTTPHeader) ProtoReflect ¶
func (x *HTTPHeader) ProtoReflect() protoreflect.Message
func (*HTTPHeader) Reset ¶
func (x *HTTPHeader) Reset()
func (*HTTPHeader) String ¶
func (x *HTTPHeader) String() string
type HTTPHealthCheckConfig ¶
type HTTPHealthCheckConfig struct { // Path to access on the HTTP server. Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // Port on which the endpoint lives. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // Host name to connect to, defaults to the pod IP. You probably want to set // "Host" in httpHeaders instead. Host string `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"` // HTTP or HTTPS, defaults to HTTP Scheme string `protobuf:"bytes,4,opt,name=scheme,proto3" json:"scheme,omitempty"` // Headers the proxy will pass on to make the request. // Allows repeated headers. HttpHeaders []*HTTPHeader `protobuf:"bytes,5,rep,name=http_headers,json=httpHeaders,proto3" json:"http_headers,omitempty"` // contains filtered or unexported fields }
func (*HTTPHealthCheckConfig) Descriptor
deprecated
func (*HTTPHealthCheckConfig) Descriptor() ([]byte, []int)
Deprecated: Use HTTPHealthCheckConfig.ProtoReflect.Descriptor instead.
func (*HTTPHealthCheckConfig) GetHost ¶
func (x *HTTPHealthCheckConfig) GetHost() string
func (*HTTPHealthCheckConfig) GetHttpHeaders ¶
func (x *HTTPHealthCheckConfig) GetHttpHeaders() []*HTTPHeader
func (*HTTPHealthCheckConfig) GetPath ¶
func (x *HTTPHealthCheckConfig) GetPath() string
func (*HTTPHealthCheckConfig) GetPort ¶
func (x *HTTPHealthCheckConfig) GetPort() uint32
func (*HTTPHealthCheckConfig) GetScheme ¶
func (x *HTTPHealthCheckConfig) GetScheme() string
func (*HTTPHealthCheckConfig) ProtoMessage ¶
func (*HTTPHealthCheckConfig) ProtoMessage()
func (*HTTPHealthCheckConfig) ProtoReflect ¶
func (x *HTTPHealthCheckConfig) ProtoReflect() protoreflect.Message
func (*HTTPHealthCheckConfig) Reset ¶
func (x *HTTPHealthCheckConfig) Reset()
func (*HTTPHealthCheckConfig) String ¶
func (x *HTTPHealthCheckConfig) String() string
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 RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). // // **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 RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). // 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 RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). // 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 RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). // 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 RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). // // 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 source (client) 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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPMatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use HTTPMatchRequest.ProtoReflect.Descriptor instead.
func (*HTTPMatchRequest) GetAuthority ¶
func (x *HTTPMatchRequest) GetAuthority() *StringMatch
func (*HTTPMatchRequest) GetGateways ¶
func (x *HTTPMatchRequest) GetGateways() []string
func (*HTTPMatchRequest) GetHeaders ¶
func (x *HTTPMatchRequest) GetHeaders() map[string]*StringMatch
func (*HTTPMatchRequest) GetIgnoreUriCase ¶
func (x *HTTPMatchRequest) GetIgnoreUriCase() bool
func (*HTTPMatchRequest) GetMethod ¶
func (x *HTTPMatchRequest) GetMethod() *StringMatch
func (*HTTPMatchRequest) GetName ¶
func (x *HTTPMatchRequest) GetName() string
func (*HTTPMatchRequest) GetPort ¶
func (x *HTTPMatchRequest) GetPort() uint32
func (*HTTPMatchRequest) GetQueryParams ¶
func (x *HTTPMatchRequest) GetQueryParams() map[string]*StringMatch
func (*HTTPMatchRequest) GetScheme ¶
func (x *HTTPMatchRequest) GetScheme() *StringMatch
func (*HTTPMatchRequest) GetSourceLabels ¶
func (x *HTTPMatchRequest) GetSourceLabels() map[string]string
func (*HTTPMatchRequest) GetSourceNamespace ¶
func (x *HTTPMatchRequest) GetSourceNamespace() string
func (*HTTPMatchRequest) GetUri ¶
func (x *HTTPMatchRequest) GetUri() *StringMatch
func (*HTTPMatchRequest) GetWithoutHeaders ¶
func (x *HTTPMatchRequest) GetWithoutHeaders() map[string]*StringMatch
func (*HTTPMatchRequest) ProtoMessage ¶
func (*HTTPMatchRequest) ProtoMessage()
func (*HTTPMatchRequest) ProtoReflect ¶
func (x *HTTPMatchRequest) ProtoReflect() protoreflect.Message
func (*HTTPMatchRequest) Reset ¶
func (x *HTTPMatchRequest) Reset()
func (*HTTPMatchRequest) String ¶
func (x *HTTPMatchRequest) String() string
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"` // Types that are assignable to RedirectPort: // *HTTPRedirect_Port // *HTTPRedirect_DerivePort RedirectPort isHTTPRedirect_RedirectPort `protobuf_oneof:"redirect_port"` // On a redirect, overwrite the scheme portion of the URL with this value. // For example, `http` or `https`. // If unset, the original scheme will be used. // If `derivePort` is set to `FROM_PROTOCOL_DEFAULT`, this will impact the port used as well Scheme string `protobuf:"bytes,6,opt,name=scheme,proto3" json:"scheme,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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPRedirect) Descriptor() ([]byte, []int)
Deprecated: Use HTTPRedirect.ProtoReflect.Descriptor instead.
func (*HTTPRedirect) GetAuthority ¶
func (x *HTTPRedirect) GetAuthority() string
func (*HTTPRedirect) GetDerivePort ¶
func (x *HTTPRedirect) GetDerivePort() HTTPRedirect_RedirectPortSelection
func (*HTTPRedirect) GetPort ¶
func (x *HTTPRedirect) GetPort() uint32
func (*HTTPRedirect) GetRedirectCode ¶
func (x *HTTPRedirect) GetRedirectCode() uint32
func (*HTTPRedirect) GetRedirectPort ¶
func (m *HTTPRedirect) GetRedirectPort() isHTTPRedirect_RedirectPort
func (*HTTPRedirect) GetScheme ¶
func (x *HTTPRedirect) GetScheme() string
func (*HTTPRedirect) GetUri ¶
func (x *HTTPRedirect) GetUri() string
func (*HTTPRedirect) ProtoMessage ¶
func (*HTTPRedirect) ProtoMessage()
func (*HTTPRedirect) ProtoReflect ¶
func (x *HTTPRedirect) ProtoReflect() protoreflect.Message
func (*HTTPRedirect) Reset ¶
func (x *HTTPRedirect) Reset()
func (*HTTPRedirect) String ¶
func (x *HTTPRedirect) String() string
type HTTPRedirect_DerivePort ¶
type HTTPRedirect_DerivePort struct { // On a redirect, dynamically set the port: // * FROM_PROTOCOL_DEFAULT: automatically set to 80 for HTTP and 443 for HTTPS. // * FROM_REQUEST_PORT: automatically use the port of the request. DerivePort HTTPRedirect_RedirectPortSelection `` /* 134-byte string literal not displayed */ }
type HTTPRedirect_Port ¶
type HTTPRedirect_Port struct { // On a redirect, overwrite the port portion of the URL with this value. Port uint32 `protobuf:"varint,4,opt,name=port,proto3,oneof"` }
type HTTPRedirect_RedirectPortSelection ¶
type HTTPRedirect_RedirectPortSelection int32
const ( HTTPRedirect_FROM_PROTOCOL_DEFAULT HTTPRedirect_RedirectPortSelection = 0 HTTPRedirect_FROM_REQUEST_PORT HTTPRedirect_RedirectPortSelection = 1 )
func (HTTPRedirect_RedirectPortSelection) Descriptor ¶
func (HTTPRedirect_RedirectPortSelection) Descriptor() protoreflect.EnumDescriptor
func (HTTPRedirect_RedirectPortSelection) Enum ¶
func (x HTTPRedirect_RedirectPortSelection) Enum() *HTTPRedirect_RedirectPortSelection
func (HTTPRedirect_RedirectPortSelection) EnumDescriptor
deprecated
func (HTTPRedirect_RedirectPortSelection) EnumDescriptor() ([]byte, []int)
Deprecated: Use HTTPRedirect_RedirectPortSelection.Descriptor instead.
func (HTTPRedirect_RedirectPortSelection) Number ¶
func (x HTTPRedirect_RedirectPortSelection) Number() protoreflect.EnumNumber
func (HTTPRedirect_RedirectPortSelection) String ¶
func (x HTTPRedirect_RedirectPortSelection) String() string
func (HTTPRedirect_RedirectPortSelection) Type ¶
func (HTTPRedirect_RedirectPortSelection) Type() protoreflect.EnumType
type HTTPRetry ¶
type HTTPRetry struct { // Number of retries to be allowed for a given request. The interval // between retries will be determined automatically (25ms+). When request // `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) // or `per_try_timeout` is configured, the actual number of retries attempted also depends on // the specified request `timeout` and `per_try_timeout` values. Attempts int32 `protobuf:"varint,1,opt,name=attempts,proto3" json:"attempts,omitempty"` // Timeout per attempt for a given request, including the initial call and any retries. Format: 1h/1m/1s/1ms. MUST BE >=1ms. // Default is same value as request // `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), // which means no timeout. PerTryTimeout *durationpb.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. // If `retry_on` specifies a valid HTTP status, it will be added to retriable_status_codes retry policy. // 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 *wrapperspb.BoolValue `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
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. A retry will be attempted if there is a connect-failure, refused_stream or when the upstream server responds with Service Unavailable(503).
{{<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: connect-failure,refused-stream,503
``` {{</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) Descriptor
deprecated
func (*HTTPRetry) GetAttempts ¶
func (*HTTPRetry) GetPerTryTimeout ¶
func (x *HTTPRetry) GetPerTryTimeout() *durationpb.Duration
func (*HTTPRetry) GetRetryOn ¶
func (*HTTPRetry) GetRetryRemoteLocalities ¶
func (x *HTTPRetry) GetRetryRemoteLocalities() *wrapperspb.BoolValue
func (*HTTPRetry) ProtoMessage ¶
func (*HTTPRetry) ProtoMessage()
func (*HTTPRetry) ProtoReflect ¶
func (x *HTTPRetry) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPRewrite) Descriptor() ([]byte, []int)
Deprecated: Use HTTPRewrite.ProtoReflect.Descriptor instead.
func (*HTTPRewrite) GetAuthority ¶
func (x *HTTPRewrite) GetAuthority() string
func (*HTTPRewrite) GetUri ¶
func (x *HTTPRewrite) GetUri() string
func (*HTTPRewrite) ProtoMessage ¶
func (*HTTPRewrite) ProtoMessage()
func (*HTTPRewrite) ProtoReflect ¶
func (x *HTTPRewrite) ProtoReflect() protoreflect.Message
func (*HTTPRewrite) Reset ¶
func (x *HTTPRewrite) Reset()
func (*HTTPRewrite) String ¶
func (x *HTTPRewrite) String() string
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, default is disabled. Timeout *durationpb.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 // $hide_from_docs // // Deprecated: Do not use. MirrorPercent *wrapperspb.UInt32Value `protobuf:"bytes,18,opt,name=mirror_percent,json=mirrorPercent,proto3" json:"mirror_percent,omitempty"` // 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"` // contains filtered or unexported fields }
Describes match conditions and actions for routing HTTP/1.1, HTTP2, and gRPC traffic. See VirtualService for usage examples.
func (*HTTPRoute) Descriptor
deprecated
func (*HTTPRoute) GetCorsPolicy ¶
func (x *HTTPRoute) GetCorsPolicy() *CorsPolicy
func (*HTTPRoute) GetDelegate ¶
func (*HTTPRoute) GetFault ¶
func (x *HTTPRoute) GetFault() *HTTPFaultInjection
func (*HTTPRoute) GetHeaders ¶
func (*HTTPRoute) GetMatch ¶
func (x *HTTPRoute) GetMatch() []*HTTPMatchRequest
func (*HTTPRoute) GetMirror ¶
func (x *HTTPRoute) GetMirror() *Destination
func (*HTTPRoute) GetMirrorPercent
deprecated
func (x *HTTPRoute) GetMirrorPercent() *wrapperspb.UInt32Value
Deprecated: Do not use.
func (*HTTPRoute) GetMirrorPercentage ¶
func (*HTTPRoute) GetRedirect ¶
func (x *HTTPRoute) GetRedirect() *HTTPRedirect
func (*HTTPRoute) GetRetries ¶
func (*HTTPRoute) GetRewrite ¶
func (x *HTTPRoute) GetRewrite() *HTTPRewrite
func (*HTTPRoute) GetRoute ¶
func (x *HTTPRoute) GetRoute() []*HTTPRouteDestination
func (*HTTPRoute) GetTimeout ¶
func (x *HTTPRoute) GetTimeout() *durationpb.Duration
func (*HTTPRoute) ProtoMessage ¶
func (*HTTPRoute) ProtoMessage()
func (*HTTPRoute) ProtoReflect ¶
func (x *HTTPRoute) ProtoReflect() protoreflect.Message
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"` // Weight specifies the relative proportion of traffic to be forwarded to the destination. A destination will receive `weight/(sum of all weights)` requests. // If there is only one destination in a rule, it will receive all traffic. // Otherwise, if weight is `0`, the destination will not receive any traffic. 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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*HTTPRouteDestination) Descriptor() ([]byte, []int)
Deprecated: Use HTTPRouteDestination.ProtoReflect.Descriptor instead.
func (*HTTPRouteDestination) GetDestination ¶
func (x *HTTPRouteDestination) GetDestination() *Destination
func (*HTTPRouteDestination) GetHeaders ¶
func (x *HTTPRouteDestination) GetHeaders() *Headers
func (*HTTPRouteDestination) GetWeight ¶
func (x *HTTPRouteDestination) GetWeight() int32
func (*HTTPRouteDestination) ProtoMessage ¶
func (*HTTPRouteDestination) ProtoMessage()
func (*HTTPRouteDestination) ProtoReflect ¶
func (x *HTTPRouteDestination) ProtoReflect() protoreflect.Message
func (*HTTPRouteDestination) Reset ¶
func (x *HTTPRouteDestination) Reset()
func (*HTTPRouteDestination) String ¶
func (x *HTTPRouteDestination) String() string
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"` // contains filtered or unexported fields }
Message headers can be manipulated when Envoy forwards requests to, or responses from, a destination service. Header manipulation rules can be specified for a specific route destination or for all destinations. The following VirtualService adds a `test` header with the value `true` to requests that are routed to any `reviews` service destination. It also removes the `foo` response header, but only from responses coming from the `v1` subset (version) of the `reviews` service.
{{<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: - headers: request: set: test: "true" route: - destination: host: reviews.prod.svc.cluster.local subset: v2 weight: 25 - destination: host: reviews.prod.svc.cluster.local subset: v1 headers: response: remove: - foo 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: - headers: request: set: test: "true" route: - destination: host: reviews.prod.svc.cluster.local subset: v2 weight: 25 - destination: host: reviews.prod.svc.cluster.local subset: v1 headers: response: remove: - foo weight: 75
``` {{</tab>}} {{</tabset>}}
func (*Headers) Descriptor
deprecated
func (*Headers) GetRequest ¶
func (x *Headers) GetRequest() *Headers_HeaderOperations
func (*Headers) GetResponse ¶
func (x *Headers) GetResponse() *Headers_HeaderOperations
func (*Headers) ProtoMessage ¶
func (*Headers) ProtoMessage()
func (*Headers) ProtoReflect ¶
func (x *Headers) ProtoReflect() protoreflect.Message
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 the specified headers Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` // contains filtered or unexported fields }
HeaderOperations Describes the header manipulations to apply
func (*Headers_HeaderOperations) Descriptor
deprecated
func (*Headers_HeaderOperations) Descriptor() ([]byte, []int)
Deprecated: Use Headers_HeaderOperations.ProtoReflect.Descriptor instead.
func (*Headers_HeaderOperations) GetAdd ¶
func (x *Headers_HeaderOperations) GetAdd() map[string]string
func (*Headers_HeaderOperations) GetRemove ¶
func (x *Headers_HeaderOperations) GetRemove() []string
func (*Headers_HeaderOperations) GetSet ¶
func (x *Headers_HeaderOperations) GetSet() map[string]string
func (*Headers_HeaderOperations) ProtoMessage ¶
func (*Headers_HeaderOperations) ProtoMessage()
func (*Headers_HeaderOperations) ProtoReflect ¶
func (x *Headers_HeaderOperations) ProtoReflect() protoreflect.Message
func (*Headers_HeaderOperations) Reset ¶
func (x *Headers_HeaderOperations) Reset()
func (*Headers_HeaderOperations) String ¶
func (x *Headers_HeaderOperations) String() string
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. Hosts []string `protobuf:"bytes,4,rep,name=hosts,proto3" json:"hosts,omitempty"` // contains filtered or unexported fields }
`IstioEgressListener` specifies the properties of an outbound traffic listener on the sidecar proxy attached to a workload instance.
func (*IstioEgressListener) Descriptor
deprecated
func (*IstioEgressListener) Descriptor() ([]byte, []int)
Deprecated: Use IstioEgressListener.ProtoReflect.Descriptor instead.
func (*IstioEgressListener) GetBind ¶
func (x *IstioEgressListener) GetBind() string
func (*IstioEgressListener) GetCaptureMode ¶
func (x *IstioEgressListener) GetCaptureMode() CaptureMode
func (*IstioEgressListener) GetHosts ¶
func (x *IstioEgressListener) GetHosts() []string
func (*IstioEgressListener) GetPort ¶
func (x *IstioEgressListener) GetPort() *Port
func (*IstioEgressListener) ProtoMessage ¶
func (*IstioEgressListener) ProtoMessage()
func (*IstioEgressListener) ProtoReflect ¶
func (x *IstioEgressListener) ProtoReflect() protoreflect.Message
func (*IstioEgressListener) Reset ¶
func (x *IstioEgressListener) Reset()
func (*IstioEgressListener) String ¶
func (x *IstioEgressListener) String() string
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 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. Arbitrary IPs are not supported. Format should be one of `127.0.0.1:PORT`, `0.0.0.0:PORT` // (which will forward to the instance IP), or `unix:///path/to/socket` DefaultEndpoint string `protobuf:"bytes,4,opt,name=default_endpoint,json=defaultEndpoint,proto3" json:"default_endpoint,omitempty"` // Set of TLS related options that will enable TLS termination on the // sidecar for requests originating from outside the mesh. // Currently supports only SIMPLE and MUTUAL TLS modes. // $hide_from_docs Tls *ServerTLSSettings `protobuf:"bytes,7,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
`IstioIngressListener` specifies the properties of an inbound traffic listener on the sidecar proxy attached to a workload instance.
func (*IstioIngressListener) Descriptor
deprecated
func (*IstioIngressListener) Descriptor() ([]byte, []int)
Deprecated: Use IstioIngressListener.ProtoReflect.Descriptor instead.
func (*IstioIngressListener) GetBind ¶
func (x *IstioIngressListener) GetBind() string
func (*IstioIngressListener) GetCaptureMode ¶
func (x *IstioIngressListener) GetCaptureMode() CaptureMode
func (*IstioIngressListener) GetDefaultEndpoint ¶
func (x *IstioIngressListener) GetDefaultEndpoint() string
func (*IstioIngressListener) GetPort ¶
func (x *IstioIngressListener) GetPort() *Port
func (*IstioIngressListener) GetTls ¶
func (x *IstioIngressListener) GetTls() *ServerTLSSettings
func (*IstioIngressListener) ProtoMessage ¶
func (*IstioIngressListener) ProtoMessage()
func (*IstioIngressListener) ProtoReflect ¶
func (x *IstioIngressListener) ProtoReflect() protoreflect.Message
func (*IstioIngressListener) Reset ¶
func (x *IstioIngressListener) Reset()
func (*IstioIngressListener) String ¶
func (x *IstioIngressListener) String() string
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"` // contains filtered or unexported fields }
L4 connection match attributes. Note that L4 connection matching support is incomplete.
func (*L4MatchAttributes) Descriptor
deprecated
func (*L4MatchAttributes) Descriptor() ([]byte, []int)
Deprecated: Use L4MatchAttributes.ProtoReflect.Descriptor instead.
func (*L4MatchAttributes) GetDestinationSubnets ¶
func (x *L4MatchAttributes) GetDestinationSubnets() []string
func (*L4MatchAttributes) GetGateways ¶
func (x *L4MatchAttributes) GetGateways() []string
func (*L4MatchAttributes) GetPort ¶
func (x *L4MatchAttributes) GetPort() uint32
func (*L4MatchAttributes) GetSourceLabels ¶
func (x *L4MatchAttributes) GetSourceLabels() map[string]string
func (*L4MatchAttributes) GetSourceNamespace ¶
func (x *L4MatchAttributes) GetSourceNamespace() string
func (*L4MatchAttributes) GetSourceSubnet ¶
func (x *L4MatchAttributes) GetSourceSubnet() string
func (*L4MatchAttributes) ProtoMessage ¶
func (*L4MatchAttributes) ProtoMessage()
func (*L4MatchAttributes) ProtoReflect ¶
func (x *L4MatchAttributes) ProtoReflect() protoreflect.Message
func (*L4MatchAttributes) Reset ¶
func (x *L4MatchAttributes) Reset()
func (*L4MatchAttributes) String ¶
func (x *L4MatchAttributes) String() string
type LoadBalancerSettings ¶
type LoadBalancerSettings struct { // Upstream load balancing policy. // // Types that are assignable 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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*LoadBalancerSettings) Descriptor() ([]byte, []int)
Deprecated: Use LoadBalancerSettings.ProtoReflect.Descriptor instead.
func (*LoadBalancerSettings) GetConsistentHash ¶
func (x *LoadBalancerSettings) GetConsistentHash() *LoadBalancerSettings_ConsistentHashLB
func (*LoadBalancerSettings) GetLbPolicy ¶
func (m *LoadBalancerSettings) GetLbPolicy() isLoadBalancerSettings_LbPolicy
func (*LoadBalancerSettings) GetLocalityLbSetting ¶
func (x *LoadBalancerSettings) GetLocalityLbSetting() *LocalityLoadBalancerSetting
func (*LoadBalancerSettings) GetSimple ¶
func (x *LoadBalancerSettings) GetSimple() LoadBalancerSettings_SimpleLB
func (*LoadBalancerSettings) ProtoMessage ¶
func (*LoadBalancerSettings) ProtoMessage()
func (*LoadBalancerSettings) ProtoReflect ¶
func (x *LoadBalancerSettings) ProtoReflect() protoreflect.Message
func (*LoadBalancerSettings) Reset ¶
func (x *LoadBalancerSettings) Reset()
func (*LoadBalancerSettings) String ¶
func (x *LoadBalancerSettings) String() string
type LoadBalancerSettings_ConsistentHash ¶
type LoadBalancerSettings_ConsistentHash struct {
ConsistentHash *LoadBalancerSettings_ConsistentHashLB `protobuf:"bytes,2,opt,name=consistent_hash,json=consistentHash,proto3,oneof"`
}
type LoadBalancerSettings_ConsistentHashLB ¶
type LoadBalancerSettings_ConsistentHashLB struct { // The hash key to use. // // Types that are assignable 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"` // contains filtered or unexported fields }
Consistent Hash-based load balancing can be used to provide soft session affinity based on HTTP headers, cookies or other properties. The affinity to a particular destination host will be lost when one or more hosts are added/removed from the destination service.
func (*LoadBalancerSettings_ConsistentHashLB) Descriptor
deprecated
func (*LoadBalancerSettings_ConsistentHashLB) Descriptor() ([]byte, []int)
Deprecated: Use LoadBalancerSettings_ConsistentHashLB.ProtoReflect.Descriptor instead.
func (*LoadBalancerSettings_ConsistentHashLB) GetHashKey ¶
func (m *LoadBalancerSettings_ConsistentHashLB) GetHashKey() isLoadBalancerSettings_ConsistentHashLB_HashKey
func (*LoadBalancerSettings_ConsistentHashLB) GetHttpCookie ¶
func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpCookie() *LoadBalancerSettings_ConsistentHashLB_HTTPCookie
func (*LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName ¶
func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpHeaderName() string
func (*LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName ¶
func (x *LoadBalancerSettings_ConsistentHashLB) GetHttpQueryParameterName() string
func (*LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize ¶
func (x *LoadBalancerSettings_ConsistentHashLB) GetMinimumRingSize() uint64
func (*LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp ¶
func (x *LoadBalancerSettings_ConsistentHashLB) GetUseSourceIp() bool
func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage ¶
func (*LoadBalancerSettings_ConsistentHashLB) ProtoMessage()
func (*LoadBalancerSettings_ConsistentHashLB) ProtoReflect ¶
func (x *LoadBalancerSettings_ConsistentHashLB) ProtoReflect() protoreflect.Message
func (*LoadBalancerSettings_ConsistentHashLB) Reset ¶
func (x *LoadBalancerSettings_ConsistentHashLB) Reset()
func (*LoadBalancerSettings_ConsistentHashLB) String ¶
func (x *LoadBalancerSettings_ConsistentHashLB) String() string
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 *durationpb.Duration `protobuf:"bytes,3,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
Describes a HTTP cookie that will be used as the hash key for the Consistent Hash load balancer. If the cookie is not present, it will be generated.
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor
deprecated
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Descriptor() ([]byte, []int)
Deprecated: Use LoadBalancerSettings_ConsistentHashLB_HTTPCookie.ProtoReflect.Descriptor instead.
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetName() string
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetPath() string
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) GetTtl() *durationpb.Duration
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage ¶
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoMessage()
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoReflect ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) ProtoReflect() protoreflect.Message
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) Reset()
func (*LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String ¶
func (x *LoadBalancerSettings_ConsistentHashLB_HTTPCookie) String() string
type LoadBalancerSettings_ConsistentHashLB_HttpCookie ¶
type LoadBalancerSettings_ConsistentHashLB_HttpCookie struct { // Hash based on HTTP cookie. HttpCookie *LoadBalancerSettings_ConsistentHashLB_HTTPCookie `protobuf:"bytes,2,opt,name=http_cookie,json=httpCookie,proto3,oneof"` }
type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName ¶
type LoadBalancerSettings_ConsistentHashLB_HttpHeaderName struct { // Hash based on a specific HTTP header. HttpHeaderName string `protobuf:"bytes,1,opt,name=http_header_name,json=httpHeaderName,proto3,oneof"` }
type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName ¶
type LoadBalancerSettings_ConsistentHashLB_HttpQueryParameterName struct { // Hash based on a specific HTTP query parameter. HttpQueryParameterName string `protobuf:"bytes,5,opt,name=http_query_parameter_name,json=httpQueryParameterName,proto3,oneof"` }
type LoadBalancerSettings_ConsistentHashLB_UseSourceIp ¶
type LoadBalancerSettings_ConsistentHashLB_UseSourceIp struct { // Hash based on the source IP address. // This is applicable for both TCP and HTTP connections. UseSourceIp bool `protobuf:"varint,3,opt,name=use_source_ip,json=useSourceIp,proto3,oneof"` }
type LoadBalancerSettings_Simple ¶
type LoadBalancerSettings_Simple struct {
Simple LoadBalancerSettings_SimpleLB `protobuf:"varint,1,opt,name=simple,proto3,enum=istio.networking.v1beta1.LoadBalancerSettings_SimpleLB,oneof"`
}
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) Descriptor ¶
func (LoadBalancerSettings_SimpleLB) Descriptor() protoreflect.EnumDescriptor
func (LoadBalancerSettings_SimpleLB) Enum ¶
func (x LoadBalancerSettings_SimpleLB) Enum() *LoadBalancerSettings_SimpleLB
func (LoadBalancerSettings_SimpleLB) EnumDescriptor
deprecated
func (LoadBalancerSettings_SimpleLB) EnumDescriptor() ([]byte, []int)
Deprecated: Use LoadBalancerSettings_SimpleLB.Descriptor instead.
func (LoadBalancerSettings_SimpleLB) Number ¶
func (x LoadBalancerSettings_SimpleLB) Number() protoreflect.EnumNumber
func (LoadBalancerSettings_SimpleLB) String ¶
func (x LoadBalancerSettings_SimpleLB) String() string
func (LoadBalancerSettings_SimpleLB) Type ¶
func (LoadBalancerSettings_SimpleLB) Type() protoreflect.EnumType
type LocalityLoadBalancerSetting ¶
type LocalityLoadBalancerSetting struct { // Optional: only one of distribute, failover or failoverPriority 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 one of distribute, failover or failoverPriority 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"` // failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing. // This is to support traffic failover across different groups of endpoints. // Suppose there are total N labels specified: // // 1. Endpoints matching all N labels with the client proxy have priority P(0) i.e. the highest priority. // 2. Endpoints matching the first N-1 labels with the client proxy have priority P(1) i.e. second highest priority. // 3. By extension of this logic, endpoints matching only the first label with the client proxy has priority P(N-1) i.e. second lowest priority. // 4. All the other endpoints have priority P(N) i.e. lowest priority. // // Note: For a label to be considered for match, the previous labels must match, i.e. nth label would be considered matched only if first n-1 labels match. // // It can be any label specified on both client and server workloads. // The following labels which have special semantic meaning are also supported: // // - `topology.istio.io/network` is used to match the network metadata of an endpoint, which can be specified by pod/namespace label `topology.istio.io/network`, sidecar env `ISTIO_META_NETWORK` or MeshNetworks. // - `topology.istio.io/cluster` is used to match the clusterID of an endpoint, which can be specified by pod label `topology.istio.io/cluster` or pod env `ISTIO_META_CLUSTER_ID`. // - `topology.kubernetes.io/region` is used to match the region metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/region` or the deprecated label `failure-domain.beta.kubernetes.io/region`. // - `topology.kubernetes.io/zone` is used to match the zone metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/zone` or the deprecated label `failure-domain.beta.kubernetes.io/zone`. // - `topology.istio.io/subzone` is used to match the subzone metadata of an endpoint, which maps to Istio node label `topology.istio.io/subzone`. // // The below topology config indicates the following priority levels: // // “`yaml // failoverPriority: // - "topology.istio.io/network" // - "topology.kubernetes.io/region" // - "topology.kubernetes.io/zone" // - "topology.istio.io/subzone" // “` // // 1. endpoints match same [network, region, zone, subzone] label with the client proxy have the highest priority. // 2. endpoints have same [network, region, zone] label but different [subzone] label with the client proxy have the second highest priority. // 3. endpoints have same [network, region] label but different [zone] label with the client proxy have the third highest priority. // 4. endpoints have same [network] but different [region] labels with the client proxy have the fourth highest priority. // 5. all the other endpoints have the same lowest priority. // // Optional: only one of distribute, failover or failoverPriority can be set. // And it should be used together with `OutlierDetection` to detect unhealthy endpoints, otherwise has no effect. FailoverPriority []string `protobuf:"bytes,4,rep,name=failover_priority,json=failoverPriority,proto3" json:"failover_priority,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 *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*LocalityLoadBalancerSetting) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLoadBalancerSetting.ProtoReflect.Descriptor instead.
func (*LocalityLoadBalancerSetting) GetDistribute ¶
func (x *LocalityLoadBalancerSetting) GetDistribute() []*LocalityLoadBalancerSetting_Distribute
func (*LocalityLoadBalancerSetting) GetEnabled ¶
func (x *LocalityLoadBalancerSetting) GetEnabled() *wrapperspb.BoolValue
func (*LocalityLoadBalancerSetting) GetFailover ¶
func (x *LocalityLoadBalancerSetting) GetFailover() []*LocalityLoadBalancerSetting_Failover
func (*LocalityLoadBalancerSetting) GetFailoverPriority ¶
func (x *LocalityLoadBalancerSetting) GetFailoverPriority() []string
func (*LocalityLoadBalancerSetting) ProtoMessage ¶
func (*LocalityLoadBalancerSetting) ProtoMessage()
func (*LocalityLoadBalancerSetting) ProtoReflect ¶
func (x *LocalityLoadBalancerSetting) ProtoReflect() protoreflect.Message
func (*LocalityLoadBalancerSetting) Reset ¶
func (x *LocalityLoadBalancerSetting) Reset()
func (*LocalityLoadBalancerSetting) String ¶
func (x *LocalityLoadBalancerSetting) String() string
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 present will // receive no traffic. To map[string]uint32 `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*LocalityLoadBalancerSetting_Distribute) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLoadBalancerSetting_Distribute.ProtoReflect.Descriptor instead.
func (*LocalityLoadBalancerSetting_Distribute) GetFrom ¶
func (x *LocalityLoadBalancerSetting_Distribute) GetFrom() string
func (*LocalityLoadBalancerSetting_Distribute) GetTo ¶
func (x *LocalityLoadBalancerSetting_Distribute) GetTo() map[string]uint32
func (*LocalityLoadBalancerSetting_Distribute) ProtoMessage ¶
func (*LocalityLoadBalancerSetting_Distribute) ProtoMessage()
func (*LocalityLoadBalancerSetting_Distribute) ProtoReflect ¶
func (x *LocalityLoadBalancerSetting_Distribute) ProtoReflect() protoreflect.Message
func (*LocalityLoadBalancerSetting_Distribute) Reset ¶
func (x *LocalityLoadBalancerSetting_Distribute) Reset()
func (*LocalityLoadBalancerSetting_Distribute) String ¶
func (x *LocalityLoadBalancerSetting_Distribute) String() string
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*LocalityLoadBalancerSetting_Failover) Descriptor() ([]byte, []int)
Deprecated: Use LocalityLoadBalancerSetting_Failover.ProtoReflect.Descriptor instead.
func (*LocalityLoadBalancerSetting_Failover) GetFrom ¶
func (x *LocalityLoadBalancerSetting_Failover) GetFrom() string
func (*LocalityLoadBalancerSetting_Failover) GetTo ¶
func (x *LocalityLoadBalancerSetting_Failover) GetTo() string
func (*LocalityLoadBalancerSetting_Failover) ProtoMessage ¶
func (*LocalityLoadBalancerSetting_Failover) ProtoMessage()
func (*LocalityLoadBalancerSetting_Failover) ProtoReflect ¶
func (x *LocalityLoadBalancerSetting_Failover) ProtoReflect() protoreflect.Message
func (*LocalityLoadBalancerSetting_Failover) Reset ¶
func (x *LocalityLoadBalancerSetting_Failover) Reset()
func (*LocalityLoadBalancerSetting_Failover) String ¶
func (x *LocalityLoadBalancerSetting_Failover) String() string
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"` // contains filtered or unexported fields }
`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) Descriptor
deprecated
func (*OutboundTrafficPolicy) Descriptor() ([]byte, []int)
Deprecated: Use OutboundTrafficPolicy.ProtoReflect.Descriptor instead.
func (*OutboundTrafficPolicy) GetEgressProxy ¶
func (x *OutboundTrafficPolicy) GetEgressProxy() *Destination
func (*OutboundTrafficPolicy) GetMode ¶
func (x *OutboundTrafficPolicy) GetMode() OutboundTrafficPolicy_Mode
func (*OutboundTrafficPolicy) ProtoMessage ¶
func (*OutboundTrafficPolicy) ProtoMessage()
func (*OutboundTrafficPolicy) ProtoReflect ¶
func (x *OutboundTrafficPolicy) ProtoReflect() protoreflect.Message
func (*OutboundTrafficPolicy) Reset ¶
func (x *OutboundTrafficPolicy) Reset()
func (*OutboundTrafficPolicy) String ¶
func (x *OutboundTrafficPolicy) String() string
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) Descriptor ¶
func (OutboundTrafficPolicy_Mode) Descriptor() protoreflect.EnumDescriptor
func (OutboundTrafficPolicy_Mode) Enum ¶
func (x OutboundTrafficPolicy_Mode) Enum() *OutboundTrafficPolicy_Mode
func (OutboundTrafficPolicy_Mode) EnumDescriptor
deprecated
func (OutboundTrafficPolicy_Mode) EnumDescriptor() ([]byte, []int)
Deprecated: Use OutboundTrafficPolicy_Mode.Descriptor instead.
func (OutboundTrafficPolicy_Mode) Number ¶
func (x OutboundTrafficPolicy_Mode) Number() protoreflect.EnumNumber
func (OutboundTrafficPolicy_Mode) String ¶
func (x OutboundTrafficPolicy_Mode) String() string
func (OutboundTrafficPolicy_Mode) Type ¶
func (OutboundTrafficPolicy_Mode) Type() protoreflect.EnumType
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 // // Deprecated: Do not use. ConsecutiveErrors int32 `protobuf:"varint,1,opt,name=consecutive_errors,json=consecutiveErrors,proto3" json:"consecutive_errors,omitempty"` // Determines whether to distinguish local origin failures from external errors. If set to true // consecutive_local_origin_failure is taken into account for outlier detection calculations. // This should be used when you want to derive the outlier detection status based on the errors // seen locally such as failure to connect, timeout while connecting etc. rather than the status code // retuned by upstream service. This is especially useful when the upstream service explicitly returns // a 5xx for some requests and you want to ignore those responses from upstream service while determining // the outlier detection status of a host. // Defaults to false. SplitExternalLocalOriginErrors bool `` /* 158-byte string literal not displayed */ // The number of consecutive locally originated failures before ejection // occurs. Defaults to 5. Parameter takes effect only when split_external_local_origin_errors // is set to true. ConsecutiveLocalOriginFailures *wrapperspb.UInt32Value `` /* 155-byte string literal not displayed */ // 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 *wrapperspb.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 *wrapperspb.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 *durationpb.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 *durationpb.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"` // contains filtered or unexported fields }
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: consecutive5xxErrors: 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: consecutive5xxErrors: 7 interval: 5m baseEjectionTime: 15m
``` {{</tab>}} {{</tabset>}}
func (*OutlierDetection) Descriptor
deprecated
func (*OutlierDetection) Descriptor() ([]byte, []int)
Deprecated: Use OutlierDetection.ProtoReflect.Descriptor instead.
func (*OutlierDetection) GetBaseEjectionTime ¶
func (x *OutlierDetection) GetBaseEjectionTime() *durationpb.Duration
func (*OutlierDetection) GetConsecutiveErrors
deprecated
func (x *OutlierDetection) GetConsecutiveErrors() int32
Deprecated: Do not use.
func (*OutlierDetection) GetConsecutiveGatewayErrors ¶
func (x *OutlierDetection) GetConsecutiveGatewayErrors() *wrapperspb.UInt32Value
func (*OutlierDetection) GetConsecutiveLocalOriginFailures ¶
func (x *OutlierDetection) GetConsecutiveLocalOriginFailures() *wrapperspb.UInt32Value
func (*OutlierDetection) GetConsecutive_5XxErrors ¶
func (x *OutlierDetection) GetConsecutive_5XxErrors() *wrapperspb.UInt32Value
func (*OutlierDetection) GetInterval ¶
func (x *OutlierDetection) GetInterval() *durationpb.Duration
func (*OutlierDetection) GetMaxEjectionPercent ¶
func (x *OutlierDetection) GetMaxEjectionPercent() int32
func (*OutlierDetection) GetMinHealthPercent ¶
func (x *OutlierDetection) GetMinHealthPercent() int32
func (*OutlierDetection) GetSplitExternalLocalOriginErrors ¶
func (x *OutlierDetection) GetSplitExternalLocalOriginErrors() bool
func (*OutlierDetection) ProtoMessage ¶
func (*OutlierDetection) ProtoMessage()
func (*OutlierDetection) ProtoReflect ¶
func (x *OutlierDetection) ProtoReflect() protoreflect.Message
func (*OutlierDetection) Reset ¶
func (x *OutlierDetection) Reset()
func (*OutlierDetection) String ¶
func (x *OutlierDetection) String() string
type Percent ¶
type Percent struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
Percent specifies a percentage in the range of [0.0, 100.0].
func (*Percent) Descriptor
deprecated
func (*Percent) ProtoMessage ¶
func (*Percent) ProtoMessage()
func (*Percent) ProtoReflect ¶
func (x *Percent) ProtoReflect() protoreflect.Message
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"` // The port number on the endpoint where the traffic will be // received. Applicable only when used with ServiceEntries. TargetPort uint32 `protobuf:"varint,4,opt,name=target_port,json=targetPort,proto3" json:"target_port,omitempty"` // contains filtered or unexported fields }
Port describes the properties of a specific port of a service.
func (*Port) Descriptor
deprecated
func (*Port) GetProtocol ¶
func (*Port) GetTargetPort ¶
func (*Port) ProtoMessage ¶
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶
func (x *Port) ProtoReflect() protoreflect.Message
type PortSelector ¶
type PortSelector struct { // Valid port number Number uint32 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // contains filtered or unexported fields }
PortSelector specifies the number of a port to be used for matching or selection for final routing.
func (*PortSelector) Descriptor
deprecated
func (*PortSelector) Descriptor() ([]byte, []int)
Deprecated: Use PortSelector.ProtoReflect.Descriptor instead.
func (*PortSelector) GetNumber ¶
func (x *PortSelector) GetNumber() uint32
func (*PortSelector) ProtoMessage ¶
func (*PortSelector) ProtoMessage()
func (*PortSelector) ProtoReflect ¶
func (x *PortSelector) ProtoReflect() protoreflect.Message
func (*PortSelector) Reset ¶
func (x *PortSelector) Reset()
func (*PortSelector) String ¶
func (x *PortSelector) String() string
type ProxyConfig ¶
type ProxyConfig struct { // Optional. Selectors specify the set of pods/VMs on which this `ProxyConfig` resource should be applied. // If not set, the `ProxyConfig` resource will be applied to all workloads in the namespace where this resource is defined. Selector *v1beta1.WorkloadSelector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"` // The number of worker threads to run. // If unset, defaults to 2. If set to 0, this will be configured to use all cores on the machine using // CPU requests and limits to choose a value, with limits taking precedence over requests. Concurrency *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=concurrency,proto3" json:"concurrency,omitempty"` // Additional environment variables for the proxy. // Names starting with `ISTIO_META_` will be included in the generated bootstrap configuration and sent to the XDS server. EnvironmentVariables map[string]string `` /* 209-byte string literal not displayed */ // Specifies the details of the proxy image. Image *ProxyImage `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
`ProxyConfig` exposes proxy level configuration options.
<!-- crd generation tags +cue-gen:ProxyConfig:groupName:networking.istio.io +cue-gen:ProxyConfig:version:v1beta1 +cue-gen:ProxyConfig:storageVersion +cue-gen:ProxyConfig:annotations:helm.sh/resource-policy=keep +cue-gen:ProxyConfig:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:ProxyConfig:subresource:status +cue-gen:ProxyConfig:scope:Namespaced +cue-gen:ProxyConfig:resource:categories=istio-io,networking-istio-io,plural=proxyconfigs +cue-gen:ProxyConfig:preserveUnknownFields:false -->
<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true -->
func (*ProxyConfig) Descriptor
deprecated
func (*ProxyConfig) Descriptor() ([]byte, []int)
Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
func (*ProxyConfig) GetConcurrency ¶
func (x *ProxyConfig) GetConcurrency() *wrapperspb.Int32Value
func (*ProxyConfig) GetEnvironmentVariables ¶
func (x *ProxyConfig) GetEnvironmentVariables() map[string]string
func (*ProxyConfig) GetImage ¶
func (x *ProxyConfig) GetImage() *ProxyImage
func (*ProxyConfig) GetSelector ¶
func (x *ProxyConfig) GetSelector() *v1beta1.WorkloadSelector
func (*ProxyConfig) ProtoMessage ¶
func (*ProxyConfig) ProtoMessage()
func (*ProxyConfig) ProtoReflect ¶
func (x *ProxyConfig) ProtoReflect() protoreflect.Message
func (*ProxyConfig) Reset ¶
func (x *ProxyConfig) Reset()
func (*ProxyConfig) String ¶
func (x *ProxyConfig) String() string
type ProxyImage ¶
type ProxyImage struct { // The image type of the image. // Istio publishes default, debug, and distroless images. // Other values are allowed if those image types (example: centos) are published to the specified hub. // supported values: default, debug, distroless. ImageType string `protobuf:"bytes,1,opt,name=image_type,json=imageType,proto3" json:"image_type,omitempty"` // contains filtered or unexported fields }
The following values are used to construct proxy image url. $hub/$image_name/$tag-$image_type example: docker.io/istio/proxyv2:1.11.1 or docker.io/istio/proxyv2:1.11.1-distroless This information was previously part of the Values API.
func (*ProxyImage) Descriptor
deprecated
func (*ProxyImage) Descriptor() ([]byte, []int)
Deprecated: Use ProxyImage.ProtoReflect.Descriptor instead.
func (*ProxyImage) GetImageType ¶
func (x *ProxyImage) GetImageType() string
func (*ProxyImage) ProtoMessage ¶
func (*ProxyImage) ProtoMessage()
func (*ProxyImage) ProtoReflect ¶
func (x *ProxyImage) ProtoReflect() protoreflect.Message
func (*ProxyImage) Reset ¶
func (x *ProxyImage) Reset()
func (*ProxyImage) String ¶
func (x *ProxyImage) String() string
type ReadinessProbe ¶
type ReadinessProbe struct { // Number of seconds after the container has started before readiness probes are initiated. InitialDelaySeconds int32 `protobuf:"varint,2,opt,name=initial_delay_seconds,json=initialDelaySeconds,proto3" json:"initial_delay_seconds,omitempty"` // Number of seconds after which the probe times out. // Defaults to 1 second. Minimum value is 1 second. TimeoutSeconds int32 `protobuf:"varint,3,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"` // How often (in seconds) to perform the probe. // Default to 10 seconds. Minimum value is 1 second. PeriodSeconds int32 `protobuf:"varint,4,opt,name=period_seconds,json=periodSeconds,proto3" json:"period_seconds,omitempty"` // Minimum consecutive successes for the probe to be considered successful after having failed. // Defaults to 1 second. SuccessThreshold int32 `protobuf:"varint,5,opt,name=success_threshold,json=successThreshold,proto3" json:"success_threshold,omitempty"` // Minimum consecutive failures for the probe to be considered failed after having succeeded. // Defaults to 3 seconds. FailureThreshold int32 `protobuf:"varint,6,opt,name=failure_threshold,json=failureThreshold,proto3" json:"failure_threshold,omitempty"` // Users can only provide one configuration for healthchecks (tcp, http, exec), // and this is expressed as a oneof. All of the other configuration values // hold true for any of the healthcheck methods. // // Types that are assignable to HealthCheckMethod: // *ReadinessProbe_HttpGet // *ReadinessProbe_TcpSocket // *ReadinessProbe_Exec HealthCheckMethod isReadinessProbe_HealthCheckMethod `protobuf_oneof:"health_check_method"` // contains filtered or unexported fields }
func (*ReadinessProbe) Descriptor
deprecated
func (*ReadinessProbe) Descriptor() ([]byte, []int)
Deprecated: Use ReadinessProbe.ProtoReflect.Descriptor instead.
func (*ReadinessProbe) GetExec ¶
func (x *ReadinessProbe) GetExec() *ExecHealthCheckConfig
func (*ReadinessProbe) GetFailureThreshold ¶
func (x *ReadinessProbe) GetFailureThreshold() int32
func (*ReadinessProbe) GetHealthCheckMethod ¶
func (m *ReadinessProbe) GetHealthCheckMethod() isReadinessProbe_HealthCheckMethod
func (*ReadinessProbe) GetHttpGet ¶
func (x *ReadinessProbe) GetHttpGet() *HTTPHealthCheckConfig
func (*ReadinessProbe) GetInitialDelaySeconds ¶
func (x *ReadinessProbe) GetInitialDelaySeconds() int32
func (*ReadinessProbe) GetPeriodSeconds ¶
func (x *ReadinessProbe) GetPeriodSeconds() int32
func (*ReadinessProbe) GetSuccessThreshold ¶
func (x *ReadinessProbe) GetSuccessThreshold() int32
func (*ReadinessProbe) GetTcpSocket ¶
func (x *ReadinessProbe) GetTcpSocket() *TCPHealthCheckConfig
func (*ReadinessProbe) GetTimeoutSeconds ¶
func (x *ReadinessProbe) GetTimeoutSeconds() int32
func (*ReadinessProbe) ProtoMessage ¶
func (*ReadinessProbe) ProtoMessage()
func (*ReadinessProbe) ProtoReflect ¶
func (x *ReadinessProbe) ProtoReflect() protoreflect.Message
func (*ReadinessProbe) Reset ¶
func (x *ReadinessProbe) Reset()
func (*ReadinessProbe) String ¶
func (x *ReadinessProbe) String() string
type ReadinessProbe_Exec ¶
type ReadinessProbe_Exec struct { // Health is determined by how the command that is executed exited. Exec *ExecHealthCheckConfig `protobuf:"bytes,9,opt,name=exec,proto3,oneof"` }
type ReadinessProbe_HttpGet ¶
type ReadinessProbe_HttpGet struct { // `httpGet` is performed to a given endpoint // and the status/able to connect determines health. HttpGet *HTTPHealthCheckConfig `protobuf:"bytes,7,opt,name=http_get,json=httpGet,proto3,oneof"` }
type ReadinessProbe_TcpSocket ¶
type ReadinessProbe_TcpSocket struct { // Health is determined by if the proxy is able to connect. TcpSocket *TCPHealthCheckConfig `protobuf:"bytes,8,opt,name=tcp_socket,json=tcpSocket,proto3,oneof"` }
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"` // Weight specifies the relative proportion of traffic to be forwarded to the destination. A destination will receive `weight/(sum of all weights)` requests. // If there is only one destination in a rule, it will receive all traffic. // Otherwise, if weight is `0`, the destination will not receive any traffic. Weight int32 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"` // contains filtered or unexported fields }
L4 routing rule weighted destination.
func (*RouteDestination) Descriptor
deprecated
func (*RouteDestination) Descriptor() ([]byte, []int)
Deprecated: Use RouteDestination.ProtoReflect.Descriptor instead.
func (*RouteDestination) GetDestination ¶
func (x *RouteDestination) GetDestination() *Destination
func (*RouteDestination) GetWeight ¶
func (x *RouteDestination) GetWeight() int32
func (*RouteDestination) ProtoMessage ¶
func (*RouteDestination) ProtoMessage()
func (*RouteDestination) ProtoReflect ¶
func (x *RouteDestination) ProtoReflect() protoreflect.Message
func (*RouteDestination) Reset ¶
func (x *RouteDestination) Reset()
func (*RouteDestination) String ¶
func (x *RouteDestination) String() string
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"` // 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. // This can be used to restrict the reachability of this server to be gateway internal only. // This is typically used when a gateway needs to communicate to another mesh service // e.g. publishing metrics. In such case, the server created with the // specified bind will not be available to external gateway clients. 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"` // An optional name of the server, when set must be unique across all servers. // This will be used for variety of purposes like prefixing stats generated with // this name etc. Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
`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-ingressgateway 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-ingressgateway 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-ingressgateway 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-ingressgateway 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-ingressgateway servers: - port: number: 443 name: https protocol: HTTPS hosts: - "*" tls: mode: SIMPLE credentialName: tls-cert
``` {{</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-ingressgateway servers: - port: number: 443 name: https protocol: HTTPS hosts: - "*" tls: mode: SIMPLE credentialName: tls-cert
``` {{</tab>}} {{</tabset>}}
func (*Server) Descriptor
deprecated
func (*Server) GetDefaultEndpoint ¶
func (*Server) GetTls ¶
func (x *Server) GetTls() *ServerTLSSettings
func (*Server) ProtoMessage ¶
func (*Server) ProtoMessage()
func (*Server) ProtoReflect ¶
func (x *Server) ProtoReflect() protoreflect.Message
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. The secret (of type `generic`) should // contain the following keys and values: `key: // <privateKey>` and `cert: <serverCert>`. For mutual TLS, // `cacert: <CACertificate>` can be provided in the same secret or // a separate secret named `<secret>-cacert`. // Secret of type tls for server certificates along with // ca.crt key for CA certificates is also supported. // Only one of server certificates and CA certificate // or credentialName can be specified. 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"` // contains filtered or unexported fields }
func (*ServerTLSSettings) Descriptor
deprecated
func (*ServerTLSSettings) Descriptor() ([]byte, []int)
Deprecated: Use ServerTLSSettings.ProtoReflect.Descriptor instead.
func (*ServerTLSSettings) GetCaCertificates ¶
func (x *ServerTLSSettings) GetCaCertificates() string
func (*ServerTLSSettings) GetCipherSuites ¶
func (x *ServerTLSSettings) GetCipherSuites() []string
func (*ServerTLSSettings) GetCredentialName ¶
func (x *ServerTLSSettings) GetCredentialName() string
func (*ServerTLSSettings) GetHttpsRedirect ¶
func (x *ServerTLSSettings) GetHttpsRedirect() bool
func (*ServerTLSSettings) GetMaxProtocolVersion ¶
func (x *ServerTLSSettings) GetMaxProtocolVersion() ServerTLSSettings_TLSProtocol
func (*ServerTLSSettings) GetMinProtocolVersion ¶
func (x *ServerTLSSettings) GetMinProtocolVersion() ServerTLSSettings_TLSProtocol
func (*ServerTLSSettings) GetMode ¶
func (x *ServerTLSSettings) GetMode() ServerTLSSettings_TLSmode
func (*ServerTLSSettings) GetPrivateKey ¶
func (x *ServerTLSSettings) GetPrivateKey() string
func (*ServerTLSSettings) GetServerCertificate ¶
func (x *ServerTLSSettings) GetServerCertificate() string
func (*ServerTLSSettings) GetSubjectAltNames ¶
func (x *ServerTLSSettings) GetSubjectAltNames() []string
func (*ServerTLSSettings) GetVerifyCertificateHash ¶
func (x *ServerTLSSettings) GetVerifyCertificateHash() []string
func (*ServerTLSSettings) GetVerifyCertificateSpki ¶
func (x *ServerTLSSettings) GetVerifyCertificateSpki() []string
func (*ServerTLSSettings) ProtoMessage ¶
func (*ServerTLSSettings) ProtoMessage()
func (*ServerTLSSettings) ProtoReflect ¶
func (x *ServerTLSSettings) ProtoReflect() protoreflect.Message
func (*ServerTLSSettings) Reset ¶
func (x *ServerTLSSettings) Reset()
func (*ServerTLSSettings) String ¶
func (x *ServerTLSSettings) String() string
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) Descriptor ¶
func (ServerTLSSettings_TLSProtocol) Descriptor() protoreflect.EnumDescriptor
func (ServerTLSSettings_TLSProtocol) Enum ¶
func (x ServerTLSSettings_TLSProtocol) Enum() *ServerTLSSettings_TLSProtocol
func (ServerTLSSettings_TLSProtocol) EnumDescriptor
deprecated
func (ServerTLSSettings_TLSProtocol) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerTLSSettings_TLSProtocol.Descriptor instead.
func (ServerTLSSettings_TLSProtocol) Number ¶
func (x ServerTLSSettings_TLSProtocol) Number() protoreflect.EnumNumber
func (ServerTLSSettings_TLSProtocol) String ¶
func (x ServerTLSSettings_TLSProtocol) String() string
func (ServerTLSSettings_TLSProtocol) Type ¶
func (ServerTLSSettings_TLSProtocol) Type() protoreflect.EnumType
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) Descriptor ¶
func (ServerTLSSettings_TLSmode) Descriptor() protoreflect.EnumDescriptor
func (ServerTLSSettings_TLSmode) Enum ¶
func (x ServerTLSSettings_TLSmode) Enum() *ServerTLSSettings_TLSmode
func (ServerTLSSettings_TLSmode) EnumDescriptor
deprecated
func (ServerTLSSettings_TLSmode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServerTLSSettings_TLSmode.Descriptor instead.
func (ServerTLSSettings_TLSmode) Number ¶
func (x ServerTLSSettings_TLSmode) Number() protoreflect.EnumNumber
func (ServerTLSSettings_TLSmode) String ¶
func (x ServerTLSSettings_TLSmode) String() string
func (ServerTLSSettings_TLSmode) Type ¶
func (ServerTLSSettings_TLSmode) Type() protoreflect.EnumType
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. 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"` // contains filtered or unexported fields }
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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/service_entry.proto -->
func (*ServiceEntry) Descriptor
deprecated
func (*ServiceEntry) Descriptor() ([]byte, []int)
Deprecated: Use ServiceEntry.ProtoReflect.Descriptor instead.
func (*ServiceEntry) GetAddresses ¶
func (x *ServiceEntry) GetAddresses() []string
func (*ServiceEntry) GetEndpoints ¶
func (x *ServiceEntry) GetEndpoints() []*WorkloadEntry
func (*ServiceEntry) GetExportTo ¶
func (x *ServiceEntry) GetExportTo() []string
func (*ServiceEntry) GetHosts ¶
func (x *ServiceEntry) GetHosts() []string
func (*ServiceEntry) GetLocation ¶
func (x *ServiceEntry) GetLocation() ServiceEntry_Location
func (*ServiceEntry) GetPorts ¶
func (x *ServiceEntry) GetPorts() []*Port
func (*ServiceEntry) GetResolution ¶
func (x *ServiceEntry) GetResolution() ServiceEntry_Resolution
func (*ServiceEntry) GetSubjectAltNames ¶
func (x *ServiceEntry) GetSubjectAltNames() []string
func (*ServiceEntry) GetWorkloadSelector ¶
func (x *ServiceEntry) GetWorkloadSelector() *WorkloadSelector
func (*ServiceEntry) ProtoMessage ¶
func (*ServiceEntry) ProtoMessage()
func (*ServiceEntry) ProtoReflect ¶
func (x *ServiceEntry) ProtoReflect() protoreflect.Message
func (*ServiceEntry) Reset ¶
func (x *ServiceEntry) Reset()
func (*ServiceEntry) String ¶
func (x *ServiceEntry) String() string
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) Descriptor ¶
func (ServiceEntry_Location) Descriptor() protoreflect.EnumDescriptor
func (ServiceEntry_Location) Enum ¶
func (x ServiceEntry_Location) Enum() *ServiceEntry_Location
func (ServiceEntry_Location) EnumDescriptor
deprecated
func (ServiceEntry_Location) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceEntry_Location.Descriptor instead.
func (ServiceEntry_Location) Number ¶
func (x ServiceEntry_Location) Number() protoreflect.EnumNumber
func (ServiceEntry_Location) String ¶
func (x ServiceEntry_Location) String() string
func (ServiceEntry_Location) Type ¶
func (ServiceEntry_Location) Type() protoreflect.EnumType
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, // asynchronously. 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 // Attempt to resolve the IP address by querying the ambient DNS, // asynchronously. Unlike DNS, DNS_ROUND_ROBIN only uses the // first IP address returned when a new connection needs to be initiated // without relying on complete results of DNS resolution and connections // made to hosts will be retained even if DNS records change frequently // eliminating draining connection pools and connection cycling. // This is best suited for large web scale services that // must be accessed via DNS. The proxy will resolve the DNS address // specified in the hosts field, if wildcards are not used. DNS resolution // cannot be used with Unix domain socket endpoints. ServiceEntry_DNS_ROUND_ROBIN ServiceEntry_Resolution = 3 )
func (ServiceEntry_Resolution) Descriptor ¶
func (ServiceEntry_Resolution) Descriptor() protoreflect.EnumDescriptor
func (ServiceEntry_Resolution) Enum ¶
func (x ServiceEntry_Resolution) Enum() *ServiceEntry_Resolution
func (ServiceEntry_Resolution) EnumDescriptor
deprecated
func (ServiceEntry_Resolution) EnumDescriptor() ([]byte, []int)
Deprecated: Use ServiceEntry_Resolution.Descriptor instead.
func (ServiceEntry_Resolution) Number ¶
func (x ServiceEntry_Resolution) Number() protoreflect.EnumNumber
func (ServiceEntry_Resolution) String ¶
func (x ServiceEntry_Resolution) String() string
func (ServiceEntry_Resolution) Type ¶
func (ServiceEntry_Resolution) Type() protoreflect.EnumType
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 */ // contains filtered or unexported fields }
`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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/sidecar.proto -->
func (*Sidecar) Descriptor
deprecated
func (*Sidecar) GetEgress ¶
func (x *Sidecar) GetEgress() []*IstioEgressListener
func (*Sidecar) GetIngress ¶
func (x *Sidecar) GetIngress() []*IstioIngressListener
func (*Sidecar) GetOutboundTrafficPolicy ¶
func (x *Sidecar) GetOutboundTrafficPolicy() *OutboundTrafficPolicy
func (*Sidecar) GetWorkloadSelector ¶
func (x *Sidecar) GetWorkloadSelector() *WorkloadSelector
func (*Sidecar) ProtoMessage ¶
func (*Sidecar) ProtoMessage()
func (*Sidecar) ProtoReflect ¶
func (x *Sidecar) ProtoReflect() protoreflect.Message
type StringMatch ¶
type StringMatch struct { // Types that are assignable to MatchType: // *StringMatch_Exact // *StringMatch_Prefix // *StringMatch_Regex MatchType isStringMatch_MatchType `protobuf_oneof:"match_type"` // contains filtered or unexported fields }
Describes how to match a given string in HTTP headers. Match is case-sensitive.
func (*StringMatch) Descriptor
deprecated
func (*StringMatch) Descriptor() ([]byte, []int)
Deprecated: Use StringMatch.ProtoReflect.Descriptor instead.
func (*StringMatch) GetExact ¶
func (x *StringMatch) GetExact() string
func (*StringMatch) GetMatchType ¶
func (m *StringMatch) GetMatchType() isStringMatch_MatchType
func (*StringMatch) GetPrefix ¶
func (x *StringMatch) GetPrefix() string
func (*StringMatch) GetRegex ¶
func (x *StringMatch) GetRegex() string
func (*StringMatch) ProtoMessage ¶
func (*StringMatch) ProtoMessage()
func (*StringMatch) ProtoReflect ¶
func (x *StringMatch) ProtoReflect() protoreflect.Message
func (*StringMatch) Reset ¶
func (x *StringMatch) Reset()
func (*StringMatch) String ¶
func (x *StringMatch) String() string
type StringMatch_Exact ¶
type StringMatch_Exact struct { // exact string match Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"` }
type StringMatch_Prefix ¶
type StringMatch_Prefix struct { // prefix-based match Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"` }
type StringMatch_Regex ¶
type StringMatch_Regex struct { // RE2 style regex-based match (https://github.com/google/re2/wiki/Syntax). Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"` }
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*Subset) GetTrafficPolicy ¶
func (x *Subset) GetTrafficPolicy() *TrafficPolicy
func (*Subset) ProtoMessage ¶
func (*Subset) ProtoMessage()
func (*Subset) ProtoReflect ¶
func (x *Subset) ProtoReflect() protoreflect.Message
type TCPHealthCheckConfig ¶
type TCPHealthCheckConfig struct { // Host to connect to, defaults to localhost Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Port of host Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*TCPHealthCheckConfig) Descriptor
deprecated
func (*TCPHealthCheckConfig) Descriptor() ([]byte, []int)
Deprecated: Use TCPHealthCheckConfig.ProtoReflect.Descriptor instead.
func (*TCPHealthCheckConfig) GetHost ¶
func (x *TCPHealthCheckConfig) GetHost() string
func (*TCPHealthCheckConfig) GetPort ¶
func (x *TCPHealthCheckConfig) GetPort() uint32
func (*TCPHealthCheckConfig) ProtoMessage ¶
func (*TCPHealthCheckConfig) ProtoMessage()
func (*TCPHealthCheckConfig) ProtoReflect ¶
func (x *TCPHealthCheckConfig) ProtoReflect() protoreflect.Message
func (*TCPHealthCheckConfig) Reset ¶
func (x *TCPHealthCheckConfig) Reset()
func (*TCPHealthCheckConfig) String ¶
func (x *TCPHealthCheckConfig) String() string
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*TCPRoute) GetMatch ¶
func (x *TCPRoute) GetMatch() []*L4MatchAttributes
func (*TCPRoute) GetRoute ¶
func (x *TCPRoute) GetRoute() []*RouteDestination
func (*TCPRoute) ProtoMessage ¶
func (*TCPRoute) ProtoMessage()
func (*TCPRoute) ProtoReflect ¶
func (x *TCPRoute) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
TLS connection match attributes.
func (*TLSMatchAttributes) Descriptor
deprecated
func (*TLSMatchAttributes) Descriptor() ([]byte, []int)
Deprecated: Use TLSMatchAttributes.ProtoReflect.Descriptor instead.
func (*TLSMatchAttributes) GetDestinationSubnets ¶
func (x *TLSMatchAttributes) GetDestinationSubnets() []string
func (*TLSMatchAttributes) GetGateways ¶
func (x *TLSMatchAttributes) GetGateways() []string
func (*TLSMatchAttributes) GetPort ¶
func (x *TLSMatchAttributes) GetPort() uint32
func (*TLSMatchAttributes) GetSniHosts ¶
func (x *TLSMatchAttributes) GetSniHosts() []string
func (*TLSMatchAttributes) GetSourceLabels ¶
func (x *TLSMatchAttributes) GetSourceLabels() map[string]string
func (*TLSMatchAttributes) GetSourceNamespace ¶
func (x *TLSMatchAttributes) GetSourceNamespace() string
func (*TLSMatchAttributes) ProtoMessage ¶
func (*TLSMatchAttributes) ProtoMessage()
func (*TLSMatchAttributes) ProtoReflect ¶
func (x *TLSMatchAttributes) ProtoReflect() protoreflect.Message
func (*TLSMatchAttributes) Reset ¶
func (x *TLSMatchAttributes) Reset()
func (*TLSMatchAttributes) String ¶
func (x *TLSMatchAttributes) String() string
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"` // contains filtered or unexported fields }
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) Descriptor
deprecated
func (*TLSRoute) GetMatch ¶
func (x *TLSRoute) GetMatch() []*TLSMatchAttributes
func (*TLSRoute) GetRoute ¶
func (x *TLSRoute) GetRoute() []*RouteDestination
func (*TLSRoute) ProtoMessage ¶
func (*TLSRoute) ProtoMessage()
func (*TLSRoute) ProtoReflect ¶
func (x *TLSRoute) ProtoReflect() protoreflect.Message
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"` // contains filtered or unexported fields }
Traffic policies to apply for a specific destination, across all destination ports. See DestinationRule for examples.
func (*TrafficPolicy) Descriptor
deprecated
func (*TrafficPolicy) Descriptor() ([]byte, []int)
Deprecated: Use TrafficPolicy.ProtoReflect.Descriptor instead.
func (*TrafficPolicy) GetConnectionPool ¶
func (x *TrafficPolicy) GetConnectionPool() *ConnectionPoolSettings
func (*TrafficPolicy) GetLoadBalancer ¶
func (x *TrafficPolicy) GetLoadBalancer() *LoadBalancerSettings
func (*TrafficPolicy) GetOutlierDetection ¶
func (x *TrafficPolicy) GetOutlierDetection() *OutlierDetection
func (*TrafficPolicy) GetPortLevelSettings ¶
func (x *TrafficPolicy) GetPortLevelSettings() []*TrafficPolicy_PortTrafficPolicy
func (*TrafficPolicy) GetTls ¶
func (x *TrafficPolicy) GetTls() *ClientTLSSettings
func (*TrafficPolicy) ProtoMessage ¶
func (*TrafficPolicy) ProtoMessage()
func (*TrafficPolicy) ProtoReflect ¶
func (x *TrafficPolicy) ProtoReflect() protoreflect.Message
func (*TrafficPolicy) Reset ¶
func (x *TrafficPolicy) Reset()
func (*TrafficPolicy) String ¶
func (x *TrafficPolicy) String() string
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"` // contains filtered or unexported fields }
Traffic policies that apply to specific ports of the service
func (*TrafficPolicy_PortTrafficPolicy) Descriptor
deprecated
func (*TrafficPolicy_PortTrafficPolicy) Descriptor() ([]byte, []int)
Deprecated: Use TrafficPolicy_PortTrafficPolicy.ProtoReflect.Descriptor instead.
func (*TrafficPolicy_PortTrafficPolicy) GetConnectionPool ¶
func (x *TrafficPolicy_PortTrafficPolicy) GetConnectionPool() *ConnectionPoolSettings
func (*TrafficPolicy_PortTrafficPolicy) GetLoadBalancer ¶
func (x *TrafficPolicy_PortTrafficPolicy) GetLoadBalancer() *LoadBalancerSettings
func (*TrafficPolicy_PortTrafficPolicy) GetOutlierDetection ¶
func (x *TrafficPolicy_PortTrafficPolicy) GetOutlierDetection() *OutlierDetection
func (*TrafficPolicy_PortTrafficPolicy) GetPort ¶
func (x *TrafficPolicy_PortTrafficPolicy) GetPort() *PortSelector
func (*TrafficPolicy_PortTrafficPolicy) GetTls ¶
func (x *TrafficPolicy_PortTrafficPolicy) GetTls() *ClientTLSSettings
func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage ¶
func (*TrafficPolicy_PortTrafficPolicy) ProtoMessage()
func (*TrafficPolicy_PortTrafficPolicy) ProtoReflect ¶
func (x *TrafficPolicy_PortTrafficPolicy) ProtoReflect() protoreflect.Message
func (*TrafficPolicy_PortTrafficPolicy) Reset ¶
func (x *TrafficPolicy_PortTrafficPolicy) Reset()
func (*TrafficPolicy_PortTrafficPolicy) String ¶
func (x *TrafficPolicy_PortTrafficPolicy) String() string
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. ExportTo []string `protobuf:"bytes,6,rep,name=export_to,json=exportTo,proto3" json:"export_to,omitempty"` // contains filtered or unexported fields }
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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/virtual_service.proto -->
func (*VirtualService) Descriptor
deprecated
func (*VirtualService) Descriptor() ([]byte, []int)
Deprecated: Use VirtualService.ProtoReflect.Descriptor instead.
func (*VirtualService) GetExportTo ¶
func (x *VirtualService) GetExportTo() []string
func (*VirtualService) GetGateways ¶
func (x *VirtualService) GetGateways() []string
func (*VirtualService) GetHosts ¶
func (x *VirtualService) GetHosts() []string
func (*VirtualService) GetHttp ¶
func (x *VirtualService) GetHttp() []*HTTPRoute
func (*VirtualService) GetTcp ¶
func (x *VirtualService) GetTcp() []*TCPRoute
func (*VirtualService) GetTls ¶
func (x *VirtualService) GetTls() []*TLSRoute
func (*VirtualService) ProtoMessage ¶
func (*VirtualService) ProtoMessage()
func (*VirtualService) ProtoReflect ¶
func (x *VirtualService) ProtoReflect() protoreflect.Message
func (*VirtualService) Reset ¶
func (x *VirtualService) Reset()
func (*VirtualService) String ¶
func (x *VirtualService) String() string
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. If the port map is // specified, it must be a map of servicePortName to this endpoint's // port, such that traffic to the service port will be forwarded to // the endpoint port that maps to the service's portName. If // omitted, and the targetPort is specified as part of the service's // port specification, traffic to the service port will be forwarded // to one of the endpoints on the specified `targetPort`. If both // the targetPort and endpoint's port map are not specified, traffic // to a service port will be forwarded to one of the endpoints on // the same port. // // **NOTE 1:** Do not use for `unix://` addresses. // // **NOTE 2:** endpoint port map takes precedence over targetPort. 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 WorkloadID) 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"` // contains filtered or unexported fields }
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 --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/workload_entry.proto -->
func (*WorkloadEntry) Descriptor
deprecated
func (*WorkloadEntry) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadEntry.ProtoReflect.Descriptor instead.
func (*WorkloadEntry) GetAddress ¶
func (x *WorkloadEntry) GetAddress() string
func (*WorkloadEntry) GetLabels ¶
func (x *WorkloadEntry) GetLabels() map[string]string
func (*WorkloadEntry) GetLocality ¶
func (x *WorkloadEntry) GetLocality() string
func (*WorkloadEntry) GetNetwork ¶
func (x *WorkloadEntry) GetNetwork() string
func (*WorkloadEntry) GetPorts ¶
func (x *WorkloadEntry) GetPorts() map[string]uint32
func (*WorkloadEntry) GetServiceAccount ¶
func (x *WorkloadEntry) GetServiceAccount() string
func (*WorkloadEntry) GetWeight ¶
func (x *WorkloadEntry) GetWeight() uint32
func (*WorkloadEntry) ProtoMessage ¶
func (*WorkloadEntry) ProtoMessage()
func (*WorkloadEntry) ProtoReflect ¶
func (x *WorkloadEntry) ProtoReflect() protoreflect.Message
func (*WorkloadEntry) Reset ¶
func (x *WorkloadEntry) Reset()
func (*WorkloadEntry) String ¶
func (x *WorkloadEntry) String() string
type WorkloadGroup ¶
type WorkloadGroup struct { // Metadata that will be used for all corresponding `WorkloadEntries`. // User labels for a workload group should be set here in `metadata` rather than in `template`. Metadata *WorkloadGroup_ObjectMeta `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` // Template to be used for the generation of `WorkloadEntry` resources that belong to this `WorkloadGroup`. // Please note that `address` and `labels` fields should not be set in the template, and an empty `serviceAccount` // should default to `default`. The workload identities (mTLS certificates) will be bootstrapped using the // specified service account's token. Workload entries in this group will be in the same namespace as the // workload group, and inherit the labels and annotations from the above `metadata` field. Template *WorkloadEntry `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` // `ReadinessProbe` describes the configuration the user must provide for healthchecking on their workload. // This configuration mirrors K8S in both syntax and logic for the most part. Probe *ReadinessProbe `protobuf:"bytes,3,opt,name=probe,proto3" json:"probe,omitempty"` // contains filtered or unexported fields }
`WorkloadGroup` enables specifying the properties of a single workload for bootstrap and provides a template for `WorkloadEntry`, similar to how `Deployment` specifies properties of workloads via `Pod` templates. A `WorkloadGroup` can have more than one `WorkloadEntry`. `WorkloadGroup` has no relationship to resources which control service registry like `ServiceEntry` and as such doesn't configure host name for these workloads.
<!-- crd generation tags +cue-gen:WorkloadGroup:groupName:networking.istio.io +cue-gen:WorkloadGroup:version:v1beta1 +cue-gen:WorkloadGroup:labels:app=istio-pilot,chart=istio,heritage=Tiller,release=istio +cue-gen:WorkloadGroup:subresource:status +cue-gen:WorkloadGroup:scope:Namespaced +cue-gen:WorkloadGroup:resource:categories=istio-io,networking-istio-io,shortNames=wg,plural=workloadgroups +cue-gen:WorkloadGroup: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:WorkloadGroup:preserveUnknownFields:false -->
<!-- go code generation tags +kubetype-gen +kubetype-gen:groupVersion=networking.istio.io/v1beta1 +genclient +k8s:deepcopy-gen=true --> <!-- istio code generation tags +istio.io/sync-from:networking/v1alpha3/workload_group.proto -->
func (*WorkloadGroup) Descriptor
deprecated
func (*WorkloadGroup) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadGroup.ProtoReflect.Descriptor instead.
func (*WorkloadGroup) GetMetadata ¶
func (x *WorkloadGroup) GetMetadata() *WorkloadGroup_ObjectMeta
func (*WorkloadGroup) GetProbe ¶
func (x *WorkloadGroup) GetProbe() *ReadinessProbe
func (*WorkloadGroup) GetTemplate ¶
func (x *WorkloadGroup) GetTemplate() *WorkloadEntry
func (*WorkloadGroup) ProtoMessage ¶
func (*WorkloadGroup) ProtoMessage()
func (*WorkloadGroup) ProtoReflect ¶
func (x *WorkloadGroup) ProtoReflect() protoreflect.Message
func (*WorkloadGroup) Reset ¶
func (x *WorkloadGroup) Reset()
func (*WorkloadGroup) String ¶
func (x *WorkloadGroup) String() string
type WorkloadGroup_ObjectMeta ¶
type WorkloadGroup_ObjectMeta struct { // Labels to attach Labels map[string]string `` /* 153-byte string literal not displayed */ // Annotations to attach Annotations map[string]string `` /* 163-byte string literal not displayed */ // contains filtered or unexported fields }
`ObjectMeta` describes metadata that will be attached to a `WorkloadEntry`. It is a subset of the supported Kubernetes metadata.
func (*WorkloadGroup_ObjectMeta) Descriptor
deprecated
func (*WorkloadGroup_ObjectMeta) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadGroup_ObjectMeta.ProtoReflect.Descriptor instead.
func (*WorkloadGroup_ObjectMeta) GetAnnotations ¶
func (x *WorkloadGroup_ObjectMeta) GetAnnotations() map[string]string
func (*WorkloadGroup_ObjectMeta) GetLabels ¶
func (x *WorkloadGroup_ObjectMeta) GetLabels() map[string]string
func (*WorkloadGroup_ObjectMeta) ProtoMessage ¶
func (*WorkloadGroup_ObjectMeta) ProtoMessage()
func (*WorkloadGroup_ObjectMeta) ProtoReflect ¶
func (x *WorkloadGroup_ObjectMeta) ProtoReflect() protoreflect.Message
func (*WorkloadGroup_ObjectMeta) Reset ¶
func (x *WorkloadGroup_ObjectMeta) Reset()
func (*WorkloadGroup_ObjectMeta) String ¶
func (x *WorkloadGroup_ObjectMeta) String() string
type WorkloadSelector ¶
type WorkloadSelector struct { // One or more labels that indicate a specific set of pods/VMs // on which the 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 */ // contains filtered or unexported fields }
`WorkloadSelector` specifies the criteria used to determine if the `Gateway`, `Sidecar`, `EnvoyFilter`, or `ServiceEntry` 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) Descriptor
deprecated
func (*WorkloadSelector) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadSelector.ProtoReflect.Descriptor instead.
func (*WorkloadSelector) GetLabels ¶
func (x *WorkloadSelector) GetLabels() map[string]string
func (*WorkloadSelector) ProtoMessage ¶
func (*WorkloadSelector) ProtoMessage()
func (*WorkloadSelector) ProtoReflect ¶
func (x *WorkloadSelector) ProtoReflect() protoreflect.Message
func (*WorkloadSelector) Reset ¶
func (x *WorkloadSelector) Reset()
func (*WorkloadSelector) String ¶
func (x *WorkloadSelector) String() string