# Istio 下載下傳
curl -L
https://git.io/getLatestIstio| ISTIO_VERSION=1.4.6 sh -
cd istio-1.4.6
export PATH=$PWD/bin:$PATH

---
VERSION=$(curl --silent "https://api.github.com/repos/istio/istio/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
| ISTIO_VERSION=$VERSION sh -
cd istio-$VERSION
# Istio 安裝
istioctl manifest apply --set profile=demo
# 将IngressGateway ServiceType修改成NodePort
kubectl patch svc -n istio-system istio-ingressgateway -p '{"spec": {"type": "NodePort"}}'
# Profile 分類
default:根據IstioOperatorAPI的預設設定啟用元件 (建議用于生産部署)。您可以通過運作指令顯示預設設定istioctl profile dump。
demo:旨在展示Istio功能且資源需求适中的配置。适合運作Bookinfo應用程式和相關任務。這是随快速入門說明一起安裝的配置。
minimal:使用Istio的流量管理功能所需的最少元件集。
sds: 類似default ,但是啟用了 Istio 的 SDS (secret discovery service) 功能。 這個配置檔案預設啟用了附帶的認證功能 (Strict Mutual TLS)。
remote:用于配置的遠端簇 的多組網格與 共享控制平面配置。
empty:不部署任何内容。這可用作自定義配置的基本配置檔案。
preview:預覽配置檔案包含實驗性功能。目的是探索Istio的新功能。不能保證穩定性,安全性和性能-使用後果自負。
Istio 1.4 及之前
https://archive.istio.io/v1.5/pt-br/docs/setup/additional-setup/config-profiles/Istio 1.5 & 1.6
https://istio.io/latest/docs/setup/additional-setup/config-profiles/# dump profile到檔案
istioctl profile dump minimal > minimal.yaml
# BookInfo
## 命名空間自動注入sidecar
kubectl label namespace default istio-injection=enabled
## 微服務部署
kubectl apply -f
samples/bookinfo/platform/kube/bookinfo.yaml## 服務入口配置
samples/bookinfo/networking/bookinfo-gateway.yaml