之前写过一个helm2安装istio的,今天因为项目需要必须得用helm3进行安装,helm3和helm2的区别其实挺大的,操作命令也有很大的不同,这里记录一下安装过程
helm repo add azure http://mirror.azure.cn/kubernetes/charts/
helm repo update
helm search repo mysql //测试helm charts repo是否正常访问
之后istio安装
直接代码操作
1 .wget https://github.com/istio/istio/releases/download/1.3.2/istio-1.3.2-linux.tar.gz (curl也行)
tar -xvf istio-1.3.2-linux.tar.gz
cd istio-1.3.2
export
PATH=$PWD
/bin
:$PATH
2 helm 配置istio的仓库(这里是微软的 其余的仓库也可以)
helm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.3.2/charts/
3 创建namesapce
kubectl create namespace istio-system
4 创建crd资源
helm install istio-init istio.io/istio-init -n istio-system
--set gateways.istio-ingressgateway.type=NodePort --set grafana.enabled=true --set kiali.enabled=true --set tracing.enabled=true --set pilot.resources.requests.memory="1024Mi" 根据自己实际情况选择
5 创建
helm install istio istio.io/istio -n istio-system
-set gateways.istio-ingressgateway.type=NodePort -set grafana.enabled=true -set kiali.enabled=true -set tracing.enabled=true 根据自己实际的情况进行选择
至于helm3的安装,网上有很多的教程,这里就不介绍了!