I have a Kubernetes cluster based on 3 hosts managed via Rancher

I've created Persistent Volume on the first host and use it via a claim by a PostgreSQL pod. My app is generating and storing there some data.

Kubernetes docs state that "Persistent volume lasts through "Cluster lifetime".

My question is - if I will delete a cluster and then create it again, and then create Persistent Volume on the same host (first one) with the same configuration will data be still there?

My confusion stems from the fact that I don't quite get what is considered as "persistence" here. "Persistent Volume" entity within-cluster will obviously get deleted with a cluster. But whats about the data?

1 Answer 1


It depends on what your persistentVolumeReclaimPolicy is. If you manually created/defined the PersistentVolume, then the default action is to keep the data. (This sounds like what you're doing.)

If you are using something like EKS on Amazon, your PV's are dynamically generated EBS volumes. In that case, they will be deleted by default.

A little bit more about reclamation: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#reclaiming

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.