首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Istio出口流量路由-无出口网关重试

Istio出口流量路由-无出口网关重试
EN

Stack Overflow用户
提问于 2022-06-06 17:43:11
回答 1查看 203关注 0票数 0

我正在尝试实现VirtualService中的重试功能,用于网格外部的出口流量。这似乎行不通。我们是否应该总是为重试工作配置出口网关?

代码语言:javascript
复制
 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 
EN

回答 1

Stack Overflow用户

发布于 2022-06-07 12:52:42

您所共享的虚拟服务没有与其连接的出口网关。

入口:

  • istio-egressgateway
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72521551

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档