By default, containers are stateless meaning they're not storing any data besides the image itself on disk. This behavior can be quite unfortunate when running workloads that require working with data such as databases. One of the easiest ways is to mount an NFS share to the container(s) and let them store everything on the NFS share so here's an example. First, prepare the NFS Share: [root@nfssrv ~]# echo '/var/nfs/test 172.31.10.0/24(rw,secure,sync,no_root_squash)' >> /etc/exports [root@nfssrv ~]# exportfs -rav Create the manifest for the Persistent Volume: --- apiVersion: v1 kind: PersistentVolume metadata: name: var-nfs-test spec: capacity: storage: 512Mi volumeMode: Filesystem accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Recycle storageClassName: nfs mountOptions: - vers=4.2 - namlen=255 - proto=tcp - timeo=30 - retrans=3 nfs: pa...