How to install AWS EKS Cluster
Β
step1: create EC2 instance step2: Create an IAM Role and attach it to EC2 instance IAM EC2 VPC CloudFormation Administrative access In the EC2 instance install kubectl and eksctl step3: install kubectl $ curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" $ chmod +x ./kubectl $ sudo mv ./kubectl /usr/local/bin $ kubectl version --client step4: install eksctl $ curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp $ sudo mv /tmp/eksctl /usr/local/bin $ eksctl version step5: install aws-iam-authenticator $ curl -Lo aws-iam-authenticator https://github.com/kubernetes-sigs/aws-iam-authenticator/releases/download/v0.6.14/aws-iam-authenticator_0.6.14_linux_amd64 $ chmod +x ./aws-iam-authenticator $ mkdir -p $HOME/bin && cp ./aws-iam-authenticator $HOME/bin/aws-iam-authenticator && export PATH=$HOME/bin:$PATH $ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc step6: create clusters and nodes $ eksctl create cluster --name dhana-cluster --region ap-south-1 --node-type t2.small step7: Validate your cluster using by creating by checking nodes and by creating a pod $ kubectl get nodes $ kubectl run pod tomcat --image=tomcatΒ $ kubectl run pod nginx --image=nginx To delete the cluster dhana-cluster $ eksctl delete cluster dhana-cluster --region ap-south-1