发布于 2022-01-11 18:43:30
RouteRule
(在您发送的第二个链接中使用)是VirtualService
VirtualService
、DestinationRule
和ServiceEntry
分别取代RouteRule
、DestinationPolicy
和EgressRule
。
在本-> 故障注入文档中提供了关于如何配置HTTP延迟故障的良好说明。
基于request-type:chaos
和入口通道文档的标题( 故障注入 )的YAML配置示例:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- "httpbin.example.com"
gateways:
- httpbin-gateway
http:
- fault:
delay:
fixedDelay: 7s
percent: 100
match:
- headers:
request-type:
exact: chaos
route:
- destination:
port:
number: 80
host: my-echo-service
- route:
- destination:
port:
number: 80
host: my-nginx-service
编辑:也应该适用于apiVersion: networking.istio.io/v1beta1
。
https://stackoverflow.com/questions/70654441
复制相似问题