AWS命令部署
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
aws configure
curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.26.2/2023-03-17/bin/linux/amd64/kubectl
cd /tmp
kubectl
ARCH=amd64
PLATFORM=$(uname -s)_$ARCH
curl -sLO "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$PLATFORM.tar.gz"
curl -sL "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_checksums.txt" | grep $PLATFORM | sha256sum --check
eksctl部署
tar -xzf eksctl_$PLATFORM.tar.gz -C /tmp && rm eksctl_$PLATFORM.tar.gz
rm eksctl_Linux_amd64.tar.gz
eksctl version
sudo mv /tmp/eksctl /usr/local/bin
eksctl version
aws eks update-kubeconfig --region us-west-2 --name kubernetes_produce_lava2
kubect get nodes
kubectl get cs
aws eks update-kubeconfig --region us-west-2 --name kubernetes_produce_lava2
kubectl config get-contexts
cd .aws
cat credentials
标签:eksctl,kubectl,tar,PLATFORM,部署,配置管理,aws,--
From: https://blog.51cto.com/yht1990/6343445