Pod:

A pod is a collection of containers and its storage inside a node of a Kubernetes cluster. It is possible to create a pod with multiple containers inside it.When you create a deployment module, Kubernetes create a pod to host your application instance in any of the kubernetes node.

There are two types of pod can create,

One-container-per-pod : This model is the most popular. The Pod acts as a wrapper for a single container and since Pod is the smallest object Kubernetes knows, it manages the Pods rather than the containers directly


Multi-container-pod : With this model a pod might hold multiple co-located containers that are tightly coupled and need to share resources.


Container:

Containers provide a standard way to package your application's code, configurations, and dependencies into a single object. Containers share an operating system installed on the server and run as resource-isolated processes, ensuring quick, reliable, and consistent deployments, regardless of environment.


Kubernetes doesn’t run containers directly, instead it wraps one or more containers into a higher-level structure called a pod. Any containers in the same pod will share the same resources and local network. Containers can easily communicate with other containers in the same pod as though they were on the same machine while maintaining a degree of isolation from others.


Node:

A Pod always runs on a node. A Node is a worker machine in Kubernetes and may be either a virtual or a physical machine, depending on the cluster. Each Node is managed by K8s Master. A Node can have multiple pods, and the Kubernetes master automatically handles scheduling the pods across the Nodes in the cluster.


Reference :


Post a Comment

Previous Post Next Post