title: Cancel or undo deletion of Persistent Volumes in kubernetes cluster
body: <p>Accidentally tried to delete all PV's in cluster but thankfully they still have PVC's that are bound to them so all PV's are stuck in Status: Terminating.</p>
  
  <p>How can I get the PV's out of the "terminating" status and back to a healthy state where it is "bound" to the pvc and is fully working?</p>
  
  <p>The key here is that I don't want to lose any data and I want to make sure the volumes are functional and not at risk of being terminated if claim goes away.</p>
  
  <p>Here are some details from a <code>kubectl describe</code> on the PV.</p>
  
  <pre><code>$ kubectl describe pv persistent-vol-1
  Finalizers:      [kubernetes.io/pv-protection foregroundDeletion]
  Status:          Terminating (lasts 1h)
  Claim:           ns/application
  Reclaim Policy:  Delete
  </code></pre>
  
  <p>Here is the describe on the claim.</p>
  
  <pre><code>$ kubectl describe pvc application
  Name:          application
  Namespace:     ns
  StorageClass:  standard
  Status:        Bound
  Volume:        persistent-vol-1
  </code></pre>