Skip to main content
NetApp Backup and Recovery

Restore Kubernetes applications using the web UI

Contributors netapp-mwallis

NetApp Backup and Recovery enables you to restore applications that you have protected with a protection policy. To restore an application, an application needs to have at least one restore point available. A restore point consists of either the local snapshot or the backup to the object store (or both). You can restore an application using the local, secondary, or object store archive.

View protected resources for an application restore point

For each application that you protect with Backup and Recovery, you can view the resources that have been backed up for a specific restore point.

Steps
  1. In NetApp Backup and Recovery, select Inventory > Applications.

  2. From the list of applications, choose an application and select the Actions icon Actions option > View and Restore.

  3. From the list of restore points, choose a restore point and select the Actions icon Actions option > View resources.

    A list of resources and their details appears. You can view resources by namespace or cluster scope, and download the list as a JSON file for future audits.

  4. When finished, select Close.

Restore Kubernetes applications

You can restore namespace-based or VM-based applications from a restore point, either by restoring all resources or by selecting a subset of resources to restore.

Before you begin

If you are restoring an application that was backed up using Trident Protect, ensure that Trident Protect is installed on both the source and destination clusters.

Required NetApp Console role

Backup and Recovery super admin or Backup and Recovery restore admin. Learn about NetApp Backup and Recovery access roles. Learn about NetApp Console access roles for all services.

Steps
  1. In the NetApp Backup and Recovery menu, select Restore.

  2. Choose a Kubernetes application from the list, and select View and Restore for that application.

    The list of restore points appears.

  3. Select the Restore button for the restore point you want to use.

    The Restore data wizard begins, and the General settings page appears.

  4. Choose the source location to restore from.

  5. Choose the destination cluster from the Cluster list.

  6. Choose to restore to the original namespaces or new namespaces.

    Note In-place restore (restoring to the original namespace and original cluster) of VM-based apps from local snapshots is not currently supported.
  7. If you chose to restore to new namespaces, enter the destination namespace or namespaces to use.

  8. Select Next.

    The Resource selection page appears.

  9. Choose whether you want to restore all resources associated with the application or use a filter to select specific resources to restore:

    All resources
    1. Select Restore all resources.

      When restoring a VM-based application, Backup and Recovery lists all virtual machines in the recovery point.

    2. Select Next.

    Specific namespace-based app resources
    1. Select Selective resources and choose whether to filter resources you select based on rules, or based on the namespace.

      Resource selection method Steps

      Filter resources using rules

      1. Select the Rules tab.

      2. Choose the behavior of the resource filter. If you choose Include, the resources you select are restored. If you choose Exclude, the resources you select are not restored.

      3. Select Add rules to add rules that define filters for selecting resources. You need at least one rule to filter resources.

        Each rule can filter on criteria such as the resource namespace, labels, group, version, and kind.

      4. Select Save to save each rule.

      5. When you have added all the rules you need, select Show resources to see the resources available in the backup archive that match your filter criteria.

      Manually select resources from a list

      1. Select the Custom tab.

      2. Select Namespace-Scoped or Cluster-Scoped to view the corresponding resources.

        Backup and Recovery lists all resources in the recovery point.

      3. Select which resources to include in the restore operation.

      Note The resources shown are the resources that currently exist on the cluster.
    2. When finished, select Next.

    Specific VM-based app resources
    1. Select Selective resources.

      Backup and Recovery lists all virtual machines in the recovery point. You can select which VMs to include in the restore operation.

    2. When finished, select Next.

    The Destination settings page appears.

  10. Expand the Destination settings section and choose to restore either to the default storage class, a different storage class, or if you are restoring to a different cluster, to map the storage classes to the destination cluster.

  11. If you chose to restore to a different storage class, select a destination storage class to match each source storage class.

  12. Optionally, if you are restoring a backup or snapshot that was made using Trident Protect, view the details of the AppVault used as the storage bucket for the restore operation. If there is a change in your environment or the AppVault status, select Sync App Vault to refresh the details.

    Note If you need to create an AppVault on a Kubernetes cluster to facilitate restoring a backup or snapshot created using Trident Protect, refer to Use Trident Protect AppVault objects to manage buckets.
  13. Optionally, expand the Restore scripts section and enable the Postscript option to choose an execution hook template that will run after the restore operation is complete. If needed, enter any arguments that the script needs and add label selectors to filter resources based on resource labels.

  14. Optionally, expand the Resource transformations section to add, remove, or modify resource attributes during the restore process. Then, do the following:

    Note Modifying PersistentVolumeClaims and Namespaces is currently not supported.
    1. Enable the Resource transformation option to make changes to the modifier.

    2. Select a template from the Template list to quickly apply modifier settings you commonly use. This list includes predefined templates for common scenarios as well as custom templates that you have created.

      Note Create resource transformation templates in the global Settings area.
    3. Specify which resource you want to modify by entering the resource group, version, kind, and name.

    4. Specify the operation you want to perform on the resource by selecting an operation from the Operation list.

    5. Enter a JSON path for the specific key you want to change.

    6. If applicable, enter a new value to use. The Value field only appears for certain operations (such as Add or Replace).

    7. Optionally, add more resource transformations as needed.

  15. When finished, select Restore.