miq-pv-server-example.yaml 605 B

123456789101112131415161718192021222324252627
  1. apiVersion: v1
  2. kind: PersistentVolume
  3. metadata:
  4. name: "${PV_NAME}"
  5. spec:
  6. capacity:
  7. storage: 5Gi
  8. accessModes:
  9. - ReadWriteOnce
  10. nfs:
  11. path: "/${BASE_PATH}/${PV_NAME}"
  12. server: "${NFS_SERVER}"
  13. persistentVolumeReclaimPolicy: Retain
  14. parameters:
  15. - name: BASE_PATH
  16. displayName: BasePath
  17. required: true
  18. description: The parent directory of your NFS exports
  19. value: /exports
  20. - name: PV_NAME
  21. displayName: PVName
  22. required: true
  23. description: The name of this PV
  24. - name: NFS_SERVER
  25. displayName: NFSServer
  26. required: true
  27. description: The hostname or IP address of the NFS server