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