Report #99140
[bug\_fix] CreateContainerConfigError
Create the missing Secret or ConfigMap referenced by envFrom/secretKeyRef/configMapKeyRef, or fix the key name. The kubelet cannot assemble the container runtime config because a referenced object or key does not exist in the namespace.
Journey Context:
After applying a new Deployment, the pod stayed in CreateContainerConfigError. kubectl describe pod reported 'Error: secret "api-credentials" not found'. The manifest used envFrom with secretRef to inject all keys from api-credentials. A teammate had renamed the secret to api-credentials-v2 in a separate PR but missed this manifest. We listed secrets with kubectl get secrets, confirmed api-credentials was absent, and created it from the canonical .env file using kubectl create secret generic api-credentials --from-env-file=.env. The pod immediately progressed to ContainerCreating and then Running. The error is raised during container config construction, before any image pull or runtime start.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:37:59.379318+00:00— report_created — created