类型
object

规格

属性类型描述
specobject

Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html

statusobject

.spec

描述
Configuration affecting load balancing, outlier detection, etc. See more details at: https://istio.io/docs/reference/config/networking/destination-rule.html
类型
object
属性类型描述
exportToarray

A list of namespaces to which this destination rule is exported.

hoststring

The name of a service from the service registry.

subsetsarray
trafficPolicyobject
workloadSelectorobject

.spec.exportTo

描述
A list of namespaces to which this destination rule is exported.
类型
array

.spec.exportTo[]

类型
string

.spec.subsets

类型
array

.spec.subsets[]

类型
object
属性类型描述
labelsobject
namestring

Name of the subset.

trafficPolicyobject

Traffic policies that apply to this subset.

.spec.subsets[].labels

类型
object

.spec.subsets[].trafficPolicy

描述
Traffic policies that apply to this subset.
类型
object
属性类型描述
connectionPoolobject
loadBalancerobject

Settings controlling the load balancer algorithms.

outlierDetectionobject
portLevelSettingsarray

Traffic policies specific to individual ports.

tlsobject

TLS related settings for connections to the upstream service.

tunnelobject

.spec.subsets[].trafficPolicy.connectionPool

类型
object
属性类型描述
httpobject

HTTP connection pool settings.

tcpobject

Settings common to both HTTP and TCP upstream connections.

.spec.subsets[].trafficPolicy.connectionPool.http

描述
HTTP connection pool settings.
类型
object
属性类型描述
h2UpgradePolicystring

Specify if http1.1 connection should be upgraded to http2 for the associated destination.

http1MaxPendingRequestsinteger
http2MaxRequestsinteger

Maximum number of active requests to a destination.

idleTimeoutstring

The idle timeout for upstream connection pool connections.

maxRequestsPerConnectioninteger

Maximum number of requests per connection to a backend.

maxRetriesinteger
useClientProtocolboolean

If set to true, client protocol will be preserved while initiating connection to backend.

.spec.subsets[].trafficPolicy.connectionPool.tcp

描述
Settings common to both HTTP and TCP upstream connections.
类型
object
属性类型描述
connectTimeoutstring

TCP connection timeout.

maxConnectionDurationstring

The maximum duration of a connection.

maxConnectionsinteger

Maximum number of HTTP1 /TCP connections to a destination host.

tcpKeepaliveobject

If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.

.spec.subsets[].trafficPolicy.connectionPool.tcp.tcpKeepalive

描述
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
类型
object
属性类型描述
intervalstring

The time duration between keep-alive probes.

probesinteger
timestring

.spec.subsets[].trafficPolicy.loadBalancer

描述
Settings controlling the load balancer algorithms.
类型
object
属性类型描述
consistentHashobject
localityLbSettingobject
simplestring
warmupDurationSecsstring

Represents the warmup duration of Service.

.spec.subsets[].trafficPolicy.loadBalancer.consistentHash

类型
object
属性类型描述
httpCookieobject

Hash based on HTTP cookie.

httpHeaderNamestring

Hash based on a specific HTTP header.

httpQueryParameterNamestring

Hash based on a specific HTTP query parameter.

maglevobject

The Maglev load balancer implements consistent hashing to backend hosts.

minimumRingSizeinteger

Deprecated.

ringHashobject

The ring/modulo hash load balancer implements consistent hashing to backend hosts.

useSourceIpboolean

Hash based on the source IP address.

.spec.subsets[].trafficPolicy.loadBalancer.consistentHash.httpCookie

描述
Hash based on HTTP cookie.
类型
object
属性类型描述
namestring

Name of the cookie.

pathstring

Path to set for the cookie.

ttlstring

Lifetime of the cookie.

.spec.subsets[].trafficPolicy.loadBalancer.consistentHash.maglev

描述
The Maglev load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
tableSizeinteger

The table size for Maglev hashing.

.spec.subsets[].trafficPolicy.loadBalancer.consistentHash.ringHash

描述
The ring/modulo hash load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
minimumRingSizeinteger

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting

类型
object
属性类型描述
distributearray

Optional: only one of distribute, failover or failoverPriority can be set.

enabledboolean

enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.

