X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=apps%2Fceph%2Fkubespray%2Fplaybooks%2Froles%2Finstall%2Ftemplates%2Ffilesystem-storageclass.yaml.j2;fp=apps%2Fceph%2Fkubespray%2Fplaybooks%2Froles%2Finstall%2Ftemplates%2Ffilesystem-storageclass.yaml.j2;h=b2575f5193b418332d399f1433d3bac543cd6f58;hp=0000000000000000000000000000000000000000;hb=a1e1f40e71a48d8c5315f37999b9123c7ea908ab;hpb=20d34e772e021fabdee0aa9b50e9804a80d5108a diff --git a/apps/ceph/kubespray/playbooks/roles/install/templates/filesystem-storageclass.yaml.j2 b/apps/ceph/kubespray/playbooks/roles/install/templates/filesystem-storageclass.yaml.j2 new file mode 100644 index 0000000..b2575f5 --- /dev/null +++ b/apps/ceph/kubespray/playbooks/roles/install/templates/filesystem-storageclass.yaml.j2 @@ -0,0 +1,31 @@ +# 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