A missing ConfigMap took the deploy down

CreateContainerConfigError stops a pod before the runtime is ever asked. Why it follows renames and new namespaces, and how the message tells you whether the object or just the key is missing.

Why does a missing ConfigMap stop a deploy?

The kubelet builds a container's configuration before it asks the runtime to create it, so a reference it cannot resolve stops the pod before it starts. The waiting message names the object and often the key. It is a deploy problem rather than a cluster one, which is why it so often follows a change to a namespace or a rename.

The failure happens before the container is created

The kubelet assembles a container's configuration first: environment variables, mounted files, everything the pod references. If something it needs is not there, it stops and never asks the runtime. That is why there are no application logs to read.

kubectl describe pod <pod> -n <namespace> | grep -A 3 'Waiting'

The message says which, and often which key

  • A missing object names the ConfigMap or Secret that does not exist.
  • A missing key names both the object and the key inside it, which means the object is fine and the reference is wrong.

Those are different fixes and the message distinguishes them, so read it rather than assuming the object is gone.

Why this one follows changes

ConfigMaps and Secrets are namespaced. The same manifest that works in one namespace fails in another where nobody created the object, which is why this failure clusters around new environments, renames and anything that moved a workload. It is almost always a deploy problem rather than a cluster one.

kubectl get configmap,secret -n <namespace>
kubectl get pod <pod> -n <namespace> -o yaml \
  | grep -E 'configMapKeyRef|secretKeyRef|configMap:|secret:' -A 2

Not to be confused with CreateContainerError

CreateContainerConfigError is the kubelet unable to build the configuration. CreateContainerError is the runtime refusing after it was asked, which is a different cause and a different fix.

What KubeGraf does with this one

KubeGraf names the missing object and the namespace it was expected in, and ties it to the change that introduced the reference, so the fix is obvious rather than a search.

The reference

The full reference: CreateContainerConfigError.

Sources

Read on 25 November 2026. Check the source before you rely on a detail.

Frequently asked questions

What does CreateContainerConfigError mean?

The kubelet could not assemble the container's settings. A ConfigMap, Secret or key the pod references does not exist in that namespace.

How is it different from CreateContainerError?

CreateContainerConfigError happens before the runtime is asked. CreateContainerError is the runtime refusing after it was asked.

Why did it work in staging?

The object exists there. A ConfigMap or Secret is namespaced, so the same manifest fails anywhere the object was not created.

Does a missing key fail the same way as a missing object?

Yes and the message distinguishes them. It names the key when the object exists but the key inside it does not.

Want this worked for you on your own clusters? Apply for KubeGraf Freemium. Three calendar months by approval, no card and no automatic paid conversion.

Last updated . Try KubeGraf Freemium.