failoverarray

Optional: only one of distribute, failover or failoverPriority can be set.

failoverPriorityarray

failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.distribute

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.distribute[]

类型
object
属性类型描述
fromstring

Originating locality, '/' separated, e.g.

toobject

Map of upstream localities to traffic distribution weights.

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.distribute[].to

描述
Map of upstream localities to traffic distribution weights.
类型
object

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.failover

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.failover[]

类型
object
属性类型描述
fromstring

Originating region.

tostring

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.failoverPriority

描述
failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.
类型
array

.spec.subsets[].trafficPolicy.loadBalancer.localityLbSetting.failoverPriority[]

类型
string

.spec.subsets[].trafficPolicy.outlierDetection

类型
object
属性类型描述
baseEjectionTimestring

Minimum ejection duration.

consecutive5xxErrorsinteger

Number of 5xx errors before a host is ejected from the connection pool.

consecutiveErrorsinteger
consecutiveGatewayErrorsinteger

Number of gateway errors before a host is ejected from the connection pool.

consecutiveLocalOriginFailuresinteger
intervalstring

Time interval between ejection sweep analysis.

maxEjectionPercentinteger
minHealthPercentinteger
splitExternalLocalOriginErrorsboolean

Determines whether to distinguish local origin failures from external errors.

.spec.subsets[].trafficPolicy.portLevelSettings

描述
Traffic policies specific to individual ports.
类型
array

.spec.subsets[].trafficPolicy.portLevelSettings[]

类型
object
属性类型描述
connectionPoolobject
loadBalancerobject

Settings controlling the load balancer algorithms.

outlierDetectionobject
portobject
tlsobject

TLS related settings for connections to the upstream service.

.spec.subsets[].trafficPolicy.portLevelSettings[].connectionPool

类型
object
属性类型描述
httpobject

HTTP connection pool settings.

tcpobject

Settings common to both HTTP and TCP upstream connections.

.spec.subsets[].trafficPolicy.portLevelSettings[].connectionPool.http

描述
HTTP connection pool settings.
类型
object
属性类型描述
h2UpgradePolicystring

Specify if http1.1 connection should be upgraded to http2 for the associated destination.

http1MaxPendingRequestsinteger
http2MaxRequestsinteger

Maximum number of active requests to a destination.

idleTimeoutstring

The idle timeout for upstream connection pool connections.

maxRequestsPerConnectioninteger

Maximum number of requests per connection to a backend.

maxRetriesinteger
useClientProtocolboolean

If set to true, client protocol will be preserved while initiating connection to backend.

.spec.subsets[].trafficPolicy.portLevelSettings[].connectionPool.tcp

描述
Settings common to both HTTP and TCP upstream connections.
类型
object
属性类型描述
connectTimeoutstring

TCP connection timeout.

maxConnectionDurationstring

The maximum duration of a connection.

maxConnectionsinteger

Maximum number of HTTP1 /TCP connections to a destination host.

tcpKeepaliveobject

If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.

.spec.subsets[].trafficPolicy.portLevelSettings[].connectionPool.tcp.tcpKeepalive

描述
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
类型
object
属性类型描述
intervalstring

The time duration between keep-alive probes.

probesinteger
timestring

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer

描述
Settings controlling the load balancer algorithms.
类型
object
属性类型描述
consistentHashobject
localityLbSettingobject
simplestring
warmupDurationSecsstring

Represents the warmup duration of Service.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.consistentHash

类型
object
属性类型描述
httpCookieobject

Hash based on HTTP cookie.

httpHeaderNamestring

Hash based on a specific HTTP header.

httpQueryParameterNamestring

Hash based on a specific HTTP query parameter.

maglevobject

The Maglev load balancer implements consistent hashing to backend hosts.

minimumRingSizeinteger

Deprecated.

ringHashobject

The ring/modulo hash load balancer implements consistent hashing to backend hosts.

useSourceIpboolean

Hash based on the source IP address.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.httpCookie

描述
Hash based on HTTP cookie.
类型
object
属性类型描述
namestring

Name of the cookie.

pathstring

Path to set for the cookie.

ttlstring

Lifetime of the cookie.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.maglev

