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 <ndevos@ibm.com>
  • Loading branch information
nixpanic committed Oct 14, 2024
1 parent 1913de9 commit 0c356f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
17 changes: 5 additions & 12 deletions examples/rbd/groupsnapshotclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,10 @@ apiVersion: groupsnapshot.storage.k8s.io/v1alpha1
kind: VolumeGroupSnapshotClass
metadata:
name: csi-rbdplugin-groupsnapclass
driver: rbd.csi.ceph.com
driver: openshift-storage.rbd.csi.ceph.com
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: pool: rbdpool
pool: <rbd-pool-name>

csi.storage.k8s.io/group-snapshotter-secret-name: csi-rbd-secret
csi.storage.k8s.io/group-snapshotter-secret-namespace: default
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
2 changes: 1 addition & 1 deletion examples/rbd/pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ spec:
resources:
requests:
storage: 1Gi
storageClassName: csi-rbd-sc
storageClassName: ocs-storagecluster-ceph-rbd

0 comments on commit 0c356f7

Please sign in to comment.