Skip to content

Pros and cons

Pods co-locate containers for shared networking and a single scheduling unit, at the cost of shared fate.

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.