描述
The Maglev load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
tableSizeinteger

The table size for Maglev hashing.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.ringHash

描述
The ring/modulo hash load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
minimumRingSizeinteger

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting

类型
object
属性类型描述
distributearray

Optional: only one of distribute, failover or failoverPriority can be set.

enabledboolean

enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.

failoverarray

Optional: only one of distribute, failover or failoverPriority can be set.

failoverPriorityarray

failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute[]

类型
object
属性类型描述
fromstring

Originating locality, '/' separated, e.g.

toobject

Map of upstream localities to traffic distribution weights.

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute[].to

描述
Map of upstream localities to traffic distribution weights.
类型
object

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failover

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failover[]

类型
object
属性类型描述
fromstring

Originating region.

tostring

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failoverPriority

描述
failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.
类型
array

.spec.subsets[].trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failoverPriority[]

类型
string

.spec.subsets[].trafficPolicy.portLevelSettings[].outlierDetection

类型
object
属性类型描述
baseEjectionTimestring

Minimum ejection duration.

consecutive5xxErrorsinteger

Number of 5xx errors before a host is ejected from the connection pool.

consecutiveErrorsinteger
consecutiveGatewayErrorsinteger

Number of gateway errors before a host is ejected from the connection pool.

consecutiveLocalOriginFailuresinteger
intervalstring

Time interval between ejection sweep analysis.

maxEjectionPercentinteger
minHealthPercentinteger
splitExternalLocalOriginErrorsboolean

Determines whether to distinguish local origin failures from external errors.

.spec.subsets[].trafficPolicy.portLevelSettings[].port

类型
object
属性类型描述
numberinteger

.spec.subsets[].trafficPolicy.portLevelSettings[].tls

描述
TLS related settings for connections to the upstream service.
类型
object
属性类型描述
caCertificatesstring
clientCertificatestring

REQUIRED if mode is MUTUAL.

credentialNamestring
insecureSkipVerifyboolean
modestring
privateKeystring

REQUIRED if mode is MUTUAL.

snistring

SNI string to present to the server during TLS handshake.

subjectAltNamesarray

.spec.subsets[].trafficPolicy.portLevelSettings[].tls.subjectAltNames

类型
array

.spec.subsets[].trafficPolicy.portLevelSettings[].tls.subjectAltNames[]

类型
string

.spec.subsets[].trafficPolicy.tls

描述
TLS related settings for connections to the upstream service.
类型
object
属性类型描述
caCertificatesstring
clientCertificatestring

REQUIRED if mode is MUTUAL.

credentialNamestring
insecureSkipVerifyboolean
modestring
privateKeystring

REQUIRED if mode is MUTUAL.

snistring

SNI string to present to the server during TLS handshake.

subjectAltNamesarray

.spec.subsets[].trafficPolicy.tls.subjectAltNames

类型
array

.spec.subsets[].trafficPolicy.tls.subjectAltNames[]

类型
string

.spec.subsets[].trafficPolicy.tunnel

类型
object
属性类型描述
protocolstring

Specifies which protocol to use for tunneling the downstream connection.

targetHoststring

Specifies a host to which the downstream connection is tunneled.

targetPortinteger

Specifies a port to which the downstream connection is tunneled.

.spec.trafficPolicy

类型
object
属性类型描述
connectionPoolobject
loadBalancerobject

Settings controlling the load balancer algorithms.

outlierDetectionobject
portLevelSettingsarray

Traffic policies specific to individual ports.

tlsobject

TLS related settings for connections to the upstream service.

tunnelobject

.spec.trafficPolicy.connectionPool

类型
object
属性类型描述
httpobject

HTTP connection pool settings.

tcpobject

Settings common to both HTTP and TCP upstream connections.

.spec.trafficPolicy.connectionPool.http

描述
HTTP connection pool settings.
类型
object
属性类型描述
h2UpgradePolicystring

Specify if http1.1 connection should be upgraded to http2 for the associated destination.

http1MaxPendingRequestsinteger
http2MaxRequestsinteger

Maximum number of active requests to a destination.

idleTimeoutstring

The idle timeout for upstream connection pool connections.

maxRequestsPerConnectioninteger

Maximum number of requests per connection to a backend.

