Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam CKA topic 1 question 11 discussion

Actual exam question from CNCF's CKA
Question #: 11
Topic #: 1
[All CKA Questions]

SIMULATION -


Task -
Create a persistent volume with name app-data, of capacity 2Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is /srv/app- data.

Show Suggested Answer Hide Answer
Suggested Answer:






Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
pentium2000
Highly Voted 1 year, 7 months ago
apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 2Gi accessModes: - ReadOnlyMany hostPath: path: "/srv/app-data"
upvoted 20 times
...
BABU97
Most Recent 5 months ago
apiVersion: v1 2 kind: PersistentVolume 3 metadata: 4 name: app-data 5 spec: 6 capacity: 7 storage: 2Gi 8 accessModes: 9 - ReadWriteMany 10 hostPath: 11 path: "/srv/app-data" ~
upvoted 2 times
...
fc146fc
5 months, 2 weeks ago
Vi app-data.yaml apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 2Gi accessModes: - ReadWriteMany hostPath: path: “/srv/app- data” kubectl create -f app-data.yaml
upvoted 1 times
shure4shure
5 months, 1 week ago
The question asked for the Access Mode to be ReadOnlyMany
upvoted 1 times
...
...
bajideace
7 months, 2 weeks ago
vi pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: app-date spec: capacity: storage: 2Gi accessModes: - ReadOnlyMany hostPath: path: "/srv/app- data" k create -f pv.yaml https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolume
upvoted 1 times
...
namesgeo
9 months ago
https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#create-a-persistentvolume vi pv.yaml -------------- apiVersion: v1 kind: PersistentVolume metadata: name: app-data labels: type: local spec: capacity: storage: 2Gi accessModes: - ReadOnlyMany hostPath: path: "/srv/app-data" ------------------ kubectl create -f pv.yaml
upvoted 2 times
...
Samm1
11 months, 1 week ago
From my view: vi pv1.yaml apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 2Gi volumeMode: Filesystem accessModes: - ReadOnlyMany persistentVolumeReclaimPolicy: Recycle hostPath: path: srv/app- data type: Directory kubectl apply -f pv1.yaml kubectl get pv
upvoted 1 times
...
tetural
1 year, 7 months ago
https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ https://raw.githubusercontent.com/kubernetes/website/main/content/en/examples/pods/storage/pv-volume.yaml
upvoted 1 times
...
amehim
1 year, 7 months ago
Yes @spinmc, you're correct. It should be ROX.
upvoted 2 times
...
spinmc
1 year, 8 months ago
accessModes is wrong in the solution. the ask is to set it ReadOnlyMany
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in