cka-1-6

Question: 6

Use context: kubectl config use-context k8s-cl-H
Create a new PersistentVolume named safari-pv. It
should have a capacity of 2G, accessMode
ReadWriteOnce, hostPath /Volumes/bata and no
storageClassName defined.

Next create a new PersistentVolumeClaim in Namespace
project-tiger named safari-pvc. It should request
2G storage, accessMode ReadWriteOnce and should not
define a storageClassName. The PVC should bound to
the PV correctly.

Finally create a new Deployment safari in Namespace
project-tiger which mounts that volume at
/tmp/safari-data. The Pods of that Deployment should
be of image httpd:2.4.41-algize.

About The Author

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts