Skip to content

This project seeks to deploy a simple Nginx web server on an EKS cluster and expose it to the internet using a Load Balancer.

Notifications You must be signed in to change notification settings

Aahil13/EKS-Nginx-LoadBalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EKS-Nginx-LoadBalancer

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:

Prerequisites

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.

Setup

  • 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

    Cluster

  • 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:

    Events

  • 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:

    Load Balancer

  • You can visit the web server using the external IP address of the Load Balancer.

    Web Server

  • 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

    Delete Cluster

Author

This project was completed by Aahil and assigned by Francis.

About

This project seeks to deploy a simple Nginx web server on an EKS cluster and expose it to the internet using a Load Balancer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published