If you use edas-jenkins-plugin in Jenkins to deploy an application to Enterprise Distributed Application Service (EDAS), you can create or deploy the application in an Elastic Compute Service (ECS) cluster or a Container Service Kubernetes cluster. This topic describes how to configure the relevant parameters in four scenarios.

Deploy an application to an ECS cluster

When you upgrade an application that is deployed to an ECS cluster, configure the parameters as prompted, as shown in the following figure. The advanced parameters in the following figure are optional. EDAS ECS Application
Parameter Description
EDAS Credentials The AccessKey ID.
EDAS Namespace The namespace where the application is to be deployed. The specified value must be in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application ID The ID of the application to be deployed.
Group The group of the application to be deployed. The value all indicates that the application belongs to all the groups.
Target Object The address of the package file that is used to deploy the application. The package type that you use to redeploy the application must be the same as that you use to deploy the application for the first time.
Version Label Format The version number.
Version Description Format The version description that is in the required format.
Batch The number of batches for the deployment.
Batch Wait Time The interval between two consecutive batches.
Release Type The type of the phased release. The next batch can be manually or automatically started.

Create and deploy an application in an ECS cluster

When you create and deploy an application in an ECS cluster, configure the parameters as prompted, as shown in the following figure. The advanced parameters in the following figure are optional. Create EDAS ECS Application
Parameter Description
EDAS Credentials The AccessKey ID.
EDAS Namespace The namespace where the application is to be deployed. The specified value must be in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application Name The name of the application to be deployed.
Package Type The type of the deployment package. Valid values: WAR and JAR.
Cluster ID The ID of the cluster where the application is to be deployed.
Target Object The address of the package file that is used to deploy the application. The package type that you use to redeploy the application must be the same as that you use to deploy the application for the first time.
Ecu Info The elastic compute unit (ECU) ID of the ECS instance that you want to use. For more information, see ListScaleOutEcu.
Version Label Format The version number.
Version Description Format The version description that is in the required format.
Build Pack ID The container version ID.
Health Check Url The URL that is used for health checks.

Deploy an application to a Container Service Kubernetes cluster

When you upgrade an application that is deployed to a Container Service Kubernetes cluster, configure the parameters as prompted, as shown in the following figure. In the following figure, the Application Environment, Startup Command, Resource Quota, and Application Management parameters are optional.

EDAS K8s Application
Parameter Description
EDAS Credentials The AccessKey ID.
EDAS Namespace The namespace where the application is to be deployed. The specified value must be in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Application ID The ID of the application to be deployed.
Target Object The address of the package or the image that is used to deploy the application. The method of redeploying the application must be the same as that of deploying the application for the first time.
Whether target imageUrl If you set the Target Object parameter to the address of the image that is used to deploy your application, select the check box for the parameter.
Application Environment For more information, see DeployK8sApplication.
Startup Command
Resource Quota
Application Management

Create and deploy applications in a Container Service Kubernetes cluster

Create EDAS K8s Application
Parameter Description
EDAS Credentials The AccessKey ID.
EDAS Namespace The namespace where the application is to be deployed. The specified value must be in the format of Region ID:Namespace ID, such as cn-hangzhou:doc.
Cluster ID The ID of the cluster where the application is to be deployed.
K8s Namespace Internal system objects are allocated to different namespaces to form logically isolated projects, groups, or user groups. This way, different groups can be separately managed and can also share the resources of the entire cluster. Select default.
Application Name The name of the application to be deployed.
Application Description The description of the application.
Target Object The address of the FatJar package, WAR package, or image that is used to deploy the application.
Package Type The deployment method. Valid values: FatJar, WAR, and Image.
EDAS Container Version The version of EDAS Container on which the deployment package of the application depends. This parameter is applicable to High-speed Service Framework (HSF) applications that you deploy by using WAR packages. This parameter is unavailable when you deploy applications by using images.
Web Container The version of the Tomcat container on which the deployment package of the application depends. This parameter is applicable to Spring Cloud and Dubbo applications that you deploy by using WAR packages. This parameter is unavailable when you deploy applications by using images.
JDK Version The Java Development Kit (JDK) version, such as OPEN JDK 8.
Version Label Format The version number.
Environments Json The environment variables used to deploy the application. The specified value must be in the format of a JavaScript object notation (JSON) array.
Startup Command For more information, see DeployK8sApplication.
Resource Quota
Application Management