首页 > 解决方案 > 当我在所有目的地都设置了“子集”时,Istio 失败并显示“上游没有健康”

问题描述

下面是我的 VirtualService YAML。如果我不评论下面标记的行(子集:v1),那么任何请求都会失败,并显示“上游没有健康”。

任何想法,为什么这可能是一个问题?

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: dragon-vs
  namespace: flight
spec:
  hosts:
  - "*" 
  gateways:
    - dragon-gateway
  http:
  - match:
    - uri:
        prefix: /api/values
    route:
    - destination:
        host: dragon.flight.svc.cluster.local
        subset: v1 ## !!! this is the problem !!! ## 
      weight: 95
    - destination:
        host: dragon.flight.svc.cluster.local
        subset: v2
      weight: 5

标签: kubernetesgoogle-kubernetes-engineistioazure-aksenvoyproxy

解决方案


推荐阅读