Kubernetes Explained
When studying abstract concepts it is often extremely helpful to illustrate
them with specific examples. I will attempt to explain Kubernetes using a
restaurant as an example and analogy.
The basics of Kubernetes are pods, nodes, and clusters. With this, we can create
a very simple Kubernetes deployment that we can build on top of to create more
elaborate applications.
To begin imagine you are Gordon Ramsay. You are the head chef and owner of a
fancy restaurant. Yor are in charge of managing everything that happens there.
In Kubernetes terms, you (Gordon Ramsay) are the control plane and the restaurant
is the cluster.
The kitchen is like a node. Just like a node has a kubelet that is responsible
for starting and stopping the pods, the kitchen has a sous chef who is
responsible for preparing the dishes (i.e., the pods). The sous chef has several
assistants (i.e., the containers) who help him prepare the dishes.
Each dish that the kitchen prepares is like a pod. The pod is made up of a
number of ingredients (i.e., the containers) that are combined to create a
finished dish. The sous chef is responsible for making sure that each dish is
prepared to the highest standards, just like the kubelet is responsible for
making sure that the pods are running correctly.
So, to summarize:
-
The cluster is the restaurant, and it is managed by the head chef (i.e., the control plane).
-
The nodes are the kitchens, and they are managed by the sous chefs (i.e., the kubelets).
-
The pods are the dishes, and they are made up of several ingredients (i.e., the containers).