delete improperly removed PersistentVolume in kubernetes
In this scenario, you have a PVC (poc-namespace/pvc-hostpath) that is preventing your PV from being deleted. Delte the PVC, and you can delete the PV.
Generally speaking, the Reclaim Policy
of a PVC is delete
, by default, so when you delete a PVC, it automatically deletes the PV bound to it.
Your storageClass
probably was this one (or similar), from rancher. It is a hostPath
based one, meaning it maps your container volume to the host machine.