| 权重 | http.route.weight(按比例) |
|---|---|
| 条件 | match 按 headers/uri/method |
| 镜像 | mirror + mirrorPercentage |
| 前提 | DestinationRule 定义 subset 标签 |
header 定向 + 权重
header 定向 + 权重
http:
- match:
- headers: {x-canary: {exact: "true"}}
route:
- destination: {host: web, subset: v2}
- route:
- destination: {host: web, subset: v1}
weight: 95
- destination: {host: web, subset: v2}
weight: 5组合使用:内部人员走 header 精确命中新版本,外部用户先小比例权重观测。