1.部署 Bookinfo
示例应用
cd /home/istio-1.17.1 kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml service/details created serviceaccount/bookinfo-details created deployment.apps/details-v1 created service/ratings created serviceaccount/bookinfo-ratings created deployment.apps/ratings-v1 created service/reviews created serviceaccount/bookinfo-reviews created deployment.apps/reviews-v1 created deployment.apps/reviews-v2 created deployment.apps/reviews-v3 created service/productpage created serviceaccount/bookinfo-productpage created deployment.apps/productpage-v1 created
注:如果istio的安装目录已经移除,可以在这个链接下载bookinfo.yaml资源文件。https://raw.githubusercontent.com/istio/istio/release-1.17/samples/bookinfo/platform/kube/bookinfo.yaml
2.当每个 Pod 准备就绪时,Istio 边车将伴随应用一起部署
kubectl get svc NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE details ClusterIP 10.0.0.104 <none> 9080/TCP 3m7s kubernetes ClusterIP 10.0.0.1 <none> 443/TCP 6d20h nginx NodePort 10.0.0.172 <none> 80:41194/TCP 5d15h productpage ClusterIP 10.0.0.140 <none> 9080/TCP 3m6s ratings ClusterIP 10.0.0.29 <none> 9080/TCP 3m7s reviews ClusterIP 10.0.0.80 <none> 9080/TCP 3m6s
标签:created,部署,apps,istio,TCP,bookinfo,案例,deployment From: https://www.cnblogs.com/fanqisoft/p/17167700.html