--- apiVersion: v1 kind: PersistentVolume metadata: name: nginx-pv spec: capacity: storage: 5Gi accessModes: - ReadWriteMany nfs: path: nfs持久化路径 server: nfs地址 --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: nginx-pvc spec: accessModes: - ReadWriteMany resources: requests: storage: 5Gi