I've got this PersistentVolume
:
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pvc-01e19eb3-3d62-4772-bd49-1de4f08d5e81 10Gi RWO Retain Released kymark/mariadb-pvc persistent-block-storage 10d
But I deleted the PVC.
If I create a new PVC, how can I specify that I want to re-use that same existing PV? i.e. I want the same data back.
For reference, my PVC YAML looks like:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mariadb-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: persistent-block-storage