Interview Prep/Kubernetes/Pod startup failures

Pod is stuck in `ContainerCreating` and events say `MountVolume.SetUp failed for volume "app-config" : configmap "app-config" not found`.

BeginnerTroubleshootingPod startup failures
Answer

Likely causes → A ConfigMap or Secret mounted as a volume does not exist in the namespace. Unlike env references (which give CreateContainerConfigError), volume references block in ContainerCreating.

Diagnose →

kubectl describe pod web-x | grep -A3 FailedMount
kubectl get cm -n web

Fix → Create the ConfigMap, or fix the name. If the volume is optional, set configMap.optional: true. Kustomize configMapGenerator adds a hash suffix, so a hard-coded name in a non-Kustomize manifest will not match.

Prevent → Ship ConfigMaps in the same release/sync as the Deployment so they are applied together.

All Kubernetes questions Roadmap: Kubernetes core

More on Pod startup failures