This section describes the environments, applications, and components of ServiceStage.
This document describes how to set up an environment, create an application, create and deploy a component, confirm the deployment, access the application, and perform application O&M.
If a CCE cluster 1.23 or later is created, Container Engine of the ECS node in the cluster supports only Docker.
If the VPC to which the CSE belongs is different from the VPC created in 1, configure the VPC connectivity.
After the installation, open the Command Prompt, and run the mvn -v command to query the versions of Java JDK and Maven. If their versions are displayed, the installation is successful. In this example, Maven 3.6.3 and JDK 1.8.0 are used.
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)......Java version: 1.8.0_201,......
D:\servicecomb-samples-master\servicecomb-samples-master\ServiceComb-SpringMVC>mvn clean package......[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ servicecomb ---[INFO] Building jar: D:\servicecomb-samples-master\servicecomb-samples-master\ServiceComb-SpringMVC\target\servicecomb-0.0.1-SNAPSHOT.jar[INFO][INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) @ servicecomb ---[INFO] ------------------------------------------------------------------------[INFO] BUILD SUCCESS......
After compilation, the servicecomb-0.0.1-SNAPSHOT.jar software package is generated in the target subdirectory in the root directory of the project (for example, D:\servicecomb-samples-master\servicecomb-samples-master\ServiceComb-SpringMVC\target), and the message "BUILD SUCCESS" is displayed.
For details about how to upload the software package, see Uploading a File.
Parameter | Description |
|---|---|
Environment | Enter an environment name, for example, test-env. |
Enterprise Project | Specify Enterprise Project. Enterprise projects let you manage cloud resources and users by project. For details, see Creating an Enterprise Project. |
VPC | Select the VPC prepared in Prerequisites. NOTE: The VPC cannot be modified after the environment is created. |
Environment Type | Select Kubernetes. |
Parameter | Description |
|---|---|
Name | Enter an application name, for example, test-servicestage. |
Enterprise Project | Specify Enterprise Project. Enterprise projects let you manage cloud resources and users by project. For details, see Creating an Enterprise Project. |
Parameter | Description |
|---|---|
Component Name | Enter a component name, for example, test-cse. |
Component Version | Click Generate. By default, the version number is the time when you click Generate. The format is yyyy.mmdd.hhmms, where s is the ones place of the second in the timestamp. For example, if the timestamp is 2022.0803.104321, the version number is 2022.0803.10431. |
Environment | Select the environment created in Creating an Environment, for example, test-env. |
Application | Select the application created in Creating an Application, for example, test-servicestage. |
Parameter | Description |
|---|---|
Stack | Select Java. |
Upload Method | Click Software Package and select servicecomb-0.0.1-SNAPSHOT.jar uploaded in Preparing Software Packages. |
Parameter | Description |
|---|---|
Organization | Select the organization created in Creating an Organization. An organization is used to manage images generated during component build. |
Environment | Select Use current environment to use the CCE cluster in the deployment environment to which the component belongs to build an image. In the current environment, masters and nodes in the CCE cluster must have the same CPU architecture. Otherwise, the component build fails. |
Wait until the component is deployed.
If the microservice servicecombspringmvc is displayed and the number of microservice instances is 2, the deployment is successful.
Parameter | Description |
|---|---|
Service Name | Retain the default value. |
Access Mode | Select Public network access. |
Access Type | Select Elastic IP address. |
Service Affinity | Retain the default value. |
Port Mapping |
|
Figure 1 Access address

The following information is displayed:
{"message":"Not Found"}
The following information is displayed:
"ServiceStage"
See Component O&M.