ExamGecko
Question list
Search
Search

List of questions

Search

Question 60 - CKA discussion

Report
Export

Score: 4%

Task

Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany.

The type of volume is hostPath and its location is /srv/app-data .

A.
See the solution below.
Answers
A.
See the solution below.
Suggested answer: A

Explanation:

Solution:

#vi pv.yaml

apiVersion: v1

kind: PersistentVolume

metadata:

name: app-config

spec:

capacity:

storage: 1Gi

accessModes:

- ReadOnlyMany

hostPath:

path: /srv/app-config

# kubectl create -

f

pv.yaml

asked 18/09/2024
Cintron, Rigoberto
37 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first