From c34193d2f2933d8737e8fb23b280d0895ecdb293 Mon Sep 17 00:00:00 2001 From: yati1998 Date: Thu, 29 Aug 2024 16:26:34 +0530 Subject: [PATCH] cephfs: add examples for volumegroupsnapshot this commit add yaml exampl files for creation of volumegroupsnapshotclass and volumegroupsnapshot for cephfs driver Signed-off-by: yati1998 --- examples/cephfs/groupsnapshot.yaml | 13 +++++++++++++ examples/cephfs/groupsnapshotclass.yaml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 examples/cephfs/groupsnapshot.yaml create mode 100644 examples/cephfs/groupsnapshotclass.yaml diff --git a/examples/cephfs/groupsnapshot.yaml b/examples/cephfs/groupsnapshot.yaml new file mode 100644 index 000000000000..9e13246caa5a --- /dev/null +++ b/examples/cephfs/groupsnapshot.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 +kind: VolumeGroupSnapshot +metadata: + name: new-groupsnapshot-demo +spec: + source: + selector: + matchLabels: + # The PVCs will need to have this label for it to be + # included in the VolumeGroupSnapshot + group: test + volumeGroupSnapshotClassName: csi-cephfsplugin-groupsnapclass diff --git a/examples/cephfs/groupsnapshotclass.yaml b/examples/cephfs/groupsnapshotclass.yaml new file mode 100644 index 000000000000..3a01df6dea0d --- /dev/null +++ b/examples/cephfs/groupsnapshotclass.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1alpha1 +kind: VolumeGroupSnapshotClass +metadata: + name: csi-cephfsplugin-groupsnapclass +driver: rook-ceph.cephfs.csi.ceph.com # csi-provisioner-name +parameters: + # Specify a string that identifies your cluster. Ceph CSI supports any + # unique string. When Ceph CSI is deployed by Rook use the Rook namespace, + # for example "rook-ceph". + clusterID: rook-ceph # namespace:cluster + fsName: myfs + csi.storage.k8s.io/group-snapshotter-secret-name: rook-csi-cephfs-provisioner + csi.storage.k8s.io/group-snapshotter-secret-namespace: rook-ceph # namespace:cluster +deletionPolicy: Delete