【问题标题】:eksctl create failed one subnet does not have sufficient capacity to support the clustereksctl create failed 一个子网没有足够的容量来支持集群
【发布时间】:2021-04-20 02:56:27
【问题描述】:

我正在尝试通过 EC2 中现有的 kops 集群 vpc 在 EKS 上创建一个集群,如下所示。

eksctl create cluster \
--name eks-cluster \
--version 1.18 \
--region us-east-1 \
--vpc-from-kops-cluster kops-cluster \
--fargate

但我遇到了错误,即集群无法拥有位于 us-east-1c 的子网之一,其中 kops-cluster 具有三个子网 us-east-1cus-east-1bus-east-1a

AWS::EKS::Cluster/ControlPlane: CREATE_FAILED – "Cannot create cluster 'eks-cluster' because us-east-1c, the targeted availability zone, does not currently have sufficient capacity to support the cluster. Retry and choose from these availability zones: us-east-1a, us-east-1b, us-east-1d, us-east-1e, us-east-1f (Service: AmazonEKS; Status Code: 400; Error Code: UnsupportedAvailabilityZoneException; Request ID: 8c5242ee-2e37-4f2b-98cd-c52cb2bbf523; Proxy: null)"

我正在尝试找到一种解决方法,以一种简单的方式在existing vpc 中创建一个集群。

【问题讨论】:

    标签: kubernetes amazon-vpc kops eksctl


    【解决方案1】:

    这意味着您应该为集群创建指定区域。

    eksctl create cluster \
    --name eks-cluster \
    --version 1.18 \
    --region us-east-1 \
    --zones=us-east-1a,us-east-1b,us-east-1d,us-east-1e,us-east-1f \ 
    --vpc-from-kops-cluster kops-cluster \
    --fargate
    

    【讨论】:

    • 我已经尝试过与您完全相同的方法,但它也不适用于奇怪的消息。 [✖] only one argument is allowed to be used as a name
    • --zones us-east-1a,us-east-1b,us-east-1d,us-east-1e,us-east-1f 没有= 请尝试
    • 啊,我在区域之间有一个空白区域。但仍然有Error: --vpc-from-kops-cluster and --zones cannot be used at the same time :(
    • 可能大家都知道是因为新集群尝试使用现有的子网包括us-east-1c
    猜你喜欢
    • 1970-01-01
    • 2011-06-04
    • 2021-05-02
    • 1970-01-01
    • 2011-04-18
    • 1970-01-01
    • 1970-01-01
    • 2011-03-03
    • 2014-06-07
    相关资源
    最近更新 更多