OADP
Backup and Restore for Azure Red Hat OpenShift using OpenShift API for Data Protection
This guide outlines how to implement OpenShift API for Data Protection (OADP) for comprehensive backup and recovery for Azure Red Hat OpenShift (ARO) clusters using a storage account.
Overview of OADP
OADP provides robust disaster recovery solution, covering OpenShift applications, application-related cluster resources, persistent volumes. OADP is also capable of backing up both containerized applications and virtual machines (VMs). However,it is important to note that etcd and Operators are not covered under OADP’s disaster recovery capabilities.OADP support is provided to customer workload namespaces, and cluster scope resources.
Deploying OpenShift API for Data Protection on an ARO cluster
Prerequisites
Getting Started
- Create the following environment variables, substituting appropriate values for your environment:
Prepare Azure Account
- Create an Azure Storage Account as a backup target:
- Create an Azure Blob storage container:
- Create a role definition that will allow the operator minimal permissions to access the storage account where the backups are stored:
- Create a service principal for interacting with the Azure API, being sure to
take note of the
appIDandpasswordfrom the output. In this command, we will store these asAZR_CLIENT_IDandAZR_CLIENT_SECRETand use them in a subsequent command:
IMPORTANT be sure to store the client id and client secret for your service principal, as they will be needed later in this walkthrough. You will see the below output from the above command:
Deploying OpenShift API for Data Protection on a ROSA cluster
Prerequisites
Getting Started
Create the following environment variables
Change the cluster name to match your ROSA cluster and ensure you’re logged into the cluster as an Administrator. Ensure all fields are outputted correctly before moving on.
Prepare AWS Account
Create an IAM Policy to allow for S3 Access