How to re-create a PV after a cluster failure

5/13/2020

I have a Stateful application running on Kubernetes, with rook-ceph-block used as the StorageClass for the PV to store data. Based on the Pod running the application, I see what data is stored in the PVC, and since a PVC is only a manifest - this basically means that I know which data is stored in the PV itself.

Let's say the Kubernetes cluster crashes. I would like to re-run my application with all of it's data on a different cluster. How should I handle that? Is there a way to restore the PV from the rook-ceph-block storage? Can I create a new PV on the new cluster, and insert the application data into it from a periodic-stored-somewhere-else backup?

Wondering on the approach how to handle a cluster-level issue, but since I'm quite new to K8s, I'm not sure if I'm missing something fairly simple here. Also, the Kubernetes cluster runs on-premise, deployed on vms. No way to move to the cloud.

Thanks in advance for any help!

-- notadevv
kubernetes
persistent-volumes
recovery
rook-storage

0 Answers