跳至主要内容

在 RKE2 和 K3s 叢集上安裝 Istio 的其他步驟

注意

Rancher-Istio 將在 Rancher v2.12.0 中被棄用;請改用 SUSE Rancher Application Collection 建置的 Istio 以獲得增強的安全性(包含在 SUSE Rancher Prime 訂閱中)。

詳細資訊可以在此公告中找到。

透過 Apps 安裝或升級 Istio Helm chart 時,

  1. 如果您正在安裝 chart,請點擊 Customize Helm options before install 並點擊 Next。
  2. 您將看到設定 Istio Helm chart 的選項。在 Components 標籤上,勾選 Enabled CNI 旁邊的核取方塊。
  3. 新增指定 cniBinDir 和 cniConfDir 的自訂覆蓋檔案。有關這些選項的更多資訊,請參閱 Istio 文件。以下是範例:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
components:
cni:
enabled: true
k8s:
overlays:
- apiVersion: "apps/v1"
kind: "DaemonSet"
name: "istio-cni-node"
patches:
- path: spec.template.spec.containers.[name:install-cni].securityContext.privileged
value: true
values:
cni:
cniBinDir: /opt/cni/bin
cniConfDir: /etc/cni/net.d

結果: 現在您應該能夠按需使用 Istio,包括 sidecar 注入和透過 Kiali 進行監控。