在centos机器安装eksctl
curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmpsudo mv /tmp/eksctl /usr/bineksctl versioneksctl create cluster --name shayne-eks --zones us-east-1a,us-east-1b --fargate --tags owner=G2-Shayne-Chen
遇到的问题
Unable to use kubectl with the EKS cluster…aws: error: argument operation: Invalid choice
解决:
# Update AWS CLIsudo yum remove -y aws-clipip3 install --user awsclisudo ln -s $HOME/.local/bin/aws /usr/bin/aws# Run The kubectl Configuration Commandsaws eks get-token --cluster-name your-cluster-nameaws eks update-kubeconfig --name your-cluster-name
