mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-24 15:20:19 +00:00
395b062d65
By labelling the PersistentVolumeClaim with `group: test`, the label selector in the VolumeGroupSnapshot will create a snapshot of an RBD group containing the single volume (or more if there are other volumes in the same namespace with that label). Once the VolumeGroupSnapshot is created, each volume in the group will have a VolumeSnapshot that can be restored. Signed-off-by: Niels de Vos <ndevos@ibm.com>
15 lines
217 B
YAML
15 lines
217 B
YAML
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: rbd-pvc
|
|
labels:
|
|
group: test
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
storageClassName: csi-rbd-sc
|