concept

Pod startup and crash diagnosis

A Pod that cannot start is not necessarily an application crash. First confirm the approved cluster and namespace, workload name, Pod UID and affected container. Then compare the requested specification with observed conditions, container states and recent events. Pending is a Pod phase; ContainerCreating, ErrImagePull, ImagePullBackOff and CrashLoopBackOff can appear as client status or container waiting reasons instead. A Running phase does not guarantee readiness. Record a timestamp and avoid collecting Secret values. The commands below are static examples for an explicitly authorized disposable cluster; the named objects are fictional.

Formal Syntax & Structure

kubernetes syntaxkubernetes
Pod conditions -> container state -> events -> previous logs

Working Example

Example Snippetkubernetes
kubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n bm-troubleshoot get pod catalog-abc -o widekubectl --kubeconfig ./lab.kubeconfig --context bm-lab -n bm-troubleshoot describe pod catalog-abc
Kubernetes Reference