CertKeen

Certified Kubernetes Administrator (CKA) · Free practice question 9 of 12

CreateContainerConfigError from missing ConfigMap

A pod at Rushmere Credit shows status CreateContainerConfigError. Its container uses envFrom with configMapRef name: rates-config. What is the likely cause?

  1. A.The pod's liveness probe points at a port that the app does not open
  2. B.The ConfigMap rates-config does not exist in the pod's namespace
  3. C.The node has run out of allocatable memory
  4. D.The image tag rates-config cannot be found
Show answer and explanation

Correct answer: B. The ConfigMap rates-config does not exist in the pod's namespace

Why: The kubelet cannot build the container configuration when a referenced ConfigMap or Secret is missing and the reference is not marked optional, and the events name the missing object. Creating the ConfigMap in the same namespace lets the container start. Image problems give ErrImagePull, memory shortage blocks scheduling, and probes only run after the container starts.

More free Certified Kubernetes Administrator (CKA) questions