我正在尝试实现VirtualService中的重试功能,用于网格外部的出口流量。这似乎行不通。我们是否应该总是为重试工作配置出口网关?
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: httpbin-external
spec:
hosts:
- httpbin.org
ports:
- number: 80
name: http
protocol: HTTP
- number: 443
name: tls
protocol: TLS
resolution: DNS
location: MESH_EXTERNAL
exportTo:
- "."
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: external-httpbin
spec:
hosts:
- httpbin.org
http:
- timeout: 3s
route:
- destination:
host: httpbin.org
weight: 100
retries:
attempts: 5
perTryTimeout: 2s
retryOn: gateway-error,connect-failure,refused-stream,retriable-4xx,5xx 发布于 2022-06-07 12:52:42
您所共享的虚拟服务没有与其连接的出口网关。
入口:
https://stackoverflow.com/questions/72521551
复制相似问题