Skip to content

Commit

Permalink
ceph: add volume replication cr yaml
Browse files Browse the repository at this point in the history
Add a new yaml for creating volume replicationclass
and volume replication cr.

Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
  • Loading branch information
Yuggupta27 committed Oct 7, 2021
1 parent e620ebc commit 0d7532f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cluster/examples/kubernetes/ceph/volume-replication-class.yaml
@@ -0,0 +1,12 @@
apiVersion: replication.storage.openshift.io/v1alpha1
kind: VolumeReplicationClass
metadata:
name: rbd-volumereplicationclass
spec:
provisioner: rook-ceph.rbd.csi.ceph.com
parameters:
mirroringMode: snapshot
schedulingInterval: "12m"
schedulingStartTime: "16:18:43"
replication.storage.openshift.io/replication-secret-name: rook-csi-rbd-provisioner
replication.storage.openshift.io/replication-secret-namespace: rook-ceph
11 changes: 11 additions & 0 deletions cluster/examples/kubernetes/ceph/volume-replication.yaml
@@ -0,0 +1,11 @@
apiVersion: replication.storage.openshift.io/v1alpha1
kind: VolumeReplication
metadata:
name: pvc-volumereplication
spec:
volumeReplicationClass: rbd-volumereplicationclass
replicationState: primary
dataSource:
apiGroup: ""
kind: PersistentVolumeClaim
name: rbd-pvc # Name of the PVC on which mirroring is to be enabled.

0 comments on commit 0d7532f

Please sign in to comment.