【发布时间】:2021-07-14 17:06:51
【问题描述】:
TL;DR:n 在集群 pod 上重新绑定后如何回退到外部服务?
VirtualService 将 HTTP 请求路由到集群 pod 并在 pod 返回 503 时重试。我需要在n 重试后将请求路由到外部服务。
是否可以在VirtualService 路由中使用x-envoy-attempt-count 标头字段?
http:
- match:
- headers:
x-envoy-attempt-count:
exact: 5
还有其他选择吗?
Istio 1.9.4 在重试期间似乎没有重新评估路由,因此标头匹配的路由永远不会被选中。
【问题讨论】:
-
我需要像 Nginx
backup这样的上游指令 nginx.org/en/docs/http/ngx_http_upstream_module.html#upstream
标签: kubernetes istio