hiexam
vmware · 5V0-2320 · Q603 · multiple_choice · topic_1

What is the proper way to delete a Persistent Volume Claim?

What is the proper way to delete a Persistent Volume Claim?
  • A.By using the kubectl delete persistentvolumeclaim command
  • B.By using the kubectl remove pvc command
  • C.Through the SPBM policy engine using the vSphere Client
  • D.By unmounting the volume from the VM and deleting it from the vSphere datastore
Explanation
Selected Answer: A A. By using the kubectl delete persistentvolumeclaim command kubectl delete persistentvolumeclaim = kubectl delete pvc Delete Persistent Volumes and Persistent Volume Claims To delete Persistent Volume (PV) and Persistent Volume Claim (PVC) objects in a cluster: Run kubectl config use-context my-cluster@user to set kubectl to the cluster’s context. Run kubectl get pvc to retrieve the cluster’s Persistent Volume Claims (PVCs). For each PVC: Run kubectl describe pvc <my-pvc> to identify the PV it is bound to. The PV is listed in the command output as Volume, after Status: Bound. Run kubectl describe pv <my-pv> to describe to determine if its bound PV Reclaim Policy is Retain or Delete. Run kubectl delete pvc <my-pvc> to delete the PVC. If the PV reclaim policy is Retain, run kubectl delete pv <my-pvc> and then log into your cloud portal and delete the PV object there. For example, delete a vSphere CNS volume from your datastore pane > Monitor > Cloud Native Storage > Container Volumes. For more information about vSphere CNS, see Getting Started with VMware Cloud Native Storage.

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.