This project seeks to deploy a simple Nginx web server on an EKS cluster and expose it to the internet using a Load Balancer. It makes use of the following tools:
To setup this project, you need to have the following:
- An AWS account: You can create on using the aws console here.
- Install the AWS CLI: You can follow the instructions here.
- Install eksctl: You can follow the instructions here.
- Install kubectl: You can follow the instructions here.
-
Clone this repository to your local machine.
git clone https://github.com/Aahil13/EKS-Nginx-LoadBalancer.git
-
Create an EKS cluster using the command below:
eksctl create cluster -f cluster.yaml
-
Deploy the Nginx web server using the command below:
kubectl apply -f NGINX-depl.yaml
-
Confirm that all events were successful using the command below:
kubectl get events
You should see a similar response:
-
Check the status of the deployment using the command below:
kubectl get deployments
-
Get the external IP address of the Load Balancer using the command below:
kubectl get services
You should see a response similar to the one below:
-
You can visit the web server using the external IP address of the Load Balancer.
-
Make sure to delete the cluster after you are done using the command below:
eksctl delete cluster --name=Nginx-cluster --region=us-east-1 --wait
This project was completed by Aahil and assigned by Francis.