Docker, Kubernetes using a Selfie Example🤳🏻

Docker, Kubernetes using a Selfie Example🤳🏻

Lets understand Docker,K8s in simple Layman day-to-day example!

Docker, Kubernetes, and Orchestrations let me try to explain these things using a selfie example🙋🏻‍♂️

Using our mobile camera we take selfies, selfies get stored in a mobile gallery🤳🏻
Likewise using docker we take selfies of our project & store them in our machine💻

If your selfies are not run/used, they are just using your mobile space 👾
But when you use/run your selfie, you get a new DP on WhatsApp, FB🕺🏻

When you run the docker image, you get a new container 🗳️

Now to handle your so many selfies, we have google photos 🧑🏻‍🎨
To maintain so many containers, we have Kubernetes ☸️

So, let’s revise again,

Using Docker as a camera*, you take a docker **image of your code.🖼️
When you
run the docker image, you get a container ☸️
And
Kubernetes** helps in deleting, updating, and maintaining these 100’s of containers🗳️🗳️🗳️*

Kubernetes helps in creating a Cluster, inside the Cluster, we have our machines/nodes inside which our created containers are running.

Now, what is Orchestration? Let's take a cricket game example 🏏

Example of Orchestration:🎼

On Hotstar, in a cricket match, in the last 2 3 overs, the number of viewers can increase by 10x 📈
So, to suddenly handle these loads of requests, k8s will autoscale or create 100 more containers🗳️🗳️🗳️🗳️

When a match is over, we close the app, so now the number of requests is reduced📉
K8s deletes the newly created containers as they are not needed now 🗳️❎

This feature gives auto-scaling, high availability, and no downtime for our application.

And that's all

Just remember Docker is our CAMERA, and Docker Image is our Selfies, By running these selfies we get Containers like our DP, and Kubernetes is the Google Photo app that helps to maintain these selfies i.e the containers.

If you connected a bit by my post, do let me know by a follow or a clap, it will mean a lot

And if you share the same interest in DevOps, cloud & Kubernetes, security, and web3 as me then let's connect 🙋🏻‍♂️ here or on Linkedin