You can restore an application or virtual machine out of place to any Kubernetes cluster that is added to Commvault, for application migration or disaster recovery. You can migrate Kubernetes applications and virtual machines between different Kubernetes distributions, clusters, and StorageClasses.
Supported sources and destinations
You can restore applications or virtual machines as follows:
| Sources | Destinations |
|---|---|
| On-premises cluster | Cloud-managed cluster (AKS, EKS) |
| One cloud service provider (AWS, Azure) | Another cloud service provider |
| Cloud-managed cluster (GKE, AKS) | Cloud IaaS cluster (Amazon EC2, Azure VMs) |
Requirements
The cluster that contains the application you're migrating and the cluster you're migrating the application to must use the same major release of Kubernetes (for example, Kubernetes 1.23).
Start the Restore Wizard
-
From the Command Center navigation pane, go to Protect > Kubernetes.
-
On the Application groups tab, in the row for the application group, click the action button
, and then click Restore. -
Click Full application.
-
Select the applications to restore, and then click Restore.
Destination
-
For Type, select Out of place.
-
Select the cluster to restore the applications to.
-
Select an access node to perform the restore, and then click Next.
Applications
-
To modify an application or virtual machine, select the checkbox for the application or virtual machine, and then click Configure restore options.
-
Select or create a namespace to restore the application to.
-
Select the StorageClass to provision PersistentVolumes from.
-
From the Instance type list, choose a pre-defined configuration of CPU and memory for the restored virtual machine. To customize the resources manually, select CPU and memory and then specify the desired number of CPU cores and Memory size.
-
Specify the Hostname for the restored virtual machine, and then click Save.
-
To configure restore exclusions, click Exclude resources.
-
From Filter list, select an existing restore filter from either the source or destination cluster or add a new filter.
If you add a new resource filter during restore operation, then it is added to the cv-config namespace.
Note
Commvault needs the
cv-confignamespace and a custom CRD namedcvresourcefilters.k8s.cv.ioto be present on the cluster. If the namespace and CRD are not present, Commvault automatically deploys them to your cluster. -
In the Exclusions area, from the Exclude list, select Exclude by rule.
-
From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.
-
Click Save.
-
To exclude sub-resources of applications, enable the Exclude sub-resources toggle key.
-
From the Exclude list, select Exclude by Rule.
-
From the list, select Kind, Group, Version, Namespace, Name, or Label, and then specify the rule.
-
Click Save.
-
Click Save, and then click Next.
Restore Options
-
To delete and overwrite existing data, enable the Unconditionally overwrite if it already exists toggle key.
-
To use resource modifiers to add, delete, and modify fields in the Kubernetes resource YAMLs that you restore, select or create a resource modifier.
Need help with creating a resource modifier?
-
Click Edit Modifiers.
-
Beside Select a modifier, click the add button.
-
Enter a name for the resource modifier, and then click Continue.
-
Choose a selector, enter the value, and then click Add.
-
Choose an action, enter the value, and then click Add.
-
Click Save.
-
-
To test the resource modifiers to see how they will modify your YAML, click Test.
-
Click Next.
Summary
-
Review the selected applications and restore options.
-
Click Submit.