Un Pod è l'unità distribuibile più piccola in Kubernetes: un involucro attorno a uno o più container che condividono lo stesso network namespace (un unico IP) e possono condividere volumi di storage. Non distribuisci direttamente i container — distribuisci i Pod.
Cosa c'è dentro un Pod
┌───────────────── Pod (has ONE shared IP) ─────────────────┐
│ │
│ ┌──────────────┐ ┌──────────────┐ shared: │
│ │ container A │ │ container B │ • network (IP) │
│ │ (app) │ │ (sidecar) │ • localhost │
│ └──────────────┘ └──────────────┘ • volumes │
│ │ talk to each other via localhost:port │
└────────────────────────────────────────────────────────────┘
