Closed jsitu777 closed 2 years ago
availabilityZones: ["${AZS[0]}", "${AZS[1]}", "${AZS[2]}"]
It looks like you have supplied an empty string for the third AZ (AZS[2]
). If you fix this and rerun the command, it will work.
yes. I just fixed it. No wonder it requires to set up environment for us-west-2. (I used us-west-1) https://www.eksworkshop.com/020_prerequisites/workspace/
After I switch the region, the third availabilityZone is no longer empty: ["us-west-2a", "us-west-2b", "us-west-2c"]
And the clusters are created successfully.
Admin:~/environment $ kubectl get nodes # if we see our 3 nodes, we know we have authenticated correctly
NAME STATUS ROLES AGE VERSION
ip-192-168-19-45.us-west-2.compute.internal Ready <none> 55m v1.19.15-eks-9c63c4
ip-192-168-63-36.us-west-2.compute.internal Ready <none> 55m v1.19.15-eks-9c63c4
ip-192-168-79-54.us-west-2.compute.internal Ready <none> 55m v1.19.15-eks-9c63c4
Glad it's working now. Please feel free to open a new issue if you have more questions.
I just want to add, I see this is part of the eksworkshop process .. the cluster control file they provide expects 3 availability zones, but if you happen to choose a zone that has only two AZ's, the yaml file ends up with an empty string. The AZS environment variable created here: https://www.eksworkshop.com/020_prerequisites/workspaceiam/ only has two elements, and the eksworkshop.yaml file created here tries to reference a third AZ. https://www.eksworkshop.com/030_eksctl/launcheks/
eksctl create cluster failed:
What is the potential issue for this? The IAM role is valid
yaml file: