-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpv.yaml
31 lines (31 loc) · 839 Bytes
/
pv.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
apiVersion: v1
kind: PersistentVolume
metadata:
name: nextcloud-pv-nfs-data
spec:
storageClassName: "nfs-nextcloud-data"
capacity:
storage: 100Gi
accessModes:
- "ReadWriteOnce"
persistentVolumeReclaimPolicy: Retain
nfs:
path: NEXTCLOUD_DATA_NFS_PATH # < NFS share path on the server
server: NFS_SERVER_IP # < IP address of your NFS server
readOnly: false
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: nextcloud-pv-nfs-dbdata
spec:
storageClassName: "nfs-nextcloud-dbdata"
capacity:
storage: 10Gi
accessModes:
- "ReadWriteOnce"
persistentVolumeReclaimPolicy: Retain
nfs:
path: NEXTCLOUD_DBDATA_NFS_PATH # < NFS share path on the server
server: NFS_SERVER_IP # < IP address of your NFS server
readOnly: false