kubernetes - 当我在所有目的地都设置了“子集”时,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
解决方案
推荐阅读
- node.js - AWS SAM:无法从函数安装,因为它不包含 package.json 文件
- r - 有没有办法在 R 中使用 facet_grid 和交互式 plot_ly?
- sql - 数据库结构:如何根据“祖父”表定义表中键的唯一性?
- python - 当我尝试使用 pip 安装 Dlib 时出错。苹果系统
- c# - 在 c# 中使用 c 套接字时的问题
- r - 如何通过比较具有共同变量值的不同行来创建新变量?
- javascript - 如何在网页中直接添加 GTM 代码?
- html - 如何从 Gmail 邮件中获取可读文本,如果它包含 html?
- java - 我在 Comets vs Spaceship 游戏中得到“IndexOutOfBounds”
- ios - Segue 创建后 UI 元素更改位置