下载相应文件
wget https://raw.githubusercontent.com/istio/istio/release-0.8/samples/bookinfo/kube/bookinfo.yaml
wget https://raw.githubusercontent.com/istio/istio/release-0.8/samples/bookinfo/routing/bookinfo-gateway.yaml
wget https://raw.githubusercontent.com/istio/istio/release-0.8/samples/bookinfo/routing/route-rule-all-v1.yaml
wget https://raw.githubusercontent.com/istio/istio/release-0.8/samples/bookinfo/routing/route-rule-reviews-test-v2.yaml
创建bookinfo应用
istioctl kube-inject -f bookinfo.yaml |kubectl create -f -
bookinfo架构
productpage 微服务调用details 和reviews来填充页面
details. 包含书籍信息。.
reviews. 评论微服务.
ratings. 该服务随reviews一起包含书籍排行信息.
有3个版本的reviews微服务:
- 版本v1不会调用评分服务。
- 版本v2调用评分服务,并将每个评分显示为1至5个黑星。
- 版本v3调用评分服务,并将每个评分显示为1到5个红色星星。
确认bookinfo应用完全启动