对bookinfo所有服务施加版本1的VirtualService之前,cluster里无版本号
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
$ istioctl proxy-config route productpage-v1-7f4cc988c6-qxqjs.istio-bookinfo --name 9080 -o json | grep -A 60 '"name": "reviews.istio-bookinfo.svc.cluster.local:9080",' "name": "reviews.istio-bookinfo.svc.cluster.local:9080", "domains": [ "reviews.istio-bookinfo.svc.cluster.local", "reviews.istio-bookinfo.svc.cluster.local:9080", "reviews", "reviews:9080", "reviews.istio-bookinfo.svc.cluster", "reviews.istio-bookinfo.svc.cluster:9080", "reviews.istio-bookinfo.svc", "reviews.istio-bookinfo.svc:9080", "reviews.istio-bookinfo", "reviews.istio-bookinfo:9080", "10.105.236.72", "10.105.236.72:9080" ], "routes": [ { "name": "default", "match": { "prefix": "/" }, "route": { "cluster": "outbound|9080||reviews.istio-bookinfo.svc.cluster.local", "timeout": "0s", .... |
施加版本v1的VirtualService后, 可以看到cluster中指定了版本号
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
$ istioctl proxy-config route productpage-v1-7f4cc988c6-qxqjs.istio-bookinfo --name 9080 -o json | grep -A 60 '"name": "reviews.istio-bookinfo.svc.cluster.local:9080",' "name": "reviews.istio-bookinfo.svc.cluster.local:9080", "domains": [ "reviews.istio-bookinfo.svc.cluster.local", "reviews.istio-bookinfo.svc.cluster.local:9080", "reviews", "reviews:9080", "reviews.istio-bookinfo.svc.cluster", "reviews.istio-bookinfo.svc.cluster:9080", "reviews.istio-bookinfo.svc", "reviews.istio-bookinfo.svc:9080", "reviews.istio-bookinfo", "reviews.istio-bookinfo:9080", "10.105.236.72", "10.105.236.72:9080" ], "routes": [ { "match": { "prefix": "/" }, "route": { "cluster": "outbound|9080|v1|reviews.istio-bookinfo.svc.cluster.local", "timeout": "0s", |
文章评论