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, 4 months ago
apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 2Gi accessModes: - ReadOnlyMany hostPath: path: "/srv/app-data"
upvoted 19 times
...
BABU97
Most Recent 2 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 1 times
...
fc146fc
2 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
2 months, 1 week ago
The question asked for the Access Mode to be ReadOnlyMany
upvoted 1 times
...
...
bajideace
4 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
6 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
8 months, 2 weeks 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, 4 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, 4 months ago
Yes @spinmc, you're correct. It should be ROX.
upvoted 2 times
...
spinmc
1 year, 5 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 ...