# yaml file contents apiVersion: v1 kind: PersistentVolume metadata: name: data-pv spec: capacity: storage: 10Gi accessModes: - ReadWriteOnce - ReadOnlyMany - ReadWriteMany nfs: server: 10.0.0.1 path: /work/k8s/data1 persistentVolumeReclaimPolicy: Recycle #storageClassName: local-storage #hostPath: #path: /home/k8s/data1