omarmfathy219 / GCP-Final-Project-For-ITI

This is the final project for ITI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omar GCP-Final-Project

For the terraform code

  • $ terraform init
  • $ terraform plan
  • $ terraform apply

Build Docker image for the pyhton app from the Dockerfile, and upload the image to gcr

  • $ docker build -t gcp-python .
  • $ docker tag gcp-python gcr.io/iti-devops-366712/gcp-python
  • $ docker push gcr.io/iti-devops-366712/gcp-python

Pull another redis image from docker hub then push it to gcr

SSH to the private VM:

Install kubectl

  • $ sudo apt-get update
  • $ sudo apt-get install kubectl
  • $ sudo apt-get install google-cloud-sdk-gke-gcloud-auth-plugin

authorize gcloud to access the Cloud Platform with Google user credentials

  • $ gcloud auth login
  • $ gcloud auth application-default login
  • $ gcloud conf set account

SSH to GKE

  • copy gke-dep directory
  • $ kubectl create -Rf gke-dep
  • $ kubectl get svc
  • $ kubectl apply -f

get the load balancer IP and port

Screenshot from 2022-10-31 11-50-00

Screenshot from 2022-10-31 11-50-00

About

This is the final project for ITI


Languages

Language:HCL 56.9%Language:Python 26.5%Language:HTML 8.6%Language:Dockerfile 4.0%Language:CSS 3.9%