Pod
What is it?
A pod is the smallest deployable unit in Kubernetes — one or more closely-related containers that run together and share resources.
Explain like I'm 5
Why was it created?
Some containers need to run side by side and share networking and storage. The pod was created as the unit that groups and schedules them together.
Where is it used?
- Running containers in Kubernetes
- Grouping tightly-coupled containers
- Scaling app instances
- Scheduling workloads
Why should developers care?
Pods are the basic building block of Kubernetes, so understanding them is essential to working with it.
How does it work?
A pod wraps one or more containers that share the same network address and storage volumes. Kubernetes schedules pods onto nodes and treats each pod as a single unit to start, stop, or replace.
Real-world example
An app container runs alongside a small 'sidecar' logging container in the same pod, sharing the network so they can talk over localhost.
Common use cases
- Deploying app instances
- Sidecar patterns
- Scaling replicas
- Co-locating helper containers
Advantages
- Groups related containers
- Shared network and storage
- Unit of scheduling and scaling
- Simple deployment unit
Disadvantages
- Pods are ephemeral (can be replaced)
- Not durable on their own
- Usually managed by higher-level objects
- Extra concept to learn
When should you use it?
Whenever you run containers in Kubernetes — they always run inside pods.
When should you avoid it?
You manage pods via Deployments rather than directly; raw standalone pods are rarely used in production.
Alternatives
Related terms
Interview questions
Beginner
- What is a pod?
- Can a pod hold more than one container?
Intermediate
- What do containers in a pod share?
- Why are pods called ephemeral?
Senior
- Why manage pods via Deployments instead of directly?
- What is a sidecar container?
Common misconceptions
- "A pod is the same as a container" — a pod wraps one or more containers and adds shared networking/storage.
- "Pods are permanent" — they're disposable; controllers replace them as needed.
Fun facts
- Containers in a pod share an IP and can talk over localhost.
- The name evokes a pod of whales — a group moving together.
Timeline
- 2014 — Pods introduced as Kubernetes' core unit
Learning resources
Quick summary
A pod is Kubernetes' smallest deployable unit — one or more containers that share networking and storage and are scheduled together.
Cheat sheet
- Smallest Kubernetes unit
- One or more containers
- Shared network + storage
- Ephemeral; managed by Deployments