DEV Community

Cover image for Docker ,Kubernetes, Orchestrations
QasimSultani
QasimSultani

Posted on

Docker ,Kubernetes, Orchestrations

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

Using our mobile camera we take selfies, selfies get stored in 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 of no use👾
But when you use/run your selfie, you get a new DP on whatsapp, FB🕺🏻

Likewise when you run 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 running our containers in them.

Example of Orchestration:🎼

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

When 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 required now 🗳️❎
This feature gives auto scaling, high availability, no down time for our application.

Thats all..in the next part will try to explain #kubernetes #architecture in layman term

docker #kubernetes #orchestration #devops #autoscaling #cloud

Image of Bright Data

Feed Your Models Real-Time Data – Enhance your AI with up-to-the-minute data.

Utilize our live data feeds for dynamic model training, ensuring your AI systems are always ahead.

Access Real-Time Data

Top comments (0)

Image of Bright Data

High-Quality Data for AI – Access diverse datasets ready for your ML models.

Browse our extensive library of pre-collected datasets tailored for various AI and ML projects.

Explore Datasets