Set up an Amazon Elastic Kubernetes Service (EKS) cluster and on EC2 using KOPS from the command line

Kubernetes  Cluster Installation on EC2 using KOPS

1. Prerequisites


Set up an Amazon Elastic Kubernetes Service (EKS) cluster

1. Prerequisites

2. IAM Permissions: Ensure your IAM user or role has sufficient permissions or admistrator fullaccess to create and manage EKS resources.

3. AWS CLI Configuration:
aws configure
Provide your AWS Access Key, Secret Key, default region, and output format.


4. Create the EKS Cluster

Using eksctl, you can create an EKS cluster in one command. Here's an example:

eksctl create cluster --region=ap-south-1 --name=demo-cluster

5. Verify the Cluster

After creation, check if the cluster is up and running:

aws eks list-clusters

6. Verify the connection:

kubectl get svc


7. Clean Up Resources

To delete the cluster and associated resources:


eksctl delete cluster --region=ap-south-1 --name=demo-cluster