Skip to content

How to design Pods

One container per Pod unless they are tightly coupled. Sidecars for logging, proxies or init tasks share the Pod lifecycle.

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.