Definition
What it is
Containers in a Pod are co-located and co-scheduled. They share the network namespace (so localhost:port works between them) and can share volumes. When a Pod dies, all containers inside die with it. Pods are ephemeral by design: Kubernetes creates, kills and recreates them continuously.
Why it matters
Understanding Pods is prerequisite to understanding any Kubernetes workload primitive. A Deployment manages ReplicaSets, which manage Pods. A StatefulSet manages Pods with stable identity. A Job manages Pods that run to completion.
Pod vs container vs deployment
Layer | What it is | Managed by |
|---|---|---|
Container | OCI process | Docker / containerd |
Pod | 1+ containers sharing net+vol | Deployment / StatefulSet / DaemonSet |
Deployment | Pod replicas + rolling update | Kubernetes control plane |
Service | Stable virtual IP for Pods | Kubernetes |
How to design Pods
Designing Pods
Single container
Most Pods have one container. Split responsibilities across Pods, not containers.
Sidecar when co-located
Logging agents, service meshes and proxies share the Pod to access the same network.
Init containers for setup
Run before the main containers to fetch config, wait for a service, or initialize storage.
Resource limits always
Every Pod should declare resources.requests and resources.limits. Without them, the scheduler is blind.
Common failures
Origin
Kubernetes was open-sourced by Google in 2014, v1.0 in July 2015. The Pod concept predates Kubernetes in Borg (Google's internal cluster manager, ~2003). "Pod" evokes a group of whales (a real collective noun) and a pea pod — both images of containers grouped together.
Evidence
FAQ
- Pod vs container?
A container is a single process. A Pod wraps one or more containers sharing network and volumes.
- Why are Pods ephemeral?
Because Kubernetes replaces them for scaling, updates and recovery. Never design for a Pod to persist.
- When to use multiple containers?
Sidecar (logging, proxy), init (setup), or ambassador patterns. Not for unrelated processes.
- Does a Pod have an IP?
Yes, one IP per Pod. Containers inside share it.
Connections
Kubernetes (2024). Pods. https://kubernetes.io/docs/concepts/workloads/pods/
Verma, A. et al. (2015). Large-scale cluster management at Google with Borg. https://research.google/pubs/pub43438/
Pros and cons
Pros
- Co-located containers share network namespace: localhost:port works between them.
- Shared volumes via emptyDir or PVC: sidecars read the same files as the app.
- Single scheduler decision: all containers land on the same node.
- Init containers run setup before the app starts.
Cons
- Shared fate: one crashing sidecar kills the main container.
- Per-Pod resource accounting: a bad sidecar can starve the app.
- No independent scaling: sidecar scales with the app only.
- Harder debugging: failures hide behind Pod-level restart metrics.
Key numbers
Timeline
2003 — Borg, Google's internal cluster manager.
2014 — Kubernetes open-sourced (June).
2015 — Kubernetes 1.0 released (July 21).
2017 — StatefulSet stabilized (v1.9).
2018 — CNCF graduation.
2020 — dockershim removed (v1.20).
2024 — Kubernetes 1.30 current.
Core components
Components managing Pods
| name | role | type | launched |
|---|---|---|---|
| kubelet | Node agent that runs Pods | daemon | 2014 |
| kube-apiserver | Validates Pod specs | daemon | 2014 |
| kube-scheduler | Binds Pods to nodes | controller | 2014 |
| etcd | Distributed state store | database | 2013 |
| kube-controller-manager | Runs Deployment, ReplicaSet controllers | daemon | 2014 |
Learning path
Progression from beginner to expert
Prerequisite
container, container-image, container-runtime
This term
You are here.
Next
k8s-deployment, k8s-service, kubernetes
Semantic network
● broader ● narrower ● related
Sources
Kubernetes (2024). Pods. https://kubernetes.io/docs/concepts/workloads/pods/
Verma, A. et al. (2015). Large-scale cluster management at Google with Borg. https://research.google/pubs/pub43438/