-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpv--releasename-postgres-cephfs.yaml
37 lines (37 loc) · 1.24 KB
/
pv--releasename-postgres-cephfs.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
32
33
34
35
36
37
# Creates a persistent volume for use by postgresql
#
# This should be done only one time, separately from the helm install/upgrade cycle
#
apiVersion: v1
kind: PersistentVolume
metadata:
# See https://github.com/DataONEorg/k8s-cluster/blob/main/storage/storage.md#dataone-volume-naming-conventions
# cephs-{release}-{function}-{instance}, where {release} usually = {namespace}
#
## Use your own release name
name: &pv-name cephfs-releasename-metacat-postgresdata
labels:
metacatVolumeName: *pv-name
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 10Gi
csi:
driver: cephfs.csi.ceph.com
nodeStageSecretRef:
# Use your own secret name
name: csi-cephfs-releasename-secret
# Use your own namespace where above secret is created
namespace: ceph-csi-cephfs
volumeAttributes:
# Use your own clusterID, fsName, rootPath etc. here
clusterID: 8aa4d4a0-a209-11ea-baf5-ffc787bfc812
fsName: cephfs
rootPath: /volumes/k8ssubvolgroup/k8ssubvol/58cda964-ce10-4ff9-8242-983da0fd0da3/repos/name/postgresql
staticVolume: "true"
volumeHandle: *pv-name
persistentVolumeReclaimPolicy: Retain
## Use your own storage class
storageClassName: csi-cephfs-sc
volumeMode: Filesystem