Skip to content

Yaswanthb13/weather-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EKS Terraform and Kubernetes Deployment

This repository contains Terraform files for provisioning an Amazon Elastic Kubernetes Service (EKS) cluster and Kubernetes deployment files for deploying a React applications weather_app. The infrastructure is defined using Terraform, and the applications are deployed to the EKS cluster using Kubernetes manifests.

Table of Contents

Prerequisites

Before you begin, ensure you have met the following requirements:

  • AWS account.
  • AWS IAM role with admin access.
  • Terraform installed on your local machine.
  • Docker installed on your local machine.
  • kubectl (Kubernetes CLI) installed on your local machine.
  • AWSCLI installed on your local machine.
  • Docker images for the weather_app application pushed to a container registry.

Terraform Setup

you can install the terraform from the following link Visit official site

##Docker image Image-name - yaswanthb13/weather-app Visit official site

Kubectl configuratio

you can install kubectl from the official website link given below, based on your system configurations Visit official site

AWSCLI

sudo apt update
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
aws --version
aws configure

##EKS creation using terraform clone the github repo and run

terraform init
terraform plan -var-file="variables.tfvars"

followed by

terraform apply -var-file="variables.tfvars"

Now the cluster is created.

##Creating Pods and Deployments run

kubectl apply -f path_to_deployment_file
kubectl apply -f path_to_service_file

Check the pods,nodes and services created

kubectl get pods
kubectl get nodes
kubectl get svc

now the environment is set up and the applications will be live.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published