From b2f2288032bcd426ec8786c43c495cede7c04404 Mon Sep 17 00:00:00 2001 From: Praveen M Date: Thu, 23 Jul 2026 16:32:03 +0530 Subject: [PATCH] csi: add v1 VolumeGroupSnapshot examples for RBD and NFS Add VolumeGroupSnapshotClass and VolumeGroupSnapshot example manifests for RBD and NFS, similar to the existing CephFS examples. Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Praveen M --- deploy/examples/csi/nfs/groupsnapshot.yaml | 13 +++++++++++++ deploy/examples/csi/nfs/groupsnapshotclass.yaml | 15 +++++++++++++++ deploy/examples/csi/rbd/groupsnapshot.yaml | 13 +++++++++++++ deploy/examples/csi/rbd/groupsnapshotclass.yaml | 15 +++++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 deploy/examples/csi/nfs/groupsnapshot.yaml create mode 100644 deploy/examples/csi/nfs/groupsnapshotclass.yaml create mode 100644 deploy/examples/csi/rbd/groupsnapshot.yaml create mode 100644 deploy/examples/csi/rbd/groupsnapshotclass.yaml diff --git a/deploy/examples/csi/nfs/groupsnapshot.yaml b/deploy/examples/csi/nfs/groupsnapshot.yaml new file mode 100644 index 000000000..76249fd81 --- /dev/null +++ b/deploy/examples/csi/nfs/groupsnapshot.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1 +kind: VolumeGroupSnapshot +metadata: + name: nfs-groupsnapshot +spec: + source: + selector: + matchLabels: + # The PVCs require this label for them to be + # included in the VolumeGroupSnapshot + group: snapshot-test + volumeGroupSnapshotClassName: csi-nfsplugin-groupsnapclass diff --git a/deploy/examples/csi/nfs/groupsnapshotclass.yaml b/deploy/examples/csi/nfs/groupsnapshotclass.yaml new file mode 100644 index 000000000..887d8993e --- /dev/null +++ b/deploy/examples/csi/nfs/groupsnapshotclass.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1 +kind: VolumeGroupSnapshotClass +metadata: + name: csi-nfsplugin-groupsnapclass +driver: rook-ceph.nfs.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 +deletionPolicy: Delete diff --git a/deploy/examples/csi/rbd/groupsnapshot.yaml b/deploy/examples/csi/rbd/groupsnapshot.yaml new file mode 100644 index 000000000..3cf089a44 --- /dev/null +++ b/deploy/examples/csi/rbd/groupsnapshot.yaml @@ -0,0 +1,13 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1 +kind: VolumeGroupSnapshot +metadata: + name: rbd-groupsnapshot +spec: + source: + selector: + matchLabels: + # The PVCs require this label for them to be + # included in the VolumeGroupSnapshot + group: snapshot-test + volumeGroupSnapshotClassName: csi-rbdplugin-groupsnapclass diff --git a/deploy/examples/csi/rbd/groupsnapshotclass.yaml b/deploy/examples/csi/rbd/groupsnapshotclass.yaml new file mode 100644 index 000000000..c372b55fd --- /dev/null +++ b/deploy/examples/csi/rbd/groupsnapshotclass.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: groupsnapshot.storage.k8s.io/v1 +kind: VolumeGroupSnapshotClass +metadata: + name: csi-rbdplugin-groupsnapclass +driver: rook-ceph.rbd.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 + pool: replicapool + csi.storage.k8s.io/group-snapshotter-secret-name: rook-csi-rbd-provisioner + csi.storage.k8s.io/group-snapshotter-secret-namespace: rook-ceph +deletionPolicy: Delete