If your business needs grow, you may require your Elastic Compute Service (ECS) application to support single-machine multi-instance or high-density deployments. You may also want to manage your application with Kubernetes (K8s) tools, such as Kubectl, or use other K8s features. In the Enterprise Distributed Application Service (EDAS) console, you can use an ECS application as a template to create a K8s application with the same properties. The original ECS application is retained. This topic describes how to convert an ECS application to a K8s application.
Prerequisites
An ECS application has been created. For more information, see Create and deploy an application in an ECS cluster.
Procedure
-
EDAS console Log on to the . In the left-side navigation pane, choose . In the top navigation bar, select a region. In the upper part of the page, select a microservice namespace. In the upper-left corner of the Applications page, click Create Application.
On the Basic Information tab, configure Cluster Type and Application Source Type, and then click Next.
Parameter
Description
Cluster Type
Select Kubernetes Cluster.
Deployment Type
Select No state (Deployment) or Stateful (StatefulSet) as needed. For more information, see:
Application Source Type
Select ECS Application. From the Select ECS-based Application list, select an existing ECS application.
On the Application Configuration tab, set Application Name and click Next. On the Advanced Settings tab, click Next.
Feature Name
Compatibility
Description
WAR/JAR package URL
Support
Automatically parsed.
Application type
Support
Automatically parsed.
Tomcat configuration
Support
Automatically parsed.
Health check
Support
Automatically parsed as the liveness probe for the Kubernetes application.
JVM parameters
Support
Automatically parsed.
Instance type
Support
The specifications of the first ECS application instance are automatically parsed.
Number of instances
Support
Automatically parses the number of instances of an ECS application.
Mount script
No
Kubernetes applications provide PreStop and PostStart configurations. For more information, see Configure application lifecycle hooks and probes.
Load balancing
No
Manually configure this after the Kubernetes application is created. For more information, see Add a Server Load Balancer (SLB) instance.
Log configuration
No
Manually configure this after the Kubernetes application is created. For more information, see Configure log collection.
-
After you configure the advanced settings, click Create Application. In the Creation Completed step, click Create Application.
-
In the Confirm Application Change Precheck dialog box, click Start Precheck.
-
After the data in the dialog box is refreshed, confirm the precheck items and results and click Continue.
-
(Optional) If you modify the preceding precheck items, click Check Again.
The application requires several minutes to be deployed. During the process, you can view the change records to track the deployment progress of the application on the Change List page. After you deploy the application, go to the Application Overview page to view the running status of pods. If the pods are in the running state, the application is deployed. You can click the running status of pods to view the Deployments, pods, and advanced configurations of the application instances.
-