【问题标题】:istioctl install fails with multiple timeoutsistioctl 安装失败并出现多个超时
【发布时间】:2020-10-15 14:05:28
【问题描述】:

istio docs to install the demo profile 之后,我收到以下错误。其他人几个月来一直在收到此错误,但没有得到解决。

其他安装方法有效吗? helm 安装已被弃用,但它仍然有效吗?有没有办法删除我现在的部分安装?

$ istioctl install --set profile=demo
Detected that your cluster does not support third party JWT authentication. Falling back to less secure first party JWT. See https://istio.io/docs/ops/best-practices/security/#configure-third-party-service-account-tokens for details.
✔ Istio core installed                                                                                                                      
  Processing resources for Istiod. Waiting for Deployment/istio-system/istiod                                                               
✘ Istiod encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the condition             
Deployment/istio-system/istiod
✘ Egress gateways encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the conditions...
Deployment/istio-system/istio-egressgateway
✘ Ingress gateways encountered an error: failed to wait for resource: resources not ready after 5m0s: timed out waiting for the condition   
Deployment/istio-system/istio-ingressgateway
- Pruning removed resources                                                                                                                 Error: failed to install manifests: errors occurred during operation

【问题讨论】:

  • 您的基础架构是什么?我假设你使用 minikube/microk8s,根据 istio documentation 你应该至少有 16384 MB 的内存和 4 个 CPU。你能试着增加它并检查它是否有效吗?关于移除,可以使用istioctl experimental uninstall --purgedelete所有的istio资源。
  • Jakub - 我在 3 个主机(主节点和两个节点)上运行一个真正的 kubernetes 集群。我的主人有 12 GB RAM,所以也许这就是问题所在,但我不明白为什么会导致超时错误。安装文档没有提到最低 RAM 量。 16 GB 是硬性要求吗?减少会导致我看到的错误吗?
  • 您使用的是最新的 istio 版本吗?您是否尝试过使用其他配置文件,例如 defaultminimal?根据您提供的信息,我会说这是资源问题,但如果没有豆荚不健康的真正原因,就不能说更多。您能否使用 kubectl get pods -n istio-systemkubectl describe <unhealthy pod> -n istio-system 检查 istio-system 命名空间中不健康的 pod 并检查原因? 16GB 不是硬性要求,我以为你用的是 minikube/microk8s。
  • Jakub - 完成清除后,我使用 istioctl install 进行了默认安装并得到相同的超时错误。
  • 为了完整起见,在执行上述 --purge 之后,还需要执行 kubectl delete namespaces istio-system 以在安装失败后删除命名空间。

标签: kubernetes-helm istio


【解决方案1】:

我在另一个主节点上有 32 GB RAM 的 kubernetes 集群上尝试了 istioctl install,它成功了。这个集群的创建方式与第一个集群的创建方式相同,主服务器上具有 12 GB RAM,因此允许安装工作的区别在于 RAM 的数量。

istioctl install 的最低 RAM 要求没有记录,但需要。超时错误消息具有误导性。它应该说RAM不足。还应该有裸机安装的文档。

如果没有足够的 RAM 进行安装,则预检检查不应指示通过。

我希望这可以帮助遇到超时消息的其他人。

【讨论】:

    【解决方案2】:

    我遇到了同样的问题。 我设置了个人资料,它有帮助

    istioctl install --set profile=minimal
    

    【讨论】:

      猜你喜欢
      • 2017-11-29
      • 1970-01-01
      • 2022-01-23
      • 1970-01-01
      • 2021-07-31
      • 2021-11-08
      • 2013-10-08
      • 2016-02-27
      • 2021-04-24
      相关资源
      最近更新 更多