Pod は Kubernetes における最小のデプロイ可能単位です。同じ network namespace(1 つの IP)を共有し、storage volume を共有できる1 つ以上のコンテナを包むラッパーです。あなたはコンテナを直接デプロイするのではなく、Pod をデプロイします。
Pod の中身
┌───────────────── Pod (has ONE shared IP) ─────────────────┐
│ │
│ ┌──────────────┐ ┌──────────────┐ shared: │
│ │ container A │ │ container B │ • network (IP) │
│ │ (app) │ │ (sidecar) │ • localhost │
│ └──────────────┘ └──────────────┘ • volumes │
│ │ talk to each other via localhost:port │
└────────────────────────────────────────────────────────────┘
