data4-pv.yaml 357 B

123456789101112131415161718192021
  1. # yaml file contents
  2. apiVersion: v1
  3. kind: PersistentVolume
  4. metadata:
  5. name: data4-pv
  6. spec:
  7. capacity:
  8. storage: 50Gi
  9. accessModes:
  10. - ReadWriteOnce
  11. - ReadOnlyMany
  12. - ReadWriteMany
  13. nfs:
  14. server: 10.0.0.1
  15. path: /work/k8s/data4
  16. persistentVolumeReclaimPolicy: Recycle
  17. #storageClassName: local-storage
  18. #hostPath:
  19. #path: /home/k8s/