Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes/EKS Script Issues in 03-init-cluster.sh #711

Open
nsutphen1 opened this issue Feb 11, 2021 · 0 comments
Open

Kubernetes/EKS Script Issues in 03-init-cluster.sh #711

nsutphen1 opened this issue Feb 11, 2021 · 0 comments

Comments

@nsutphen1
Copy link

nsutphen1 commented Feb 11, 2021

In the command:

aws eks create-cluster \ --region us-east-1 \ --name production-overview \ --kubernetes-version 1.17 \ --scaling-config minSize=1,maxSize=10,desiredSize=3 \ --role-arn "$(aws iam get-role --role-name production-overview-eksClusterRole --query 'Role.Arn' --output text)" \ --resources-vpc-config "subnetIds=$(aws ec2 describe-subnets --filters Name=availabilityZone,Values=us-east-1a,us-east-1b,us-east-1c --query 'Subnets[*].SubnetId' --output text | sed -e 's/\t/,/g'),securityGroupIds=$(aws ec2 describe-security-groups --group-names production-overview-eks --output text --query 'SecurityGroups[0].GroupId')"

It seems that --scaling-config is not recognized by this command.

Additionally, the script is not detecting any subnets, and fails when the --scaling-config is taken out.

Here:
aws eks create-cluster \ --region us-east-1 \ --name production-overview \ --kubernetes-version 1.17 \ --role-arn "$(aws iam get-role --role-name production-overview-eksClusterRole --query 'Role.Arn' --output text)" \ --resources-vpc-config "subnetIds=$(aws ec2 describe-subnets --query 'Subnets[*].SubnetId' --output text | sed -e 's/\t/,/g'),securityGroupIds=$(aws ec2 describe-security-groups --group-names production-overview-eks --output text --query 'SecurityGroups[0].GroupId')"
is the command I have at the moment, and
Here:

An error occurred (InvalidParameterException) when calling the CreateCluster operation: The subnet ID 'subnet-74901610' does not exist (Service: AmazonEC2; Status Code: 400; Error Code: InvalidSubnetID.NotFound; Request ID: f285f0ec-7705-4306-a80e-cd878a8b96be; Proxy: null)

is the error message I am receiving.

Any help on this would be appreciated.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant