Skip to content

Instantly share code, notes, and snippets.

@carloscarnero
Created August 7, 2020 19:48
Show Gist options
  • Save carloscarnero/934deb11165c6254b62a5832c96ce840 to your computer and use it in GitHub Desktop.
Save carloscarnero/934deb11165c6254b62a5832c96ce840 to your computer and use it in GitHub Desktop.
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: example.com
labels:
example.com/nfs.provider: example.com
spec:
capacity:
storage: 1Ti
volumeMode: Filesystem
storageClassName: standard
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
nfs:
server: nfs.example.com
path: /home/example.com
mountOptions:
- hard
- noacl
- nfsvers=3
- nolock
- async
- rw
- dev
- nodiratime
- noexec
- norelatime
- nosuid
- rsize=1048576
- wsize=1048576
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example.com
spec:
resources:
requests:
storage: 1Ti
volumeMode: Filesystem
storageClassName: standard
accessModes:
- ReadWriteMany
selector:
matchLabels:
example.com/nfs.provider: example.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment