Kubernetes Pod
The smallest deployable and scalable execution unit in Kubernetes, grouping one or more tightly coupled containers that share the same IP address, network namespace, and storage volumes
Table of Contents
Structure Diagram
What is Kubernetes Pod?
The smallest deployable and scalable execution unit in Kubernetes, grouping one or more tightly coupled containers that share the same IP address, network namespace, and storage volumes. It is a core concept in Containers & Orchestration within Cloud / DevOps.
Core Principles
A Pod is the smallest deployable and schedulable unit in Kubernetes, wrapping one or more tightly coupled containers that are always co-located on the same worker node. Containers inside a Pod share a single Pod IP address (network namespace)—enabling communication over localhost—and can mount shared storage volumes.
Pods are ephemeral by design: when a Pod dies or a node fails, Kubernetes replaces it with a new Pod and IP rather than repairing the old one. Therefore, Pods are almost always managed indirectly by controllers like Deployment, StatefulSet, or DaemonSet.
Practical Takeaways
- Always set resource
requestsandlimits: Without explicit CPU and memory bounds, the scheduler overpacks nodes, leading to CPU throttling and cascading OOMKills. - Follow the one-main-process-per-Pod rule: Only place multiple containers in one Pod when they share the exact same lifecycle and scaling needs (such as a sidecar proxy or log shipper).
- Configure PodDisruptionBudgets (PDB): Protect availability during voluntary cluster node drains and upgrades by guaranteeing a minimum number of running Pods.
Notable Examples
- Stateless API Replicas: Managed by a
Deploymentand exposed stably via a KubernetesService. - Init Container Workflows: Runs prerequisite setup tasks (config fetch, dependency checks) to completion before starting the main container.
- Sidecar-Enhanced Pods: Pairs an application container with an Envoy proxy or OpenTelemetry collector sharing
localhostand local volumes.