【问题标题】:Install JupyterHub on EKS fails: "No suitable subnet for ELB"在 EKS 上安装 JupyterHub 失败:“没有适合 ELB 的子网”
【发布时间】:2020-08-15 08:23:21
【问题描述】:

我的 EKS 集群(kubernetes 版本 1.14)遇到问题。 我正在尝试通过 helm+tiller 将 JupyterHub(0.8.2 版)安装到 EKS 集群上。

安装似乎成功,但代理公共服务无法创建 ELB。请参阅下面“kubectl describe svc”的输出:

应用安装/部署失败并出现错误事件。

> kubectl describe svc
...
Name:                     proxy-public
Namespace:                jhub
Labels:                   app=jupyterhub
                          chart=jupyterhub-0.8.2
                          component=proxy-public
                          heritage=Tiller
                          release=jhub
...
  Warning  CreatingLoadBalancerFailed  1m (x6 over 3m)  service-controller  Error creating load balancer (will retry): failed to ensure load balancer for service jhub/proxy-public: could not find any suitable subnets for creating the ELB

我的 EKS 集群与 3 个子网、2 个私有子网和 1 个公有子网相关联。我认为ELB可以放在公共子网中?

【问题讨论】:

    标签: amazon-web-services amazon-elb subnet jupyterhub amazon-eks


    【解决方案1】:

    EKS 需要标记子网才能用于创建负载平衡器。要被视为符合条件的子网,请使用以下内容对其进行标记:kubernetes.io/role/elb: shared。有关详细信息,请参阅 EKS 子网标记上的 knowledge portal article

    【讨论】:

    • 奇怪,我不知道这个,以前从来没有遇到过这个问题。我能够在 EKS 1.14 上成功安装 JupyterHub 0.8.2 并且 ELB 创建得很好。这次唯一的区别是我通过 terraform 创建了所有资源,而我过去是通过 cloudformation 配置资源。我只遇到这个问题而不是以前遇到的原因可能是什么?
    • @JamesWierzba cloudformation 代码可能标记了子网,而 TF 代码没有标记
    • 这行得通,除了你提到的标签在我的情况下不是正确的,在我的情况下我需要使用"kubernetes.io/cluster/eks_cluster_tf" : "shared"
    • 这发生在我在同一 VPC 中的第二个 EKS 集群上。没有这个,第一个高达 1.18 的版本似乎可以正常工作。 1.19 以后似乎需要这个。
    猜你喜欢
    • 1970-01-01
    • 2018-06-10
    • 2015-10-09
    • 1970-01-01
    • 2022-11-17
    • 2018-10-18
    • 1970-01-01
    • 2019-08-27
    • 1970-01-01
    相关资源
    最近更新 更多