helm安装Istio
安装步骤
- 首先搭建k8s集群,并安装好helm。
- 执行
wget https://github.com/istio/istio/releases/download/1.0.4/istio-1.3.4-linux.tar.gz
tar -zxvf istio-1.3.4-linux.tar.gz
cd istio-1.0.4
cp bin/istioctl /usr/local/bin
helm repo add istio.io https://storage.googleapis.com/istio-release/releases/1.3.4/charts/
kubectl create namespace istio-system
helm template install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f -
helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl apply -f -
$ kubectl get crds | grep 'istio.io' | wc -l
$ 23
检测
root@k8s-master:~/istio-1.3.4/install/kubernetes# kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
istio-citadel ClusterIP 10.100.242.10 <none> 8060/TCP,15014/TCP 32m
istio-galley ClusterIP 10.100.81.79 <none> 443/TCP,15014/TCP,9901/TCP 32m
istio-ingressgateway LoadBalancer 10.105.212.216 <pending> 15020:30430/TCP,80:31380/TCP,443:31390/TCP,31400:31400/TCP,15029:32230/TCP,15030:32641/TCP,15031:32289/TCP,15032:31553/TCP,15443:30762/TCP 32m
istio-pilot ClusterIP 10.107.10.100 <none> 15010/TCP,15011/TCP,8080/TCP,15014/TCP 32m
istio-policy ClusterIP 10.107.120.246 <none> 9091/TCP,15004/TCP,15014/TCP 32m
istio-sidecar-injector ClusterIP 10.102.103.187 <none> 443/TCP,15014/TCP 32m
istio-telemetry ClusterIP 10.99.188.159 <none> 9091/TCP,15004/TCP,15014/TCP,42422/TCP 32m
prometheus ClusterIP 10.98.95.168 <none> 9090/TCP 32m
root@k8s-master:~/istio-1.3.4/install/kubernetes#
root@k8s-master:~/istio-1.3.4/install/kubernetes# kubectl get pods -n istio-system
NAME READY STATUS RESTARTS AGE
istio-citadel-59574746c-9fp87 1/1 Running 0 33m
istio-galley-7c6786768c-qzg42 1/1 Running 0 33m
istio-ingressgateway-7b76ff7c54-dm5mp 1/1 Running 0 33m
istio-init-crd-10-1.3.4-2jd9f 0/1 Completed 0 33m
istio-init-crd-11-1.3.4-79nbs 0/1 Completed 0 33m
istio-init-crd-12-1.3.4-c4wxx 0/1 Completed 0 33m
istio-pilot-6c546fb5b4-gdfx7 2/2 Running 0 33m
istio-policy-5bd84dbc46-85j76 2/2 Running 2 33m
istio-security-post-install-1.3.4-nvwhs 0/1 Completed 0 33m
istio-sidecar-injector-949f4564-knnbz 1/1 Running 0 33m
istio-telemetry-68766475bc-5z9c5 2/2 Running 2 33m
prometheus-6f74d6f76d-s9xhh 1/1 Running 1 33m
root@k8s-master:~/istio-1.3.4/install/kubernetes#
卸载
-
如果你是使用
helm template
命令来安装istio,使用一下命令来卸载
helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl delete -f -
kubectl delete namespace istio-system
参考
https://istio.io/docs/setup/install/helm/#installation-steps
版权声明:本文为cbmljs原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。