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?
- A.The pod's liveness probe points at a port that the app does not open
- B.The ConfigMap rates-config does not exist in the pod's namespace
- C.The node has run out of allocatable memory
- 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
- Drain flags for DaemonSets and emptyDir
- CronJob concurrencyPolicy Forbid
- Listing cluster-scoped API resources
- Setting the default namespace in a context
- Session affinity by client IP
- Pod dnsPolicy Default versus ClusterFirst
- Raw block volumes with volumeMode
- Debugging a node with kubectl debug
- Approving a client CertificateSigningRequest
- NetworkPolicy ipBlock with except
- Restoring a PVC from a VolumeSnapshot