I had the problem that i created a PVC with auto-provisioning of a PV for a deployment.
Then I accidentally deleted the PVC but the finalizer protected the PVC (and underlaying PV) from being deleted right away.
To use the new PVC Recover functionality one must supply the PVC Name (prefixed by the K8s namespace) and the flag --mode set to pvc, e.g.
I had the problem that i created a PVC with auto-provisioning of a PV for a deployment. Then I accidentally deleted the PVC but the finalizer protected the PVC (and underlaying PV) from being deleted right away.
To use the new PVC Recover functionality one must supply the PVC Name (prefixed by the K8s namespace) and the flag
--mode
set topvc
, e.g.resetpv --mode pvc --etcd-ca ca.crt --etcd-cert etcd.crt --etcd-key etcd.key default/testpvc