Forem

Cover image for #038 Kubernetes - Deployment
Omar
Omar

Posted on β€’ Edited on

4 3

#038 Kubernetes - Deployment

Introduction

this is part 38 from the journey it's a long journey(360 day) so go please check previous parts , and if you need to walk in the journey with me please make sure to follow because I may post more than once in 1 Day but surely I will post daily at least one 😍.

And I will cover lot of tools as we move on.


Deployment

let's say we have in the registry (dockerhub) a container , we need to deploy it , In real world a big project contain many containers.
cluster
Now we have a replicaset with 2 nodes and 5 pods , so we have high availability and load balancing , and every thing work fine.

Let's say we need to upgrade our containers to a newer version , the first solution that will came to mind is to delete the replicaset and create new one with the editing of the yml file. But this is risky move , why it is risky because in the time between deletion and creating the app will go offline and no one can access the app. You will say heeey hold on it's just minutes , maybe it's true for small apps , but what about big ones? it is a big problem. So there is tones of Algorithms to do roll-update to the app , what roll-update mean ? it mean update 1 at a time.
v2
update 1 at a time , it's mean he will take v1 and replace it with v2 , one by one in this time the other pods of v1 will still serving the app , so the app will be available at all the times , and he loop threw all the other pods to replace them with v2.
Let's say we find an error in v2 , or the app is not stable or the customer didn't like it or ... what we should do?

hide

hide(best solution) or so I need a roll-back to the old version so he does the same thing , he loop on every pod replace it and go on.

In the next tutorials we will do the lab and explain how to do it using Kubernetes.

Do your career a favor. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay