Score:7%

Task
Create a new PersistentVolumeClaim
* Name: pv-volume
* Class: csi-hostpath-sc
* Capacity: 10Mi
Create a new Pod which mounts the PersistentVolumeClaim as a volume:
* Name: web-server
* Image: nginx
* Mount path: /usr/share/nginx/html
Configure the new Pod to have ReadWriteOnce access on the volume.
Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.
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
17 comments · newest first
GR
Gregoria
11 months ago
Good catch on the storage size, but it’s fine for testing!
CR
Cristal
12 months ago
I thought we could use ReadWriteMany for this?
CH
Christiane
12 months ago
Wait, why only 10Mi? Seems too small for a web server.
CO
Cordelia
12 months ago
Totally agree, consistency is key!
BR
Brandon
1 year ago
Just a reminder, the PVC name should match in both files!
MA
Marta
1 year ago
I definitely need to double-check the command for expanding the PersistentVolumeClaim. I think it’s `kubectl edit`, but I’m not 100% sure about the flags.
WI
Willard
1 year ago
I’m a bit confused about the access modes. I know it’s ReadWriteOnce, but I hope I don’t mix it up with ReadOnlyMany.
LU
Lura
1 year ago
This question seems similar to the practice ones we did last week, especially the part about mounting the volume in the Pod.
JA
Jamal
1 year ago
I think I remember how to create a PersistentVolumeClaim, but I'm not entirely sure about the exact syntax for the YAML file.
CA
Carmelina
1 year ago
Wait, do I need to use kubectl patch instead of kubectl edit to expand the PVC capacity? I want to make sure I record the change properly.
NA
Nana
1 year ago
Okay, this looks straightforward enough. I'll just follow the steps in the question and use the provided information to create the necessary resources.
SH
Sharika
1 year ago
Hmm, I'm a bit unsure about the exact YAML syntax for the PVC and Pod. I'll need to review the example closely and make sure I get the details right.
CE
Celeste
1 year ago
I think I've got a good handle on this. I'll start by creating the PersistentVolumeClaim YAML file, then the Pod YAML file, and finally use kubectl edit to expand the PVC capacity.
IL
Ilona
1 year ago
Hmm, I'm a bit unsure about this one. Creating the DHCP server profile first seems logical, but I'm not sure if that's the right approach here. Let me re-read the question and options.
LO
Louann
1 year ago
I remember RDS supports MySQL, SQL Server, and PostgreSQL, but I'm a bit unsure about Oracle.
LI
Lindsey
1 year ago
Okay, I think I've got it. The Max Target sets the desired RAID level for the primary data volume, while the Min Target sets the desired RAID level for the associated mirror and snapshot volumes. That makes sense in terms of the data protection requirements.
AL
Alysa
1 year ago
I'm a bit confused here. I thought services could enter various roles depending on the context. Maybe I misinterpreted the examples we covered.