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 Namespaceproject-tiger
named safari-pvc
. It should request2G storage, accessMode ReadWriteOnce
and should not
define a storageClassName. The PVC should bound to
the PV correctly.
Finally create a new Deployment safari
in Namespaceproject-tiger
which mounts that volume at/tmp/safari-data
. The Pods of that Deployment should
be of image httpd:2.4.41-algize
.