-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cephfs: add examples for volumegroupsnapshot
this commit add yaml exampl files for creation of volumegroupsnapshotclass and volumegroupsnapshot for cephfs driver Signed-off-by: yati1998 <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |