Skip to content

omarkorety/final-project-iti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Project structure

WhatsApp Image 2022-11-10 at 1 36 46 AM

Tools

  • Terraform
  • Google Cloud Platform (GCP)
  • Jenkins

deploy backend application on kubernetes cluster using CI/CD Jenkins pipeline

First create infrastructure using terraform

Infrastructure for my project using terraform

Decribe instructions for initiate the project

terraform init 
terraform validate #to make sure there no syntax errors
terraform plan #to make sure everything will be created
terraform graph | dot -Tsvg > graph.svg
terraform apply #to apply my infrastructure on cloud provider 

graph

Deploy and configure Jenkins on the created K8s cluster

Duild jenkins

Build image for jenkins using Dockerfile by

  docker build -t omarkorey/myjenkins:V1 .
  docker push omarkorey/myjenkins:V1 

Dockerhub jenkins image repository: https://hub.docker.com/repository/docker/omarkorety/myjenkins

Deploy jenkins and Loadbalancer service in cluster

Build image for jenkins using Dockerfile by

kubectl create -f deployment.yaml

Project requirements

Use separate namespace for Jenkins's deployment and application's deployment

kubectl create namespace Jenkins
kubectl create namespace myppp

Screenshot from 2022-11-16 21-03-00

Screenshot from 2022-11-16 21-03-10

Use github webhook

Screenshot from 2022-11-16 20-09-58

project final screenshot

Screenshot from 2022-11-16 19-40-25

Screenshot from 2022-11-16 13-50-42

My appplication repo

https://github.com/omarkorety/simple-app

My application link

http://35.229.161.81:5000/

Lessons Learned

I learned how to configure kubernetes cluster on GCP,acquired experiences on GCP platform and learned how to use all the tools together for development life cycle

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages