【发布时间】:2023-03-18 09:44:01
【问题描述】:
以下是我的istio yaml 用于交通转移。如果我在大三角帆中传递参数,我会收到以下错误。我只发送整数值,如 10、20 等。
"json: 无法将字符串解组为 int32 类型的 Go 值"
我可以在 yaml 中将字符串更改为整数吗?
- apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: webvs
namespace: default
spec:
gateways:
- xyz.default.svc.cluster.local
- mesh
hosts:
- web.xyz.com
http:
- route:
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v1
weight: '${ parameters.Prodweightb }'
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v2
weight: '${ parameters.Blineweightb }'
- destination:
host: web.default.svc.cluster.local
port:
number: 8080
subset: v3
weight: '${ parameters.Canaryweightb }'
【问题讨论】:
标签: types yaml istio spinnaker