Interview Prep/Kubernetes/Pod startup failures

Pod status shows `InvalidImageName`.

BeginnerTroubleshootingPod startup failures
Answer

Likely causes → The image reference cannot be parsed: uppercase letters in the repository, a stray space or newline from a templated value, an empty tag (web:), or a full URL with https://.

Diagnose →

kubectl get pod web-x -o jsonpath='{.spec.containers[0].image}' | od -c | tail -3
helm template . -f values-prod.yaml | grep 'image:'

Fix → Fix the value: lowercase repository, no scheme, quote and trim templated tags ({{ .Values.image.tag | trim }}).

Prevent → Validate rendered manifests in CI with kubeconform and a regex check on image fields.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures