Skip to content

Commit

Permalink
cephfs: add examples for volumegroupsnapshot
Browse files Browse the repository at this point in the history
this commit add yaml exampl files for creation of
volumegroupsnapshotclass and volumegroupsnapshot for
cephfs driver

Signed-off-by: yati1998 <ypadia@redhat.com>
  • Loading branch information
yati1998 committed Aug 29, 2024
1 parent 3fbe7a8 commit 03429a3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/cephfs/groupsnapshot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshot
metadata:
name: new-groupsnapshot-demo-1
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
17 changes: 17 additions & 0 deletions examples/cephfs/groupsnapshotclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshotClass
metadata:
name: csi-cephfsplugin-groupsnapclass
driver: cephfs.csi.ceph.com # csi-provisioner-name
parameters:
# String representing a Ceph cluster to provision storage from.
# Should be unique across all Ceph clusters in use for provisioning,
# cannot be greater than 36 bytes in length, and should remain immutable for
# the lifetime of the StorageClass in use.
clusterID: <cluster-id>
# eg: fsName: myfs
fsName: <cephfs-name>
csi.storage.k8s.io/group-snapshotter-secret-name: csi-cephfs-secret
csi.storage.k8s.io/group-snapshotter-secret-namespace: default
deletionPolicy: Delete

0 comments on commit 03429a3

Please sign in to comment.