无法在 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 operator

Every operator implementation requires a custom resource definition (CRD) to define its custom resource, that is, its API. Istio’s operator API is defined by the IstioControlPlane CRD, which is generated from an IstioControlPlane proto. The API supports all of Istio’s current configuration profiles using a single field to select the profile. For example, the following IstioControlPlane resource configures Istio using the demo profile:

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

You can then customize the configuration with additional settings. For example, to disable telemetry:

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

如何install istio with istio operator

Prerequisites

Deploy the Istio operator:

istioctl operator init

此命令通过在 istio-operator 命名空间中创建以下资源来 运行 操作员:

  • 算子自定义资源定义
  • 运营商控制器部署
  • 访问操作员指标的服务
  • 必要的 Istio 算子 RBAC 规则

See the available istioctl operator init flags to control which namespaces the >controller and Istio are installed into and the installed Istio image sources and versions.


您也可以使用 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 -

注意上面的命令需要下载the Istio release到运行


To install the Istio demo configuration profile using the operator, run the following command:

$ 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

The controller will detect the IstioOperator resource and then install the Istio components corresponding to the specified (demo) configuration.