一、官方脚本安装部署
[root@alicound-rocky-8-6 ~]# curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.15.2 TARGET_ARCH=x86_64 sh - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 101 100 101 0 0 3884 0 --:--:-- --:--:-- --:--:-- 3884 100 4856 100 4856 0 0 107k 0 --:--:-- --:--:-- --:--:-- 107k Downloading istio-1.15.2 from https://github.com/istio/istio/releases/download/1.15.2/istio-1.15.2-linux-amd64.tar.gz ... Istio 1.15.2 Download Complete! Istio has been successfully downloaded into the istio-1.15.2 folder on your system. Next Steps: See https://istio.io/latest/docs/setup/install/ to add Istio to your Kubernetes cluster. To configure the istioctl client tool for your workstation, add the /root/istio-1.15.2/bin directory to your environment path variable with: export PATH="$PATH:/root/istio-1.15.2/bin" Begin the Istio pre-installation check by running: istioctl x precheck Need more information? Visit https://istio.io/latest/docs/setup/install/ [root@alicound-rocky-8-6 ~]#
二、下载tar安装
[root@easzlab-k8s-master-01 ~]# mkdir istio [root@easzlab-k8s-master-01 istio]# [root@easzlab-k8s-master-01 istio]# wget https://github.com/istio/istio/releases/download/1.15.2/istio-1.15.2-linux-amd64.tar.gz [root@easzlab-k8s-master-01 istio]# tar -xf istio-1.15.2-linux-amd64.tar.gz [root@easzlab-k8s-master-01 istio-1.15.2]# cp bin/istioctl /usr/local/bin/ [root@easzlab-k8s-master-01 istio-1.15.2]# istioctl install --set profile=demo -y ✔ Istio core installed ✔ Istiod installed ✔ Egress gateways installed ✔ Ingress gateways installed ✔ Installation complete Making this installation the default for injection and validation. Thank you for installing Istio 1.15. Please take a few minutes to tell us about your install/upgrade experience! https://forms.gle/SWHFBmwJspusK1hv6 [root@easzlab-k8s-master-01 istio-1.15.2]#
三、部署应用
官方参考文档:https://istio.io/latest/docs/setup/getting-started/
[root@easzlab-k8s-master-01 istio-1.15.2]# kubectl create ns istio namespace/istio created [root@easzlab-k8s-master-01 istio-1.15.2]# kubectl label namespace istio istio-injection=enabled namespace/istio labeled [root@easzlab-k8s-master-01 istio-1.15.2]# [root@easzlab-k8s-master-01 istio-1.15.2]# kubectl apply -n istio -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 [root@easzlab-k8s-master-01 istio-1.15.2]#
原文地址:http://www.cnblogs.com/cyh00001/p/16801728.html
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,请务用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员!
8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载
声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性