istio 安装

1. 安装步骤

1. wget https://github.com/istio/istio/releases/download/1.0.6/istio-1.0.6-linux.tar.gz

2. tar xf istio-1.0.6-linux.tar.gz

3. echo export PATH=$PATH:/root/istio-1.0.6/bin >> /etc/profile

4. source /etc/profile

5. kubectl create ns book

6. kubectl -n book apply -f istio-1.0.6/install/kubernetes/helm/istio/templates/crds.yaml

7. 修改istio-1.0.6/install/kubernetes/istio-demo.yaml 内容

 12492   type: NodePort

8. kubectl -n book apply -f istio-1.0.6/install/kubernetes/istio-demo.yaml

9.  安装bookinfo demo

10.  kubectl -n book apply -f  istio-1.0.6/samples/bookinfo/platform/kube/bookinfo.yaml


11.  kubectl -n book apply -f istio-1.0.6/samples/bookinfo/networking/bookinfo-gateway.yaml


12. export INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o 'jsonpath={.items[0].status.hostIP}')

13. export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http")].nodePort}')

14. 访问 INGRESS_HOST:INGRESS_PORT
View Code

 

2. 截图

 

 

posted @ 2019-03-05 10:59  追求那份真  阅读(667)  评论(0编辑  收藏  举报