b2575f5193b418332d399f1433d3bac543cd6f58
[infra/stack/kubernetes.git] / apps / ceph / kubespray / playbooks / roles / install / templates / filesystem-storageclass.yaml.j2
1 # taken from example at https://rook.github.io/docs/rook/v1.2/ceph-filesystem.html
2
3 apiVersion: storage.k8s.io/v1
4 kind: StorageClass
5 metadata:
6   name: {{ rook_filesystem_storageclass_name }}
7 # Change "rook-ceph" provisioner prefix to match the operator namespace if needed
8 provisioner: {{ rook_namespace }}.cephfs.csi.ceph.com
9 parameters:
10   # clusterID is the namespace where operator is deployed.
11   clusterID: {{ rook_namespace }}
12
13   # CephFS filesystem name into which the volume shall be created
14   fsName: {{ rook_filesystem_name }}
15
16   # Ceph pool into which the volume shall be created
17   # Required for provisionVolume: "true"
18   pool: {{ rook_filesystem_name }}-data0
19
20   # Root path of an existing CephFS volume
21   # Required for provisionVolume: "false"
22   # rootPath: /absolute/path
23
24   # The secrets contain Ceph admin credentials. These are generated automatically by the operator
25   # in the same namespace as the cluster.
26   csi.storage.k8s.io/provisioner-secret-name: rook-ceph-csi
27   csi.storage.k8s.io/provisioner-secret-namespace: {{ rook_namespace }}
28   csi.storage.k8s.io/node-stage-secret-name: rook-ceph-csi
29   csi.storage.k8s.io/node-stage-secret-namespace: {{ rook_namespace }}
30
31 reclaimPolicy: Delete