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.
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.
| Category | Exported data |
|---|---|
| Application basics | Application name, description, deployment cluster, and instance count |
| Runtime artifacts | Application package and container image |
| Resource allocation | Requested vCPUs and memory; maximum vCPUs and memory limits |
| Startup configuration | Startup command and parameters; environment variables |
| Runtime environment | Java Development Kit (JDK), Tomcat, or EDAS Container application runtime environment settings |
| JVM settings | Java Virtual Machine (JVM) startup parameters |
| Health checks and lifecycle hooks | Readiness and liveness probes; post-start and pre-stop scripts |
| Storage | Mounted emptyDir volumes |
| Namespace and scheduling | Microservices namespace and Kubernetes namespace settings; affinity rules for scheduling |
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.
Log on to the EDAS console .
In the left-side navigation pane, choose Application Management > Applications.
On the Applications page, select Kubernetes Cluster or User-created Kubernetes Cluster from the Cluster Type drop-down list.
Select the applications that you want to export. In the lower part of the Applications page, choose More > Export Multiple Applications.
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.
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.