在 EKS 上安装 JupyterHub 失败:"No suitable subnet for ELB"

Install JupyterHub on EKS fails: "No suitable subnet for ELB"

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

安装似乎成功,但 proxy-public 服务无法创建 ELB。请参阅下面 "kubectl describe svc" 的输出:

应用程序 install/deployment 因错误事件而失败。

> 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 个 public。我认为ELB可以放在public子网中吗?

EKS 需要标记子网才能用于创建负载均衡器。要被视为合格的子网,请使用以下标记:kubernetes.io/role/elb: shared。有关详细信息,请参阅有关 EKS 子网标记的 knowledge portal article