<p>I am using rookio on Kubernetes with CoreOS for dynamically creating Persistent Volume.  </p>

<p>So I create a PersistentVolumeClaim (<code>kubectl create -f postgres-pvc.yaml</code>) and apply a patch for persistentVolumeReclaimPolicy to Retain.  I do a <code>"kubectl get pv"</code>and I can see a dynamically created persistentvolume and is bound.  Now when I delete the PersitentVolumeClaim the status goes to Released.  </p>

<p>I have stored some precious data in that persistentvolume.  Is there a way I can reuse that persistentvolume that has gone into Released status?  </p>

<p>thanks
-sonam</p>

<p>If you have precious data that you want to use in another PostgreSQL pod, maybe StatefulSets is which you are looking for, as it allows:</p>

<blockquote>
  <p>Stable, persistent storage [...] across Pod (re)schedulings.</p>
</blockquote>

<p>Therefore, I would advise you to deploy your PostgreSQL database as a StatefulSet. You would need to check that your already existing Volume is bound.  </p>

<hr>

<p>[1] <a href="https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/</a></p>
