System for Solving Rolling Updates

System for Solving Rolling Updates

I built a system which solves rolling updates with zero downtime.It is something like when any company do some updates in their products generally in the case of website or any mobile app but you rarely feel any downtime means site or app is not working well. It do everything just after commiting in git. I have used dynamic master slave architecture which launches completely a different container or pod(O.S) only for doing rolling update but behind the scene it uses kubernetes and dockerfile for this.

So lets begin with project explanation

-This dockerfile is for the rolling updates.I have used httpd server and php interpreter.But you can use anything for deploying and doing rolling updates.

No alt text provided for this image

-And this dockerfile is for dynamic slave worker for master node in jenkins.This contains setup of kubectl (client software for Kubernetes ) and for remote login ssh is configured.I launched one container image using this dockerfile which helps in setup of slave worker for master node in jenkins.

No alt text provided for this image

.I did this task using two jobs.

-JOB1, it downloads code from github, makes one container image and pushes in docker repository.

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

-> And this is the output of job1

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

-JOB2, it do the task of rolling updates with the help of kubernetes on the slave node of jenkins master node.

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

-> And this is the rolling ouput of this job2

No alt text provided for this image

-This is cloud setup for slave node.For remote login i have used ssh-keygen concept of opnessh server.

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

-But before this we have to enable tcp protocol in docker configuration file and in jenkins too because bydefault docker don't support networking.

No alt text provided for this image

-Now this is build pipeline view of jenkins jobs.

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

-See the pod is deployed for deploying the code with automation for rolling updates. And this container will never go off due to kubernetes cluster.

No alt text provided for this image

And lastly this is my output with simple html code. I created for testing purpose but you can put you real html pages and then you will able to see the real power of this project.

No alt text provided for this image


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

-These are the master and slave nodes.

No alt text provided for this image

And this is the githhub webhook for triggering the job remotely created with the help of ngrok.

No alt text provided for this image

So it was a quite interesting for me to do this kind of integration. I hope you all will surely like it.

This is my github url.


To view or add a comment, sign in

More articles by Vishal Yadav

  • Classification,Confusion Matrix and Cyber Security

    What is Classification In ML? .A classification model tries to draw some conclusion from the input values given for…

  • ARTH Task 7.1B

    🌀 7.1B: Elasticity Task 🔅Increase or Decrease the Size of Static Partition in Linux.

  • ARTH Task 7.1A

    Task Description 📄 🌀 7.1A: Elasticity Task 🔅Integrating LVM with Hadoop and providing Elasticity to DataNode Storage…

  • High Availability Architecture with AWS CLI

    This is the task given in ARTH(School of technologies) training under Vimal Daga sir. Task Description📄 🔰 Create High…

  • Working with CLI on AWS

    I am going to tell you how can you access AWS(Amazon Web Services) using CLI(Command Line Interface) I have used basic…

    1 Comment
  • Devopsal Task-5

    Task Overview Integrate Prometheus and Grafana and perform in following way: 1. Deploy them as pods on top of…

  • Ansible Task-1

    Task Overview Write an Ansible PlayBook that does the following operations in the managed nodes: 🔹 Configure Docker 🔹…

  • DevOpsAL Task-6 Continuous Integeration and Delivery with Groovy approach.

    This is the overview of task. Perform third task with the help of Jenkins coding file ( called as jenkinsfile approach…

  • HybridCloudTask-4

    This is the overview of task. 1.

  • CloudTask-3

    This is the task overview. Statement: We have to create a web portal for our company with all the security as much as…

    1 Comment

Others also viewed

Explore content categories