--- /dev/null
+# taken from example at https://rook.github.io/docs/rook/v1.2/ceph-filesystem.html
+
+apiVersion: storage.k8s.io/v1
+kind: StorageClass
+metadata:
+ name: {{ rook_filesystem_storageclass_name }}
+# Change "rook-ceph" provisioner prefix to match the operator namespace if needed
+provisioner: {{ rook_namespace }}.cephfs.csi.ceph.com
+parameters:
+ # clusterID is the namespace where operator is deployed.
+ clusterID: {{ rook_namespace }}
+
+ # CephFS filesystem name into which the volume shall be created
+ fsName: {{ rook_filesystem_name }}
+
+ # Ceph pool into which the volume shall be created
+ # Required for provisionVolume: "true"
+ pool: {{ rook_filesystem_name }}-data0
+
+ # Root path of an existing CephFS volume
+ # Required for provisionVolume: "false"
+ # rootPath: /absolute/path
+
+ # The secrets contain Ceph admin credentials. These are generated automatically by the operator
+ # in the same namespace as the cluster.
+ csi.storage.k8s.io/provisioner-secret-name: rook-ceph-csi
+ csi.storage.k8s.io/provisioner-secret-namespace: {{ rook_namespace }}
+ csi.storage.k8s.io/node-stage-secret-name: rook-ceph-csi
+ csi.storage.k8s.io/node-stage-secret-namespace: {{ rook_namespace }}
+
+reclaimPolicy: Delete