Linux Foundation CKA Exam - Topic 1 Question 30 Discussion
Score: 4%TaskCreate 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) 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
Selma
7 months agoCarmela
8 months agoFausto
8 months agoBenton
8 months agoEmilio
8 months agoFrance
8 months agoWilda
8 months agoJaime
8 months agoElbert
9 months agoTuyet
9 months agoRoosevelt
9 months agoAndra
9 months ago