istio安装命令整理
生活随笔
收集整理的這篇文章主要介紹了
istio安装命令整理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
istio安裝 和 bookinfo部署。
訪問:http://localhost:31357/productpage
istio 安裝
版本號 改成 16.
如果執行:
修改ip
199.232.28.133 raw.githubusercontent.com curl -sL https://github.com/istio/istio/releases | grep -o 'releases/[0-9]*.[0-9]*.[0-9]*/' | sort --version-sort | tail -1 | awk -F'/' '{ print $2}'master節點上執行:
curl -L https://istio.io/downloadIstio | sh - 下載安裝包,解壓。Downloading istio-1.5.1 from https://github.com/istio/istio/releases/download/1.5.1/istio-1.5.1-linux-amd64.tar.gz ...Istio has been successfully downloaded into the istio-1.5.1 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 /cpf/istio-1.5.1/bin directory to your environment path variable with:export PATH="$PATH:/cpf/istio-1.5.1/bin"Begin the Istio pre-installation check by running:istioctl x precheck Need more information? Visit https://istio.io/latest/docs/setup/install/ [root@istio-master cpf]#istio安裝:
istioctl manifest apply --set profile=demodefault: pilot ingressgateway,prometheus
demo:基本所有組件全有。
minimal : pilot
大家安裝時:提前導入鏡像。百度網盤。
開啟sidecar注入
kubectl label namespace default istio-injection=enabled 給default命名空間開啟 sidecar的 自動注入。deploy應用的時候,會同時部署一個sidecar。container里:應用 和 istio-proxy.開啟外部訪問:
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http2")].nodePort}')鏡像地址:
鏈接:https://pan.baidu.com/s/1AuNqLUGz8ozO2tLmfP82hQ 提取碼:rwin 復制這段內容后打開百度網盤手機App,操作更方便哦總結
以上是生活随笔為你收集整理的istio安装命令整理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【代码】python paramiko模
- 下一篇: Istio入门:架构原理及在k8s部署