Skip to content

Latest commit

 

History

History
89 lines (72 loc) · 1.71 KB

File metadata and controls

89 lines (72 loc) · 1.71 KB

AWS Deployment

Pre-requisites

Mac Setup Using Homebrew

brew install terraform
brew install awscli
brew install docker
brew install kubernetes-cli
brew install k9s

Initialize Setup

Initializes terraform providers required for local deployment.

make init 

Configure AWS Credentials

Make sure you have the AWS credentials configured. Subsequent terraform commands will use these credentials to create the infrastructure.

aws configure

Create Infrastructure

Creates a local kubernetes cluster using minikube.

make infra

Kubectl

To enable kubectl usage with the newly created AWS EKS cluster, use the following command.

make kubectl_setup

K9s

To monitor the cluster using k9s, use the following command.

k9s

Build & Upload Docker Image

Build and upload the docker image for the application, into ECR.

make upload_docker_images

Create Application

make application

Check if the application is running

kubectl get pods # All gossip-kv-* pods should show status as "Running"

Access Grafana Dashboards

make tunnel_grafana

Access Prometheus

make tunnel_prometheus

Update seed node configuration

make config

Clean

Destroys the AWS resources and cleans up terraform state.

make clean