Enrolling a sample discovered application for disaster recovery protection
This section guides you on how to apply an existing DR Policy to a discovered application from the Protected applications tab.
Before you begin
- Ensure that Disaster Recovery has been configured and that at least one DR Policy has been created.
Procedure
- On RHACM console, navigate to Disaster recovery > Protected applications tab.
- Click Enroll application to start configuring existing applications for DR protection.
- Select ACM discovered applications.
- In the Namespace page, choose the DR cluster which is the name of
the Primary managed cluster where
busybox
is installed. - Select namespace where the application is installed. For
example,
busybox-discovered
.Note: If you have workload spread across multiple namespaces then you can select all of those namespaces to DR protect. - Choose a unique Name, for example
busybox-rbd
, for the discovered application and click Next. - In the Configuration page, the Resource label is used to protect your resources where you can set which resources will be included in the kubernetes-object backup and what volume’s persistent data will be replicated. Resource label is selected by default.
- Provide Label expressions and PVC label selector. Choose the label
appname=busybox
for both the kubernetes-objects and for the PVC(s). - Click Next.
- In the Replication page, select an existing DR Policy and the
kubernetes-objects backup interval. Note: It is recommended to choose the same duration for the PVC data replication and kubernetes-object backup interval (for example: 5 minutes).
- Click Next.
- Review the configuration and click Save. Use the Back button to go back to the screen to correct any issues.
- Verify that the Application volumes (PVCs) and the Kubernetes-objects
backup have a Healthy status before proceeding to DR Failover and Relocate testing. You can
view the status of your Discovered applications on the Protected applications tab.
- To see the status of the DRPC, run the following command on the Hub cluster:
oc get drpc {drpc_name} -o wide -n openshift-dr-ops
The discovered applications store resources such as DRPlacementControl (DRPC) and Placement on the Hub cluster in a new namespace called
openshift-dr-ops
. The DRPC name can be identified by the unique Name configured in prior steps (i.e.,busybox-rbd
). - To see the status of the VolumeReplicationGroup (VRG) for discovered applications, run
the following command on the managed cluster where the busybox application was manually
installed.
oc get vrg {vrg_name} -n openshift-dr-ops
The VRG resource is stored in the namespace
openshift-dr-ops
after a DR Policy is assigned to the discovered application. The VRG name can be identified by the unique Name configured in prior steps (i.e.,busybox-rbd
).
- To see the status of the DRPC, run the following command on the Hub cluster: