Automated Web Application deployment On Kubernetes

Automated Web Application deployment On Kubernetes


Hey guys hope you are doing good. Todays my article for automate Web deployment with Kubernetes. Generally, it is not an easy and short task to take code of developer from Jenkins and make os according to his/her need and upload on docker hub and from there you pull the image to deploy on Kubernetes and Kubernetes launch pod isn't it very long and tired things to do again and again because we always need to updates the things frequently once its made right. We tried to do as much as possible .

Let's Get start to do this task !!!!

Job1 ->We will pull file from GutHub and image from Dockerfile and push it to the docker hub.

No alt text provided for this image

Setup jenkins for download

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


Complete job1 ! 

Job2 -> We will set the Kubernetes environment and create a deployment for web-page

Job2 will work like this:-

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

This is view when its run for the first time as you can see in IMAGES

No alt text provided for this image

Congrats all Set up is done.

Then we use ngrok for give access to outside world

No alt text provided for this image
No alt text provided for this image

After this ngrok give a link for access page

No alt text provided for this image

Congrats guys!!! it's done now

GitHub

Docker-repo

Here we come to end today's article hope you like it. :)

create a job pipeline

No alt text provided for this image

要查看或添加评论,请登录

社区洞察

其他会员也浏览了