EKS-SETUP
EKS-SETUP
-AmazonEKSClusterPolicy
• Node Role -
• AmazonEKSWorkerNodePolicy,
• AmazonEC2ContainerRegistryReadOnly,
• AmazonEKS_CNI_Policy).
1- Login into aws account and go to elastic kubernetes service dashboard and then click on
create cluster:
- Now go to custom configuration and configure as per your need like Name of the cluster , Iam
role, Version as per your need, Select eks api and configmap, with next next as default settings click
on create cluster. Now wait for 8-10 mins for cluster creation
- Select the key you have generated and add the security group same name as your cluster
- Click on next then create Node Group, now wait for 10 mins for node creation
- Name
- OS
- Instance type
- key pair to login
- Edit Network settings and create with your custom vpc and subnets
- Auto assign ip as enable
- Create security group as same name as your cluster
- Allow inbound rules as per your desire
- Now launch the instance
4- Configure Instance:
- aws configure
“Acess key”
“Secret key”
1 - Install kubectl:
# curl -O https://s3.us-west-2.amazonaws.com/amazon-eks/1.30.6/2024-11-15/bin/linux/amd64/
kubectl
# chmod +x ./kubectl
# sudo mv ./kubectl /usr/local/bin
# kubectl version --short --client
3- Now update the kubeconfig with your region and cluster Name :
Key Takeaways:
Using the AWS UI simplifies many aspects of EKS setup by providing a visual guide and easier
configuration. Whether you're building new clusters or managing existing ones, the AWS
Management Console offers a straightforward approach with all the powerful features you need.
Excited to explore and scale Kubernetes clusters effortlessly through AWS!