【问题标题】:Could not install istio 1.6.3 demo profile on AWS EKS无法在 AWS EKS 上安装 istio 1.6.3 演示配置文件
【发布时间】:2020-10-12 04:10:53
【问题描述】:

我用这个安装

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 install --set profile=demo --set addonComponents.grafana.enabled=true 并告诉我结果如何吗?你试过用istio operator吗?
  • FWIW - 我在解决与 istio 1.6.1 完全相同的问题时发现了这一点。我的安装自动化了 50 多次成功部署,但现在它们今天都失败了,这让我很确定问题是我这边的一些变化。我正在运行 AWS / k8s 1.15,目前正在怀疑 SG / 防火墙规则。如果我发现有用的东西我会回复。为了获得更好的建议/帮助,您应该在此处添加更多信息,例如环境、集群等;以及您的部署方式和到目前为止所做的工作。我根据你的标签猜测你的设置,但一些叙述会很有用。
  • @jt97 我尝试了命令作为您的建议。它仍然没有工作。我会尝试 istio 操作员,稍后会更新给您。谢谢
  • 我更新了我用于安装命令的问题。
  • 我已经尝试过 istio 运算符,它的工作!谢谢@jt97

标签: amazon-web-services kubernetes istio amazon-eks


【解决方案1】:

我认为也有问题

  • istioctl 安装和 aws
  • 您的集群

您可以尝试创建新的 eks 集群并检查它是否有效,如果无效,我建议在 istio github 上打开新线程。


如果您遇到与@Possathon Chitpidakorn 相同的问题,您可以使用 istio 操作符作为解决方法来安装 istio,下面将详细介绍。

istio operator

每个算子实现都需要自定义资源定义 (CRD) 来定义其自定义资源,即其 API。 Istio 的 operator API 由 IstioControlPlane CRD 定义,该 CRD 从 IstioControlPlane proto 生成。 API 支持所有 Istio 当前的配置文件,使用单个字段来选择配置文件。例如,以下 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

如何install istio with istio operator

先决条件

部署 Istio 操作员:

istioctl operator init

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

  • 算子自定义资源定义
  • 操作员控制器部署
  • 访问运营商指标的服务
  • 必要的 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 -

请注意,您需要下载the Istio release才能运行上述命令。


要使用操作符安装 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

控制器会检测 IstioOperator 资源,然后安装与指定(演示)配置对应的 Istio 组件。

【讨论】:

    猜你喜欢
    • 2023-03-25
    • 2021-07-09
    • 1970-01-01
    • 1970-01-01
    • 2022-07-25
    • 1970-01-01
    • 2021-07-07
    • 2021-06-03
    • 2021-12-26
    相关资源
    最近更新 更多