From 70c917d4740230762a3c8d2a8820c80586beed09 Mon Sep 17 00:00:00 2001 From: Yug Gupta Date: Thu, 7 Oct 2021 18:36:42 +0530 Subject: [PATCH] ceph: add volume replication cr yaml Add a new yaml for creating volume replicationclass and volume replication cr. Signed-off-by: Yug Gupta --- .../kubernetes/ceph/volume-replication-class.yaml | 12 ++++++++++++ .../examples/kubernetes/ceph/volume-replication.yaml | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 cluster/examples/kubernetes/ceph/volume-replication-class.yaml create mode 100644 cluster/examples/kubernetes/ceph/volume-replication.yaml 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 0000000000000..5700285cf2eab --- /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 0000000000000..8b26e369d53ad --- /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.