HINT: PV volumes may be described like pvc-name-of-volume which may be confusing!
- PV:
Persistence Volume - PVC:
Persistence Volume Clame - Pod -> PVC -> PV -> Host Machine
First find the pvs:
kubectl get pv -n {namespace}Then delete the pv in order set status to
Terminating
kubectl delete pv {PV_NAME}
Then patch it to set the status of pvc to
Lost:kubectl patch pv {PV_NAME} -p '{"metadata":{"finalizers":null}}'Then get pvc volumes:
kubectl get pvc -n storageThen you can delete the pvc:
kubectl delete pvc {PVC_NAME} -n {namespace}