使用NFS创建PV

nfs-pv.yaml文件示例

apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs-pv
  labels:
    type: local
spec:
  capacity:
    storage: 10Gi
  accessModes:
    - ReadWriteMany
  nfs:
    server: 192.168.1.100
    path: /exports/data
posted @ 2024-09-20 16:23  陆颐  阅读(25)  评论(0)    收藏  举报