kubernetes-installation/pv-pvc/pv-nfs.yaml

19 lines
332 B
YAML
Raw Normal View History

2021-10-24 20:37:12 +07:00
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs-pv
spec:
capacity:
storage: 10Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Recycle
storageClassName: nfs
mountOptions:
- hard
- nfsvers=4.1
nfs:
path: nsf-export-path
server: server-ip-address