Apply Data policy to sample ApplicationSet-based application
Before you begin
Ensure that both managed clusters referenced in the DRPolicy are reachable. If not, the
application will not be DR protected untill both clusters are online.
Procedure
On the Hub cluster, navigate to All
Clusters > Applications.
Click the Actions menu at the end of DRPolicy that you want to use
to view the list of available actions.
Click Manage data policy > Assign Data
Policy.
Select Policy and click Next.
Select an Application resource and then use PVC label
selector to select PCV label for the selected resource.
Note: You can select more than one PVC label for the selected application resources.
After adding all the application resources, click
Next.
Review the Policy configuration details and click Assign.
The newly assigned Data policy is displayed on the Manage data policy modal list
view.
Verify that you can view the assigned policy details on the Applications page.
On the Applications page, navigate to the Data policy column
and click the policy link to expand the view.
Verify that you can see the number of policies assigned along with failover and
relocate status.
After you apply DRPolicy to the applications, confirm whether the
ClusterDataProtected is set to True in the drpc yaml
output.