Helm安装Istio

转载:(2条消息) helm安装Istio_cbmljs的博客-CSDN博客_helm 安装istio

安装步骤

  1. 首先搭建k8s集群,并安装好helm。
  2. 执行
  1.  
    wget https://github.com/istio/istio/releases/download/1.0.4/istio-1.3.4-linux.tar.gz
  2.  
    tar -zxvf istio-1.3.4-linux.tar.gz
  3.  
    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 -
  1.  
    $ kubectl get crds | grep 'istio.io' | wc -l
  2.  
    $ 23

检测

  1.  
    root@k8s-master:~/istio-1.3.4/install/kubernetes# kubectl get svc -n istio-system
  2.  
     
  3.  
    NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
  4.  
    istio-citadel ClusterIP 10.100.242.10 <none> 8060/TCP,15014/TCP 32m
  5.  
    istio-galley ClusterIP 10.100.81.79 <none> 443/TCP,15014/TCP,9901/TCP 32m
  6.  
    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
  7.  
    istio-pilot ClusterIP 10.107.10.100 <none> 15010/TCP,15011/TCP,8080/TCP,15014/TCP 32m
  8.  
    istio-policy ClusterIP 10.107.120.246 <none> 9091/TCP,15004/TCP,15014/TCP 32m
  9.  
    istio-sidecar-injector ClusterIP 10.102.103.187 <none> 443/TCP,15014/TCP 32m
  10.  
    istio-telemetry ClusterIP 10.99.188.159 <none> 9091/TCP,15004/TCP,15014/TCP,42422/TCP 32m
  11.  
    prometheus ClusterIP 10.98.95.168 <none> 9090/TCP 32m
  12.  
    root@k8s-master:~/istio-1.3.4/install/kubernetes#
  1.  
    root@k8s-master:~/istio-1.3.4/install/kubernetes# kubectl get pods -n istio-system
  2.  
    NAME READY STATUS RESTARTS AGE
  3.  
    istio-citadel-59574746c-9fp87 1/1 Running 0 33m
  4.  
    istio-galley-7c6786768c-qzg42 1/1 Running 0 33m
  5.  
    istio-ingressgateway-7b76ff7c54-dm5mp 1/1 Running 0 33m
  6.  
    istio-init-crd-10-1.3.4-2jd9f 0/1 Completed 0 33m
  7.  
    istio-init-crd-11-1.3.4-79nbs 0/1 Completed 0 33m
  8.  
    istio-init-crd-12-1.3.4-c4wxx 0/1 Completed 0 33m
  9.  
    istio-pilot-6c546fb5b4-gdfx7 2/2 Running 0 33m
  10.  
    istio-policy-5bd84dbc46-85j76 2/2 Running 2 33m
  11.  
    istio-security-post-install-1.3.4-nvwhs 0/1 Completed 0 33m
  12.  
    istio-sidecar-injector-949f4564-knnbz 1/1 Running 0 33m
  13.  
    istio-telemetry-68766475bc-5z9c5 2/2 Running 2 33m
  14.  
    prometheus-6f74d6f76d-s9xhh 1/1 Running 1 33m
  15.  
    root@k8s-master:~/istio-1.3.4/install/kubernetes#

卸载

  1. 如果你是使用helm template命令来安装istio,使用一下命令来卸载
  1.  
    helm template install/kubernetes/helm/istio --name istio --namespace istio-system | kubectl delete -f -
  2.  
    kubectl delete namespace istio-system

参考

https://istio.io/docs/setup/install/helm/#installation-steps

posted @ 2020-12-06 09:38  jack-jin  阅读(377)  评论(0)    收藏  举报