Recover Persistent Volumes from "Terminating" State
Problem
$ kubectl delete pv --all -n <Namespace>Environment
Resolution
kubectl get pv <pvname> -o yaml > pv.yaml- Edit the existing PV and delete the `spec.claimRef` section. This will delete the PV completely. The PVC would be in lost status initially when the PV is deleted$ kubectl edit pv <pvname>- Edit the backed up PV YAML and delete the `metadata.deletionTimestamp` line.PreviousRecover Persistent Volumes from "Terminating" StateNextLuigi Addon upgrade fails while upgrading cluster from 1.21 to 1.22
Last updated
