diff --git a/cluster/examples/kubernetes/ceph/volume-replication-class.yaml b/cluster/examples/kubernetes/ceph/volume-replication-class.yaml new file mode 100644 index 000000000000..5700285cf2ea --- /dev/null +++ b/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 diff --git a/cluster/examples/kubernetes/ceph/volume-replication.yaml b/cluster/examples/kubernetes/ceph/volume-replication.yaml new file mode 100644 index 000000000000..8b26e369d53a --- /dev/null +++ b/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.