Automatically Modifying Kubernetes Applications During Restores

You can use resource modifiers to add, delete, and modify fields in the Kubernetes resource YAMLs that you restore. Resource modification is crucial when you perform cloud-native application mobility, cloning, or disaster recovery.

For detailed information about resource modifiers, including resource modifier definitions and examples, see Configuring Kubernetes Resource Modifiers.

Restore Operations That You Can Use Resource Modifiers For

You can use restore modifiers for full application and namespace-level restores.

For in-place restores, you can use modifiers from the source cluster. For out-of-place restores, you can use modifiers from the source and destination clusters.

Creating a Resource Modifier

When you perform one of the restore operations that support resource modifiers, to create a resource modifier, do the following:

  1. In the restore dialog box, under Advanced options, click Edit Modifiers.

    The Configure modifiers page appears.

  2. In the upper-right area of the page, beside Select a modifier, click the add button add/plus button - gray - no border.

    The New modifier dialog box appears.

  3. Enter a name for the resource modifier.

  4. Click Continue.

  5. To specify a selector, choose a selector, enter the necessary values, and then click Add.

  6. To specify an action, choose an action, enter the necessary values, and then click Add.

  7. Click Save.

Testing a Resource Modifier

You can test resource modifiers to see how they will modify your YAML before you perform the restore.

  1. In the restore dialog box or on the Configure modifiers page, click Test.

    The Test modifiers dialog box appears.

  2. For Selected modifiers, select the modifiers to include in the test.

  3. Paste your source YAML in the box.

  4. Click Test.