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
Top comments (0)