Persistent Volumes
Persistent Volumes π
If you want to run stateful workloads, temporary storage managed by volumes is not suitable for this application category. Running a database, for example, needs persistent volumes and storage technologies like, e.g., Block Storage, iSCSI, NFS.
Under no circumstances should you use non-persistent local storage types for this category of data applications. Kubernetes uses highly dynamic resource scheduling to optimize existing physical resources, which are provided via nodes. Pods get moved around, recycled, deleted, and with this, local data can get lost.