OE:
RECLAIMING A PV
this is a scenario I’ve run into and which wasn’t covered in the course and I’m pretty sure others have as well. You have a PV that is bound to a PVC and you then want to
• detach it from the PVC because you created the PVC in the wrong namespace
• reuse the PV because the pod that was using it is no longer using it
in either case, the solution is easy. Just edit the pv:
$ k edit pv pv-1
and then delete the claimRef section highlighted below. You’ll then be able to bind it to another PVC