k8s - what happens to persistent storage when cluster is deleted/?

10/10/2018

Do they get permanently deleted as well? I imagine they do, since they are a part of a cluster, but I'm new to k8s and I can't find this info online.

If they do get deleted, what would be the preferred solution to keep the data for a cluster that sometimes gets completely deleted and re-deployed?

Thanks

-- Orillion
kubernetes

1 Answer

10/11/2018

According to documentation you can avoid complete PersistentVolume deletion by using retain reclaiming policies. In this case even after PersistentVolume deletion it still exist in external infrastructure, like AWS EBS. So it is possible to recover or reuse existed data.

You can find more details here and here

-- getslaf
Source: StackOverflow