Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph: add volume replication cr yaml
Add a new yaml for creating volume replicationclass and volume replication cr. Signed-off-by: Yug Gupta <yuggupta27@gmail.com>
- Loading branch information
1 parent
e620ebc
commit 0d7532f
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
cluster/examples/kubernetes/ceph/volume-replication-class.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |