EKS Cluster setup on AWS
Feb 22, 2023
Amazon Elastic Kubernetes Service (Amazon EKS) is a managed service that you can use to run Kubernetes on AWS without needing to install, operate, and maintain your own Kubernetes control plane or nodes.
Master node is completely launched and managed by EKS.
1.Lets launch an ec2 instance and login to it.
2. Install kubectl from below cmd:
curl -o kubectl https://amazon-eks.s3.us-west-2.amazonaws.com/1.24.10/2023-01-30/bin/linux/amd64/kubectl
chmod +x ./kubectl
mv ./kubectl /usr/local/bin
kubectl version
3. Install Eksctl from below command:
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
4. create a IAM role and attach it to the created EC2 .
the role must have :
step 5:
lets build the cluster from below command :
This will create a cluster as shown below
Lets verify nodes :