GearOps

Kubernetes errors

CreateContainerConfigError

Kubernetes could not build the container config from the pod spec.

A referenced ConfigMap, Secret, or projected volume key does not exist. The describe event names the missing object.

Commands to start with

Explain a CreateContainerConfigError paste

Output

The result shows up here. Your input is not written to the log.

Questions

›The ConfigMap exists. Why is it not found?

It is probably in another namespace. Pods only see objects in their own namespace.

›Can a bad env value cause this?

Yes, if env.valueFrom points at a key that is not in the Secret or ConfigMap.