|
| 1 | +--- |
| 2 | +title: Pod |
| 3 | +status: Completed |
| 4 | +category: concept |
| 5 | +tags: ["infrastructure", "fundamental", ""] |
| 6 | +--- |
| 7 | + |
| 8 | +## What it is |
| 9 | + |
| 10 | +Within a [Kubernetes](/kubernetes/) environment, a pod acts as the most basic deployable unit. |
| 11 | +It represents an essential building block for deploying and managing containerized applications. |
| 12 | +Each pod contains a single application instance and can hold one or more [containers](/container/). |
| 13 | +Kubernetes manages pods as part of a larger deployment and can scale pods [vertically](/vertical-scaling/) or [horizontally](/horizontal-scaling/) as needed. |
| 14 | + |
| 15 | +## Problem it addresses |
| 16 | + |
| 17 | +While containers generally act as independent units that run and control a particular workload, |
| 18 | +there are cases when containers need to interact and be controlled in a tightly coupled manner. |
| 19 | + |
| 20 | +If each of these closely related containers were managed individually, it would lead to redundant management tasks. |
| 21 | +For example, the operator would have to repeatedly determine the placement of related containers to ensure they remain together. |
| 22 | +And although the lifecycles of these related containers need to be synchronized, they can only be managed individually. |
| 23 | + |
| 24 | + |
| 25 | +## How it helps |
| 26 | + |
| 27 | +Pods bundle closely tied containers into a single unit, significantly simplifying container operations. |
| 28 | +For instance, auxiliary containers are often used alongside the main container to add additional functionalities or to set up global configurations. |
| 29 | +Examples include containers that inject and apply basic settings to the main container, |
| 30 | +_sidecar_ (containers) that handle network traffic routing for the main container (see [service mesh](/service-mesh/)), |
| 31 | +or containers collecting logs in conjunction with each container. |
| 32 | + |
| 33 | +Memory and CPU allocation can be defined either on a pod level, allowing the containers inside to share resources in a flexible way, or per container. |
0 commit comments