kubernetes-yaml/description/Storage/PersistentVolumes/example-nfs.yml

15 lines
259 B
YAML
Raw Normal View History

2023-12-15 16:39:01 +08:00
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-nfs-example
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
nfs:
server: nfs-server.default.svc.cluster.local
path: "/"
mountOptions:
- nfsvers=4.2