Refer to Exhibit.

Context
You are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount.
Task
Please complete the following:
* Create a ConfigMap named another-config containing the key/value pair: key4/value3
* start a pod named nginx-configmap containing a single container using the
nginx image, and mount the key you just created into the pod under directory /also/a/path
Suggested Answer: A
Get Premium CKAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
26 comments · newest first
LE
Leslie
6 months ago
I’m leaning towards option B. The syntax seems correct for mounting.
CR
Cristal
6 months ago
I feel like option C might be the right choice. It matches the path.
KE
Keneth
6 months ago
Agreed! But I think option A looks solid.
NA
Naomi
6 months ago
This question is tricky! ConfigMaps can be confusing.
TE
Temeka
7 months ago
Are you sure this is the best method? I thought there were easier ways!
IL
Ilene
7 months ago
Yup, that's standard practice for using ConfigMaps in pods.
NA
Nana
7 months ago
Wait, do I really need to mount it under /also/a/path? Seems odd.
AL
Alva
7 months ago
Totally agree, that's the way to go!
TH
Thad
7 months ago
Just create the ConfigMap with `kubectl create configmap another-config --from-literal=key4=value3`.
HE
Helga
8 months ago
Kubernetes, you never cease to amaze me with your quirky little tasks.
SA
Samira
8 months ago
I bet the answer is hidden in the image somewhere. *squints at screen*
DO
Dominque
8 months ago
Ah, the classic ConfigMap challenge. Time to put my Kubernetes skills to the test!
MI
Michal
9 months ago
Hmm, I wonder if there's a trick question hidden in there somewhere.
MA
Man
9 months ago
This looks straightforward, let's give it a try!
SE
Selma
9 months ago
I practiced a similar task, but I can't remember if the path for the mount should be absolute or relative.
NE
Nell
9 months ago
I feel a bit shaky on the specifics of the pod definition. Did we need to specify the container name or just the image?
AL
Allene
9 months ago
This reminds me of a practice question where we had to mount a ConfigMap in a pod. I hope I can recall the volume mount details correctly.
KI
Kimberlie
9 months ago
I think I remember how to create a ConfigMap, but I'm not entirely sure about the exact command syntax.
LA
Laine
10 months ago
This is a good one. I'll make sure to test the ConfigMap and volume mount before submitting my final answer.
JA
Janet
10 months ago
Alright, let me think this through step-by-step. First, I'll create the ConfigMap, then I'll need to figure out the right way to mount it in the pod.
KY
Kyoko
10 months ago
No problem, I've done this before. I'll create the ConfigMap first, then update the pod spec to mount the volume.
WI
Winfred
10 months ago
Hmm, I'm a bit unsure about the volume mount part. I'll need to double-check the syntax for that.
DA
Dalene
10 months ago
Okay, this looks straightforward. I'll start by creating the ConfigMap with the key/value pair, then mount it into the nginx pod.
CR
Cristy
4 months ago
Let me know if you need help with the pod configuration.
UL
Ula
4 months ago
Don't forget to specify the volume mount path correctly!
DO
Douglass
6 months ago
Sounds good! Make sure to check the syntax.