Add fencing annotations to DRClusters, enabling fencing prior to application
failover.
Procedure
- Add the following annotations to all the DRCluster resources.
These annotations include details the NetworkFence resource uses before testing application
failover.
Use this edit command, replacing <drcluster_name> with
your unique name.
oc edit drcluster <drcluster_name>
apiVersion: ramendr.openshift.io/v1alpha1
kind: DRCluster
metadata:
## Add this section
annotations:
drcluster.ramendr.openshift.io/storage-clusterid: openshift-storage
drcluster.ramendr.openshift.io/storage-driver: openshift-storage.rbd.csi.ceph.com
drcluster.ramendr.openshift.io/storage-secret-name: rook-csi-rbd-provisioner
drcluster.ramendr.openshift.io/storage-secret-namespace: openshift-storage
[...]
Example output:
drcluster.ramendr.openshift.io/ocp4perf1 edited
- Make sure to add these annotations for both DRCluster resources (for example:
ocp4perf1
and ocp4perf2
).