流量治理的原理 —— VirutalService —— HTTPRoute
https://istio.io/latest/docs/reference/config/networking/virtual-service/#HTTPRoute
Describes match conditions and actions for routing HTTP/1.1, HTTP2, and gRPC traffic. See VirtualService for usage examples.
Field | Type | Description | Required |
---|---|---|---|
name |
string |
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. |
No |
match |
HTTPMatchRequest[] |
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. |
No |
route |
HTTPRouteDestination[] |
A HTTP rule can either return a direct_response, 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. |
No |
redirect |
HTTPRedirect |
A HTTP rule can either return a direct_response, 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. |
No |
directResponse |
HTTPDirectResponse |
A HTTP rule can either return a direct_response, redirect or forward (default) traffic. Direct Response is used to specify a fixed response that should be sent to clients. It can be set only when |
No |
delegate |
Delegate |
Delegate is used to specify the particular VirtualService which can be used to define delegate HTTPRoute. It can be set only when NOTE:
|
No |
rewrite |
HTTPRewrite |
Rewrite HTTP URIs and Authority headers. Rewrite cannot be used with Redirect primitive. Rewrite will be performed before forwarding. |
No |
timeout |
Duration |
Timeout for HTTP requests, default is disabled. |
No |
retries |
HTTPRetry |
Retry policy for HTTP requests. |
No |
fault |
HTTPFaultInjection |
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. |
No |
mirror |
Destination |
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. |
No |
mirrors |
HTTPMirrorPolicy[] |
Specifies the destinations to mirror HTTP traffic in addition to the original destination. Mirrored traffic is on a best effort basis where the sidecar/gateway will not wait for the mirrored destinations to respond before returning the response from the original destination. Statistics will be generated for the mirrored destination. |
No |
mirrorPercentage |
Percent |
Percentage of the traffic to be mirrored by the |
No |
corsPolicy |
CorsPolicy |
Cross-Origin Resource Sharing policy (CORS). Refer to CORS for further details about cross origin resource sharing. |
No |
headers |
Headers |
Header manipulation rules |
No |
- Maven常见问题与原理技巧
- 第十二节:红黑树性质、相对平衡的原理、与AVL树的区别
- CS5569芯片,CS556,设计资料,CS5569规格书,CS5569原理图,typec转HDMI 8K带PD方案
- 【C语言】模块划分、编译器工作原理
- armv8虚拟化原理笔记
- 计算机组成原理 复习笔记
- 配色方案大概原理
- UCB Data100:数据科学的原理和技巧:第十一章到第十五章
- UCB Data100:数据科学的原理和技巧:第十六章到第二十章
- UCB Data100:数据科学的原理和技巧:第一章到第五章
- VirutalService HTTPRoute 流量 原理 Istiovirutalservice httproute流量 原理 routedestination virutalservice流量 原理 virutalservice httpredirect流量 原理 httpmatchrequest virutalservice流量 原理 virutalservice流量 原理headers virutalservice delegate流量 原理 virutalservice tlsroute流量 原理 virtualservice流量 原理istio 流量istio 流量 时间istio