Reputation: 411
I'm trying to create a cluster on EKS by the existing vpc of kops cluster in EC2 like below.
eksctl create cluster \
--name eks-cluster \
--version 1.18 \
--region us-east-1 \
--vpc-from-kops-cluster kops-cluster \
--fargate
but I faced the error that the cluster couldn't have one of the subnets located in us-east-1c
where kops-cluster has three subnets us-east-1c
, us-east-1b
, us-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)"
I'm trying to find a workaround to accomplish making a cluster within the existing vpc
in a simple way.
Upvotes: 2
Views: 1724
Reputation: 11822
That mean you should specify zones for your cluster creation.
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
Upvotes: 0