Clone and migrate apps

Contributors netapp-bcammett

Clone an existing app to create a duplicate app on the same Kubernetes cluster or on another cluster. Cloning can help if you need to move applications and storage from one Kubernetes cluster to another. For example, you might want to move workloads through a CI/CD pipeline and across Kubernetes namespaces.

When Astra Control clones an app, it creates a clone of your application configuration and persistent storage.

Note
  • If you clone an operator-deployed instance of Jenkins CI, you need to manually restore the persistent data. This is a limitation of the app’s deployment model.

  • If you deploy an app with a StorageClass explicitly set and you need to clone the app, the target cluster must have the originally specified StorageClass. Cloning an application with an explicitly set StorageClass to a cluster that does not have the same StorageClass will fail.

  • During an app backup or app restore, you can optionally specify a bucket ID. An app clone operation, however, always uses the default bucket that has been defined. There is no option to change buckets for a clone. If you want control over which bucket is used, you can either change the bucket default or do a backup followed by a restore separately.

  • Any member user with namespace constraints by namespace name/ID or by namespace labels can clone or restore an app to a new namespace on the same cluster or to any other cluster in their organization’s account. However, the same user cannot access the cloned or restored app in the new namespace. After a new namespace is created by a clone or restore operation, the account admin/owner can edit the member user account and update role constraints for the affected user to grant access to the new namespace.

Steps
  1. Select Applications.

  2. Select the drop-down list in the Action column for the desired app.

  3. Select Clone.

  4. Clone details: Specify details for the clone:

    • Keep the default name and namespace, or edit them.

    • Choose a destination cluster for the clone.

    • Choose whether you want to create the clone from an existing snapshot or backup. If you don’t select this option, Astra Control creates the clone from the app’s current state.

  5. Clone Summary: Review the details about the clone and select Clone App.

    A screenshot of the Clone Summary dialog box which you can use to review clone information about the original app and the cloned app.

Result

Astra Control clones that app based on the information that you provided.