Create a pod as follows:
Name: non-persistent-redis
container Image: redis
Volume with name: cache-control
Mount path: /data/redis
The pod should launch in the staging namespace and the volume must not be persistent.
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
29 comments · newest first
CO
Colette
11 months ago
I thought all volumes were persistent by default? This is confusing!
RO
Rozella
11 months ago
The mount path looks good, but is redis really the best choice here?
MA
Marylin
11 months ago
Totally agree, that's a key point to remember!
IR
Ira
11 months ago
Wait, are we sure about the namespace? Shouldn't it be staging?
JO
Johnson
11 months ago
Just a reminder, non-persistent volumes lose data on pod termination.
AL
Alfred
12 months ago
I practiced creating pods in different namespaces, but I need to double-check how to define the volume in the YAML.
KI
Kimbery
12 months ago
I feel a bit uncertain about the non-persistent part. Does that mean I should use an emptyDir volume?
TE
Terrilyn
1 year ago
This question seems similar to one we practiced where we had to specify a namespace and a volume type. I hope I can recall the details correctly.
TH
Theola
1 year ago
I think I remember how to create a pod, but I'm not sure about the exact syntax for the volume.
LA
Latrice
1 year ago
Wait, do I need to create the namespace first, or can I just specify it in the pod definition? I want to make sure I don't miss any steps.
FA
Fannie
1 year ago
Okay, I think I've got this. I'll create the pod in the staging namespace and use an emptyDir volume type to meet the non-persistent requirement.
KR
Kristeen
1 year ago
Hmm, I'm a bit unsure about the non-persistent volume requirement. Let me double-check the documentation on how to create a non-persistent volume.
MA
Marilynn
1 year ago
This looks straightforward, I'll start by creating the pod definition with the specified name, image, and volume mount.
MA
Margarett
1 year ago
Haha, a non-persistent Redis pod? That's going to be one volatile database!
NA
Nakita
1 year ago
The container image is right, but we need to make sure the volume is non-persistent as per the instructions.
VO
Vonda
1 year ago
We should use the redis container image.
TI
Tien
1 year ago
Let's name the pod non-persistent-redis.
FL
Fletcher
1 year ago
I like how the question specifies the namespace and the non-persistent volume. That's a nice touch.
DW
Dwight
1 year ago
User 3: The pod should launch in the staging namespace and the volume must not be persistent.
VA
Vanesa
1 year ago
User 2: We need to use the redis container image and set up a volume named cache-control.
SE
Selma
1 year ago
User 1: Let's create a pod named non-persistent-redis.
GR
Graciela
1 year ago
Agreed, let's make sure to follow the solution provided and include the necessary configurations.
MA
Mabel
1 year ago
I believe the pod should launch in the staging namespace and the volume must not be persistent.
LE
Lenna
1 year ago
The volume mount path is correct, but the volume itself should be non-persistent to match the requirements.
ME
Merrilee
1 year ago
You can achieve this by specifying the volume as non-persistent in the pod definition.
ME
Merrilee
1 year ago
Make sure to set the volume as non-persistent for the pod in the staging namespace.
JA
Jamal
1 year ago
And don't forget to add a volume named cache-control with mount path /data/redis.
GR
Graciela
1 year ago
Yes, we should use the container image redis for it.
JA
Jamal
1 year ago
I think we need to create a pod named non-persistent-redis.