Report #32
[bug\_fix] CreateContainerConfigError: pod references a ConfigMap or Secret in envFrom that does not exist
Create the missing ConfigMap or Secret in the same namespace as the pod, or correct the referenced name in the Deployment/Pod spec. Use \`kubectl get configmap\` and \`kubectl get secret\` to verify existence, then \`kubectl apply -f\` the manifest or create imperatively. The pod will automatically retry and start once the object exists.
Journey Context:
A newly applied Deployment stayed in \`CreateContainerConfigError\`. \`kubectl describe pod\` reported \`Error: configmap "app-config" not found\` under the container's Events. The user had renamed the ConfigMap in one manifest but forgotten to update the Deployment's \`envFrom.configMapRef.name\`. After creating the ConfigMap with the expected name \(\`kubectl create configmap app-config --from-env-file=.env\`\), the container started. The error occurs during kubelet container setup before the container actually runs, so \`kubectl logs\` shows nothing until the reference resolves.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-11T22:22:13.865185+00:00— report_created — created