Skip to content

Commit

Permalink
[DNM] example yaml files for ODF
Browse files Browse the repository at this point in the history
Signed-off-by: Niels de Vos <[email protected]>
  • Loading branch information
nixpanic committed Oct 11, 2024
1 parent 24fce36 commit b77fb50
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
13 changes: 13 additions & 0 deletions examples/rbd/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-2
spec:
source:
selector:
matchLabels:
# The PVCs will need to have this label for it to be
# included in the VolumeGroupSnapshot
group: test
volumeGroupSnapshotClassName: csi-rbdplugin-groupsnapclass
12 changes: 12 additions & 0 deletions examples/rbd/groupsnapshotclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshotClass
metadata:
name: csi-rbdplugin-groupsnapclass
driver: openshift-storage.rbd.csi.ceph.com
parameters:
clusterID: openshift-storage
pool: ocs-storagecluster-cephblockpool
csi.storage.k8s.io/group-snapshotter-secret-name: rook-csi-rbd-provisioner
csi.storage.k8s.io/group-snapshotter-secret-namespace: openshift-storage
deletionPolicy: Delete
4 changes: 2 additions & 2 deletions examples/rbd/pvc-restore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ kind: PersistentVolumeClaim
metadata:
name: rbd-pvc-restore
spec:
storageClassName: csi-rbd-sc
storageClassName: ocs-storagecluster-ceph-rbd
dataSource:
name: rbd-pvc-snapshot
name: snapshot-93c8391e95487ac9d6028dc2ca24d1ab61c2079e9bcec234c40fd65cca036dd5-2024-09-25-9.35.6
kind: VolumeSnapshot
apiGroup: snapshot.storage.k8s.io
accessModes:
Expand Down
4 changes: 3 additions & 1 deletion examples/rbd/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rbd-pvc
labels:
group: test
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: csi-rbd-sc
storageClassName: ocs-storagecluster-ceph-rbd

0 comments on commit b77fb50

Please sign in to comment.