Skip to content

Kubernetes Pod

A Kubernetes Pod is the smallest deployable unit: one or more containers that share a network namespace, storage volumes and lifecycle, scheduled together on the same node.

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

  1. Single container

    Most Pods have one container. Split responsibilities across Pods, not containers.

  2. Sidecar when co-located

    Logging agents, service meshes and proxies share the Pod to access the same network.

  3. Init containers for setup

    Run before the main containers to fetch config, wait for a service, or initialize storage.

  4. 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

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

110 podsdefault max per node (K8s 1.28)
5000 nodesdefault max cluster (GKE recommends 1500)
100+ containerspractical cap per Pod
2015first K8s release with Pods
2003Borg, internal predecessor

Timeline

  1. 2003 — Borg, Google's internal cluster manager.

  2. 2014 — Kubernetes open-sourced (June).

  3. 2015 — Kubernetes 1.0 released (July 21).

  4. 2017 — StatefulSet stabilized (v1.9).

  5. 2018 — CNCF graduation.

  6. 2020 — dockershim removed (v1.20).

  7. 2024 — Kubernetes 1.30 current.

Core components

Components managing Pods

nameroletypelaunched
kubeletNode agent that runs Podsdaemon2014
kube-apiserverValidates Pod specsdaemon2014
kube-schedulerBinds Pods to nodescontroller2014
etcdDistributed state storedatabase2013
kube-controller-managerRuns Deployment, ReplicaSet controllersdaemon2014

Learning path

Progression from beginner to expert

  1. Prerequisite

    container, container-image, container-runtime

  2. This term

    You are here.

  3. Next

    k8s-deployment, k8s-service, kubernetes

Semantic network

Kubernetes PKubernetesKubernetesContainerContainer KubernetesDocker

● broader ● narrower ● related

Sources