Skip to content

bhaveshtank/kubernetes-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetesRepo

How to use ??

  • Please replace all the placeholder with appropriate value which suits your env.
  • Enable gcr API on gcp
  • Create Service account and give storage right to that account.

Docker Images

I have used httpd image from the Docker Hub for this test.Instead of the one which was provided for the purpose.

  • All the docker images are pushed to gcr repository

Screeshot of gcr repo GitHub Logo

For deploying on kubernetes

I have used GKE(Google Kubernetes Engine) for kubernetes I have created 3 different images.

Basically Why I have created 3 images instead of 1

  • Each image has html page which says on environment it is depoloyed

    • dev.html denotes its a dev environment Similarly I have done for qa and dev
  • All of the containers are deployed using Kubernetes deployment

    • each directory has the respective deployment file and service object file.
  • These deployements are attached to service Objects which uses selectors to manage specific pods.

  • The Service object is exposed using loadbalaner and ingress with port 80.

#Build and Deployment Jenkins is used as the orchestrator

  • Please find the Jenkinsfile for the further reference.

ScreenShots

Jenkins Pipeline

GitHub Logo

QA Environment URL

GitHub Logo

Dev Environment URL

GitHub Logo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published