Debug School

Adam R
Adam R

Posted on

What is a pod by Adam

A pod is a group of containers and is smallest unit of execution in kubernetes. The scheduler in k8 master node does not deal with containers when scheduling work, it assigns work to pods. It's important to note that pods are a logical construct in k8. As such, pods do not consume memory or CPU themselves. The underlying containers within a pod consume computing power, but the pod itself doesn't. The pod is therefore said to be instantiated, and not created. Also, pods are created by the kubelet within worker nodes. If a pod is not managed by kubernetes, it is referred to as a static pod. Since pods are the smallest logical unit of execution in kubernetes, it has an IP address and each container within the pod shares that IP address. Pods can run on either the master node, or on worker nodes. Each pod has a main container, and it can also have secondary containers.

Top comments (0)