Report #3307
[bug\_fix] CreateContainerConfigError: missing ConfigMap or Secret key
Run \`kubectl describe pod\` and read the Events for the exact missing object or key. Create the missing ConfigMap/Secret, or correct the key name referenced in envFrom/valueFrom, volume, or subPath. If subPath is used, ensure the referenced key exists in the ConfigMap/Secret. Common typos include wrong key names, wrong namespace, or objects not yet applied.
Journey Context:
A freshly deployed Pod stayed in \`CreateContainerConfigError\`. \`kubectl describe pod\` showed \`Error: configmap "app-config" not found\`. The Helm chart rendered the Deployment before the ConfigMap template was applied; re-applying the ConfigMap fixed it. Another time the event said \` couldn't find key DB\_PASSWORD in Secret app/db-creds\`; the secret key was actually \`db-password\`. Changing the env \`valueFrom.secretKeyRef.key\` to match the real key resolved the error. This state always surfaces in Events, so describe is the first diagnostic step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T16:29:33.660096+00:00— report_created — created