maxRetriesinteger
useClientProtocolboolean

If set to true, client protocol will be preserved while initiating connection to backend.

.spec.trafficPolicy.connectionPool.tcp

描述
Settings common to both HTTP and TCP upstream connections.
类型
object
属性类型描述
connectTimeoutstring

TCP connection timeout.

maxConnectionDurationstring

The maximum duration of a connection.

maxConnectionsinteger

Maximum number of HTTP1 /TCP connections to a destination host.

tcpKeepaliveobject

If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.

.spec.trafficPolicy.connectionPool.tcp.tcpKeepalive

描述
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
类型
object
属性类型描述
intervalstring

The time duration between keep-alive probes.

probesinteger
timestring

.spec.trafficPolicy.loadBalancer

描述
Settings controlling the load balancer algorithms.
类型
object
属性类型描述
consistentHashobject
localityLbSettingobject
simplestring
warmupDurationSecsstring

Represents the warmup duration of Service.

.spec.trafficPolicy.loadBalancer.consistentHash

类型
object
属性类型描述
httpCookieobject

Hash based on HTTP cookie.

httpHeaderNamestring

Hash based on a specific HTTP header.

httpQueryParameterNamestring

Hash based on a specific HTTP query parameter.

maglevobject

The Maglev load balancer implements consistent hashing to backend hosts.

minimumRingSizeinteger

Deprecated.

ringHashobject

The ring/modulo hash load balancer implements consistent hashing to backend hosts.

useSourceIpboolean

Hash based on the source IP address.

.spec.trafficPolicy.loadBalancer.consistentHash.httpCookie

描述
Hash based on HTTP cookie.
类型
object
属性类型描述
namestring

Name of the cookie.

pathstring

Path to set for the cookie.

ttlstring

Lifetime of the cookie.

.spec.trafficPolicy.loadBalancer.consistentHash.maglev

描述
The Maglev load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
tableSizeinteger

The table size for Maglev hashing.

.spec.trafficPolicy.loadBalancer.consistentHash.ringHash

描述
The ring/modulo hash load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
minimumRingSizeinteger

.spec.trafficPolicy.loadBalancer.localityLbSetting

类型
object
属性类型描述
distributearray

Optional: only one of distribute, failover or failoverPriority can be set.

enabledboolean

enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.

failoverarray

Optional: only one of distribute, failover or failoverPriority can be set.

failoverPriorityarray

failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.

.spec.trafficPolicy.loadBalancer.localityLbSetting.distribute

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.trafficPolicy.loadBalancer.localityLbSetting.distribute[]

类型
object
属性类型描述
fromstring

Originating locality, '/' separated, e.g.

toobject

Map of upstream localities to traffic distribution weights.

.spec.trafficPolicy.loadBalancer.localityLbSetting.distribute[].to

描述
Map of upstream localities to traffic distribution weights.
类型
object

.spec.trafficPolicy.loadBalancer.localityLbSetting.failover

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.trafficPolicy.loadBalancer.localityLbSetting.failover[]

类型
object
属性类型描述
fromstring

Originating region.

tostring

.spec.trafficPolicy.loadBalancer.localityLbSetting.failoverPriority

描述
failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.
类型
array

.spec.trafficPolicy.loadBalancer.localityLbSetting.failoverPriority[]

类型
string

.spec.trafficPolicy.outlierDetection

类型
object
属性类型描述
baseEjectionTimestring

Minimum ejection duration.

consecutive5xxErrorsinteger

Number of 5xx errors before a host is ejected from the connection pool.

consecutiveErrorsinteger
consecutiveGatewayErrorsinteger

Number of gateway errors before a host is ejected from the connection pool.

consecutiveLocalOriginFailuresinteger
intervalstring

Time interval between ejection sweep analysis.

maxEjectionPercentinteger
minHealthPercentinteger
splitExternalLocalOriginErrorsboolean

Determines whether to distinguish local origin failures from external errors.

.spec.trafficPolicy.portLevelSettings

描述
Traffic policies specific to individual ports.
类型
array

.spec.trafficPolicy.portLevelSettings[]

类型
object
属性类型描述
connectionPoolobject
loadBalancerobject

