Eks Cluster Setup
Eks Cluster Setup
Here's a
straightforward guide to get you started with AWS Elastic Kubernetes Service (EKS). Whether
you're a beginner or looking for a quick reference, this post has got you covered!
#curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o
"awscliv2.zip"
#unzip awscliv2.zip
#sudo ./aws/install
#aws --version
3- Install eksctl:
#curl --silent --location "https://github.com/weaveworks/eksctl/releases/latest/
download/eksctl_$(uname -s)_amd64.tar.gz" | tar xz -C /tmp
Go to the VPC Dashboard and create a new VPC for your cluster. Configure it based on your
requirements, such as CIDR block, subnets, and route tables.
Step 4: Create a Security Group for the Cluster
Set up a security group for your EKS cluster and configure inbound rules to allow the required
traffic (e.g., SSH, HTTP, HTTPS).
Step 5: Create an EKS Cluster
Use eksctl to create your EKS cluster. Here’s an example command for the us region (us-east-
1):
Use eksctl to create your EKS cluster. Here’s an example command for the Mumbai region (ap-
south-1):
NOTE: Cluster creation takes 5-10 minutes. Be patient! Once complete, verify the cluster by
running:
Open the external IP in your browser, and you’ll see the professional and responsive login page
live!
Summary
• ConfigMap: Stores the HTML content for centralized, dynamic updates.
• Pod: Hosts the Nginx server, serving the login page via ConfigMap as a mounted volume.
• Service: Exposes the application using a Load Balancer for external access.
This setup demonstrates how Kubernetes can streamline static content hosting while maintaining
flexibility and scalability.
Outcome: A fully functional and responsive login page deployed on Amazon EKS, accessible via a
public endpoint.
✨ This deployment is a great example of leveraging Kubernetes best practices to deliver scalable
and professional-grade web applications.