簡體   English   中英

無法在 AWS EKS 上安裝 istio 1.6.3 演示配置文件

[英]Could not install istio 1.6.3 demo profile on AWS EKS

我用這個安裝

istioctl install --set profile=demo

我得到了這個錯誤

2020-06-23T06:53:12.111697Zerrorinstallerfailed to create "PeerAuthentication/istio-s
ystem/grafana-ports-mtls-disabled": Timeout: request did not complete within requested timeout 30s
✘ Addons encountered an error: failed to create "PeerAuthentication/istio-system/grafana-ports-mtls-
disabled": Timeout: request did not complete within requested timeout 30s
- Pruning removed resources                                                                         
Error: failed to apply manifests: errors occurred during operation

我認為要么有問題

  • istioctl 安裝和 aws
  • 你的集群

您可以嘗試創建新的 eks 集群並檢查它是否有效,如果不是,我建議在istio github上打開新線程。


如果您遇到與@Possathon Chitpidakorn 相同的問題,您可以使用 istio 操作符作為安裝 istio 的解決方法,下面將詳細介紹。

istio 運算符

每個算子實現都需要一個自定義資源定義 (CRD) 來定義其自定義資源,即其 API。 Istio 的運算符 API 由 IstioControlPlane CRD 定義,該 CRD 從 IstioControlPlane 原型生成。 API 支持 Istio 的所有當前配置配置文件,使用 select 配置文件的單個字段。 例如,以下 IstioControlPlane 資源使用演示配置文件配置 Istio:

apiVersion: install.istio.io/v1alpha2
kind: IstioControlPlane
metadata:
  namespace: istio-operator
  name: example-istiocontrolplane
spec:
  profile: demo

然后,您可以使用其他設置自定義配置。 例如,要禁用遙測:

apiVersion: install.istio.io/v1alpha2
kind: IstioControlPlane
metadata:
  namespace: istio-operator
  name: example-istiocontrolplane
spec:
  profile: demo
  telemetry:
    enabled: false

如何使用 istio operator 安裝 istio

先決條件

部署Istio 操作員:

istioctl operator init

此命令通過在 istio-operator 命名空間中創建以下資源來運行 operator:

  • 算子自定義資源定義
  • 運營商controller部署
  • 訪問運營商指標的服務
  • 必要的 Istio 算子 RBAC 規則

查看可用的 istioctl operator init 標志來控制 >controller 和 Istio 安裝到哪些命名空間以及安裝的 Istio 鏡像源和版本。


您也可以使用 Helm 部署操作員:

$ helm template manifests/charts/istio-operator/ \
  --set hub=docker.io/istio \
  --set tag=1.6.3 \
  --set operatorNamespace=istio-operator \
  --set istioNamespace=istio-system | kubectl apply -f -

請注意,您需要下載Istio 版本才能運行上述命令。


要使用 operator 安裝 Istio 演示配置文件,請運行以下命令:

$ kubectl create ns istio-system
$ kubectl apply -f - <<EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: example-istiocontrolplane
spec:
  profile: demo
EOF

controller 將檢測 IstioOperator 資源,然后安裝與指定(演示)配置對應的 Istio 組件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM