下面是我的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