Pod

The smallest deployable unit in Kubernetes.

  • Represents one or more containers that share:

    • Storage volumes

    • Networking (they share the same Pod IP)

    • Lifecycle

  • Usually, you run one container per Pod (multi-container Pods are rare and usually for sidecars like logging or monitoring agents).

Why Pods exist?

Containers by themselves don’t have Kubernetes features (no restart policy, scheduling, scaling).

Pods are the Kubernetes wrapper around containers, giving them a lifecycle inside the cluster.

Commands

To apply and run a Pod configuration:

To list all the Pods:

To get a description of a Pod:

To delete a Pod:

Check consumption of a Pod:

Example

Last updated