Settings controlling the load balancer algorithms.

outlierDetectionobject
portobject
tlsobject

TLS related settings for connections to the upstream service.

.spec.trafficPolicy.portLevelSettings[].connectionPool

类型
object
属性类型描述
httpobject

HTTP connection pool settings.

tcpobject

Settings common to both HTTP and TCP upstream connections.

.spec.trafficPolicy.portLevelSettings[].connectionPool.http

描述
HTTP connection pool settings.
类型
object
属性类型描述
h2UpgradePolicystring

Specify if http1.1 connection should be upgraded to http2 for the associated destination.

http1MaxPendingRequestsinteger
http2MaxRequestsinteger

Maximum number of active requests to a destination.

idleTimeoutstring

The idle timeout for upstream connection pool connections.

maxRequestsPerConnectioninteger

Maximum number of requests per connection to a backend.

maxRetriesinteger
useClientProtocolboolean

If set to true, client protocol will be preserved while initiating connection to backend.

.spec.trafficPolicy.portLevelSettings[].connectionPool.tcp

描述
Settings common to both HTTP and TCP upstream connections.
类型
object
属性类型描述
connectTimeoutstring

TCP connection timeout.

maxConnectionDurationstring

The maximum duration of a connection.

maxConnectionsinteger

Maximum number of HTTP1 /TCP connections to a destination host.

tcpKeepaliveobject

If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.

.spec.trafficPolicy.portLevelSettings[].connectionPool.tcp.tcpKeepalive

描述
If set then set SO_KEEPALIVE on the socket to enable TCP Keepalives.
类型
object
属性类型描述
intervalstring

The time duration between keep-alive probes.

probesinteger
timestring

.spec.trafficPolicy.portLevelSettings[].loadBalancer

描述
Settings controlling the load balancer algorithms.
类型
object
属性类型描述
consistentHashobject
localityLbSettingobject
simplestring
warmupDurationSecsstring

Represents the warmup duration of Service.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.consistentHash

类型
object
属性类型描述
httpCookieobject

Hash based on HTTP cookie.

httpHeaderNamestring

Hash based on a specific HTTP header.

httpQueryParameterNamestring

Hash based on a specific HTTP query parameter.

maglevobject

The Maglev load balancer implements consistent hashing to backend hosts.

minimumRingSizeinteger

Deprecated.

ringHashobject

The ring/modulo hash load balancer implements consistent hashing to backend hosts.

useSourceIpboolean

Hash based on the source IP address.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.httpCookie

描述
Hash based on HTTP cookie.
类型
object
属性类型描述
namestring

Name of the cookie.

pathstring

Path to set for the cookie.

ttlstring

Lifetime of the cookie.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.maglev

描述
The Maglev load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
tableSizeinteger

The table size for Maglev hashing.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.consistentHash.ringHash

描述
The ring/modulo hash load balancer implements consistent hashing to backend hosts.
类型
object
属性类型描述
minimumRingSizeinteger

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting

类型
object
属性类型描述
distributearray

Optional: only one of distribute, failover or failoverPriority can be set.

enabledboolean

enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety.

failoverarray

Optional: only one of distribute, failover or failoverPriority can be set.

failoverPriorityarray

failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute[]

类型
object
属性类型描述
fromstring

Originating locality, '/' separated, e.g.

toobject

Map of upstream localities to traffic distribution weights.

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.distribute[].to

描述
Map of upstream localities to traffic distribution weights.
类型
object

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failover

描述
Optional: only one of distribute, failover or failoverPriority can be set.
类型
array

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failover[]

类型
object
属性类型描述
fromstring

Originating region.

tostring

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failoverPriority

描述
failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing.
类型
array

.spec.trafficPolicy.portLevelSettings[].loadBalancer.localityLbSetting.failoverPriority[]

类型
string

.spec.trafficPolicy.portLevelSettings[].outlierDetection

类型
object
属性类型描述
baseEjectionTimestring

Minimum ejection duration.

consecutive5xxErrorsinteger

Number of 5xx errors before a host is ejected from the connection pool.

consecutiveErrorsinteger
consecutiveGatewayErrorsinteger

Number of gateway errors before a host is ejected from the connection pool.

