Skip to content

ugwulo/lemp-gke-cluster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOCK SHOP MICROSERVICES APP

PLEASE REFER TO THIS FOLDER FOR THE SECOND APP: PORTFOLIO APP

Stacks:
  • GCP provider
  • Docker
  • Kubernetes (GKE)
  • Prometheus as a monitoring tool.
  • Terraform as the configuration management tool.

live load balanced url for the sock shop microservice http://altschool.ugwulo.me

frontend

frontend

I couldn't deploy the Grafana pod because of limited resources and excessive billing for spinning up enough instances in GCP

How to recreate this project on GCP

  • Setup terraform on your local machine
  • Setup Google cloud sdk
  • 
    sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin
    
  • a Google service account is created by terraform in the node_pools.tf file
  • This will generate a private key tha we'll use to connect to GCP
  • Go ahead and run terraform apply to create your GKE cluster

Deploy the Sock Shop after creating the cluster

  • Clone the microservices-demo repository
  • CD into the deploy/kubernetes folder then run the following
  • 
    kubectl create namespace sock-shop
    
  • change the default context to sock-shop
  • 
    kubectl config set-context --current --namespace=sock-shop
    
  • deploy the manifest files
  • 
    kubectl apply -f complete-demo.yaml
    
  • describe the front-end pod
  • 
    kubectl describe pod *"service-name"*
    kubectl get svc
    
  • wait for the external IP to be allocated then copy it and test

frontend

PLEASE REFER TO THIS FOLDER FOR THE SECOND APP: PORTFOLIO APP

About

AltSchool Exam Project: Deploy Pipeline · Metrics · Monitoring · Logging, using an Infrastructure as Code approach

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors