Recover Azure Kubernetes
You can restore the PVCs and the metadata of the namespaces that are backed up onto the Cohesity cluster to the same location or to an alternate location.
To recover protected Azure Kubernetes namespaces to the same location or to an alternate location:
-
In Cloud Protection Service, go to Sources to set up your recovery task.
-
Click on the Source name.
-
Above the tree, select Show All > Protected.
-
You can locate and select the namespaces. You can also use Global Search to locate and search for Azure. In the source type, select Azure Kubernetes.
-
Click Recover at the top to open the New Recovery form with the Latest snapshot (protection run).
-
If you need to recover from an earlier snapshot, click the Edit icon to open the Recovery Point calendar. Click List to view the available recovery points by timestamp and click one.
-
Click Select Recovery Point.
-
Click Next: Recover Options to return to the form.
-
-
Under Recover To, select Original Location or New Location. If you choose:
Original Location, Cohesity will overwrite the original namespace on the same Kubernetes host to recover the namespace to the original location.
New Location, Select the Target namespace in the Kubernetes host to recover the namespace to a new location.
-
Select your Recovery Options:
-
Rename: Add Prefix and/or Suffix strings to the names of the new namespaces created by this task. For example, you could specify Prefix Test_ and Suffix _QA to the namespace’s name WinOS and when the namespace is recovered, the new namespace that is created is called Test_WinOS_QA.
-
Task Name: Change the default name of the recovery task.
-
Cluster Resources: As part of the backup, clusterlevel resources may also be protected. To restore these resources, enable the Include Cluster Level Resources option. If multiple namespaces are included in the backup, you must select one namespace, which is used as the restore context for the clusterlevel resources.
-
Namespace Resources: Allows you to select the namespace resources you want to recover. Enable the following options to customize these settings: Click the edit icon on Namespace Resources.
-
Resources: In the Resources you can select the following options:
-
Persistent Volume Claim (PVC) Inclusion/Exclusion: Enable this option to choose which PVCs to include or exclude in the recovery task.
You also have an option to recover only PVCs and their dependent resources. The dependent resources include: ConfigMaps and PersistentVolumes.
-
Resource Inclusion/Exclusion: Enable this toggle to include or exclude resource classes, and then select the protected resource from the drop-down. This will display only the resources that were a part of the backup.
-
Storage Class: During restore, PVCs that were originally backed up using the source storage class are restored using the mapped target storage class.
To map recovered PVCs to a different storage class:
-
Click + Add to create a new mapping. Each mapping includes two drop-down lists:
-
Left drop-down: Select a storage class from the source (backed-up) Kubernetes cluster.
-
Right drop-down: Select a storage class from the target Kubernetes cluster.
This mapping ensures that any PVCs using the selected source storage class are recreated using the selected target storage class during recovery.
-
-
To create additional mappings, click + Add.
-
-
Include or Exclude Labels: Enable the Persistent Volume Claim (PVC) Inclusion/Exclusion option and provide the following information to choose which PVCs to include or exclude in the recovery task:
-
In the Logical Rule drop-down, select:
-
“Match Any of the following labels” to include or exclude PVCs if any of labels you provide in the Include or Exclude option match.
-
“Match All of the following labels” to include or exclude PVCs only if all the labels you provide in the Include or Exclude option match.
-
-
Select Include, click + Add, and provide the key and value of the label assigned to the PVCs you want to include. You can add multiple labels.
Or
Select Exclude, click + Add, and provide the key and value of the label tagged to the PVCs you want to exclude. You can add multiple labels.
-
-
-
-
-
Click Recover.
You can monitor the status of the recovery on the Activity page.
Backup is not supported for Azure Kubernetes clusters deployed on Windows-based nodes.