Merge pull request #18036 from iPraveenParihar/csi/add-vgs-examples
csi: add v1 VolumeGroupSnapshot examples for RBD and NFS
This commit is contained in:
4 files changed
+56
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user