https://rancher.com/ logo
Title
b

billions-honey-62634

09/13/2022, 10:22 PM
You want to create the Persistent Volume that uses hostpath first with a similar manifest
kind: PersistentVolume
apiVersion: v1
metadata:
  name: hostpath-pv
spec:
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  reclaimPolicy:
    - Recycle
  hostPath:
    path: "/data"
Then create the PVC that binds with that PV