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
11 comments · newest first
GA
Gail
12 months ago
I thought we were supposed to use 20Mi as a minimum.
NI
Nilsa
12 months ago
Nice setup! Nginx is perfect for serving static content.
DA
Daren
1 year ago
Wait, why only 10Mi? Seems a bit small for a web server.
CA
Carin
1 year ago
Totally agree, using ReadWriteOnce is the way to go!
CH
Chau
1 year ago
Just created a PVC named pv-volume with 10Mi capacity.
HE
Helene
1 year ago
I feel confident about creating the PVC, but I might mix up the volume names in the Pod definition. Need to double-check that!
QU
Quentin
1 year ago
I'm a bit unsure about the exact syntax for the kubectl edit command. Did we need to specify anything else besides the PVC name?
GL
Glenn
1 year ago
I think I remember that we need to define the PersistentVolumeClaim first before creating the Pod, right?
DO
Dorthy
1 year ago
This question seems similar to the practice we did on volume mounts. I hope I can recall the access modes correctly during the exam.
SH
Shala
1 year ago
Hmm, this seems like a tricky one. I'll need to carefully consider the requirements and think through the different options.
AH
Ahmed
1 year ago
I feel pretty confident about this one. I'll work through the calculations step-by-step and review my answers to ensure I've got the right numbers for the budget.