Export applications

更新时间:
复制 MD 格式

When you migrate an application between Alibaba Cloud environments or transfer it across accounts, you need a portable copy of the application configuration and deployment package. Enterprise Distributed Application Service (EDAS) lets you export these artifacts from Kubernetes-hosted applications so you can import them into the destination environment, helping reduce O&M costs.

Typical migration scenarios:

  • Cross-environment migration: Move an application from Alibaba Cloud public cloud to a different Alibaba Cloud environment, such as EDAS in Alibaba Finance Cloud.

  • Cross-account transfer: Export an application from a source account and import it into a destination account within Alibaba Cloud public cloud.

Prerequisites

Before you begin, ensure that you have:

  • Applications deployed in a Kubernetes cluster

For more information about deploying applications, see Use images to deploy microservices applications in Kubernetes clusters.

Note

Only applications deployed in Kubernetes clusters can be exported. Applications deployed in other cluster types are not supported.

Exported application data

Review the following table to confirm that the export covers the data you need before you start.

CategoryExported data
Application basicsApplication name, description, deployment cluster, and instance count
Runtime artifactsApplication package and container image
Resource allocationRequested vCPUs and memory; maximum vCPUs and memory limits
Startup configurationStartup command and parameters; environment variables
Runtime environmentJava Development Kit (JDK), Tomcat, or EDAS Container application runtime environment settings
JVM settingsJava Virtual Machine (JVM) startup parameters
Health checks and lifecycle hooksReadiness and liveness probes; post-start and pre-stop scripts
StorageMounted emptyDir volumes
Namespace and schedulingMicroservices namespace and Kubernetes namespace settings; affinity rules for scheduling
Note

Data not listed above cannot be imported, exported, or cloned.

Export multiple applications at a time

You can export up to 10 applications in a single batch.

  1. Log on to the EDAS console .

  2. In the left-side navigation pane, choose Application Management > Applications.

  3. On the Applications page, select Kubernetes Cluster or User-created Kubernetes Cluster from the Cluster Type drop-down list.

  4. Select the applications that you want to export. In the lower part of the Applications page, choose More > Export Multiple Applications.

  5. In the Export Confirmation dialog box, click Export. The Application Export progress bar appears on the right side of the page. Click Details to track the export progress for each application.

  6. After the export completes, click Import/Export Records to download the JSON configuration packages and binary packages.

What to do next

Import the downloaded JSON configuration packages and binary packages into the destination EDAS environment to complete the migration.