Cloud & infrastructurekubernetes podpending podcrashloopbackoff

Pod

Definition

A pod is a group of containers scheduled together onto a single node, sharing an IP address, network namespace and volumes, and treated as one disposable unit.

In practice

Most pods run a single app container, sometimes with helpers such as a sidecar proxy or an init container that prepares files. Containers in a pod reach each other over localhost. The kubelet restarts crashed containers in the same pod, backing off exponentially on repeated crashes (CrashLoopBackOff).

Pods are cattle, not pets: a replacement gets a new name and a new IP, so nothing should address a pod directly; use a Service. A pod stays Pending when no single node has room for its requests, even if the cluster as a whole has plenty of free capacity.

Example

The pod checkout-7d9f-x2k4q runs the app container and an Envoy sidecar; both share the pod IP 10.42.3.17, and the app reaches the proxy at 127.0.0.1:15001.