consecutiveLocalOriginFailuresinteger
intervalstring

Time interval between ejection sweep analysis.

maxEjectionPercentinteger
minHealthPercentinteger
splitExternalLocalOriginErrorsboolean

Determines whether to distinguish local origin failures from external errors.

.spec.trafficPolicy.portLevelSettings[].port

类型
object
属性类型描述
numberinteger

.spec.trafficPolicy.portLevelSettings[].tls

描述
TLS related settings for connections to the upstream service.
类型
object
属性类型描述
caCertificatesstring
clientCertificatestring

REQUIRED if mode is MUTUAL.

credentialNamestring
insecureSkipVerifyboolean
modestring
privateKeystring

REQUIRED if mode is MUTUAL.

snistring

SNI string to present to the server during TLS handshake.

subjectAltNamesarray

.spec.trafficPolicy.portLevelSettings[].tls.subjectAltNames

类型
array

.spec.trafficPolicy.portLevelSettings[].tls.subjectAltNames[]

类型
string

.spec.trafficPolicy.tls

描述
TLS related settings for connections to the upstream service.
类型
object
属性类型描述
caCertificatesstring
clientCertificatestring

REQUIRED if mode is MUTUAL.

credentialNamestring
insecureSkipVerifyboolean
modestring
privateKeystring

REQUIRED if mode is MUTUAL.

snistring

SNI string to present to the server during TLS handshake.

subjectAltNamesarray

.spec.trafficPolicy.tls.subjectAltNames

类型
array

.spec.trafficPolicy.tls.subjectAltNames[]

类型
string

.spec.trafficPolicy.tunnel

类型
object
属性类型描述
protocolstring

Specifies which protocol to use for tunneling the downstream connection.

targetHoststring

Specifies a host to which the downstream connection is tunneled.

targetPortinteger

Specifies a port to which the downstream connection is tunneled.

.spec.workloadSelector

类型
object
属性类型描述
matchLabelsobject

.spec.workloadSelector.matchLabels

类型
object

.status

类型
object

API 端点

可用的 API 端点如下:

  • /apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules
    • DELETE: delete collection of DestinationRule
    • GET: list objects of kind DestinationRule
    • POST: create a new DestinationRule
  • /apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules/{name}
    • DELETE: delete the specified DestinationRule
    • GET: read the specified DestinationRule
    • PATCH: partially update the specified DestinationRule
    • PUT: replace the specified DestinationRule
  • /apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules/{name}/status
    • GET: read status of the specified DestinationRule
    • PATCH: partially update status of the specified DestinationRule
    • PUT: replace status of the specified DestinationRule

/apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules

HTTP 方法
DELETE
描述
delete collection of DestinationRule
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
list objects of kind DestinationRule
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRuleList schema
401 - UnauthorizedEmpty
HTTP 方法
POST
描述
create a new DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDestinationRule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
201 - CreatedDestinationRule schema
202 - AcceptedDestinationRule schema
401 - UnauthorizedEmpty

/apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules/{name}

HTTP 方法
DELETE
描述
delete the specified DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
HTTP 响应
HTTP 状态码响应体
200 - OKStatus schema
202 - AcceptedStatus schema
401 - UnauthorizedEmpty
HTTP 方法
GET
描述
read the specified DestinationRule
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update the specified DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace the specified DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDestinationRule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
201 - CreatedDestinationRule schema
401 - UnauthorizedEmpty

/apis/networking.istio.io/v1beta1/namespaces/{namespace}/destinationrules/{name}/status

HTTP 方法
GET
描述
read status of the specified DestinationRule
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
401 - UnauthorizedEmpty
HTTP 方法
PATCH
描述
partially update status of the specified DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
401 - UnauthorizedEmpty
HTTP 方法
PUT
描述
replace status of the specified DestinationRule
查询参数
参数类型描述
dryRunstringWhen present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
fieldValidationstringfieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
请求体参数
参数类型描述
bodyDestinationRule schemaapplication/json formatted
HTTP 响应
HTTP 状态码响应体
200 - OKDestinationRule schema
201 - CreatedDestinationRule schema
401 - UnauthorizedEmpty