-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrelease-static-fs.yaml
43 lines (43 loc) · 1.2 KB
/
release-static-fs.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
38
39
40
41
42
43
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: recipes-static-pvc
spec:
resources:
requests:
storage: "1Gi"
accessModes:
- ReadWriteOnce
- ReadOnlyMany
storageClassName: recipes-static-storageclass
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: recipes-static-pv
spec:
storageClassName: recipes-static-storageclass
capacity:
storage: "1Gi"
accessModes:
- ReadWriteOnce
- ReadOnlyMany
csi:
driver: cephfs.csi.ceph.com
nodeStageSecretRef:
# node stage secret name
name: ceph-secret
# node stage secret namespace where above secret is created
namespace: ceph
volumeAttributes:
# Required options from storageclass parameters need to be added in volumeAttributes
"clusterID": "2ec73f92-a0c8-11eb-b84d-eb70282a4edf"
# (required) CephFS filesystem name into which the volume shall be created
"fsName": "cephfs"
"staticVolume": "true"
"rootPath": /k8s/${CLUSTER_ENV}/recipes-static
# volumeHandle can be anything, need not to be same
# as PV name or volume name. keeping same for brevity
volumeHandle: recipes-static-pv
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem