Preparations
Preparing Resources
To facilitate subsequent operations, ensure that:
- You have created a VPC. For details, see Creating a VPC.
- You have created an exclusive microservice engine 2.4.0 or later with security authentication disabled. For details, see Creating a Microservice Engine.
- The VPC to which the microservice engine belongs is the one created in 1. If the VPCs are inconsistent, correctly configure the VPC connectivity.
- If you have enabled the enterprise project function, the microservice engine and its VPC must be in the same enterprise project.
- You have created a Cloud Container Engine (CCE) cluster. In a trial scenario, set Management Scale to 50 nodes and HA to No.
The cluster contains at least one ECS node with 8 vCPUs and 16 GB memory or two ECS nodes with 4 vCPUs and 8 GB memory, and is bound to an EIP. For details, see Buying a Cluster.
- The VPC to which the CCE cluster belongs is the one created in 1.
- If you have enabled the enterprise project function, the CCE cluster and its VPC must be in the same enterprise project.
- The CCE cluster cannot be bound to other environments.
- If a CCE cluster 1.23 or later is created, Container Engine of the ECS node in the cluster supports only Docker.
- Create a bucket for storing software packages. For details, see Creating a Bucket.
Downloading and Uploading Component Software Packages
- Download the weather forecast component software package to the local PC by referring to Table 1. (This practice uses the component developed based on Java chassis.)
Table 1 Software packages of the weather forecast components Microservice Development Framework
Component Name
Component Software Package Name
Description of Downloading a Component Software Package
Java Chassis
weather
weather-1.0.0.jar
- Access software package repository of weather forecast components.
- Click ServiceComb to access the software package repository of weather forecast components developed using the Java chassis microservice development framework.
weather-beta
weather-beta-2.0.0.jar
forecast
forecast-1.0.0.jar
fusionweather
fusionweather-1.0.0.jar
edge-service
edge-service-1.0.0.jar
weathermapweb
weathermapweb.zip
Spring Cloud
weather
weather-1.0.0.jar
- Access software package repository of weather forecast components.
- Click Spring Cloud to access the software package repository of weather forecast components developed using the Spring Cloud microservice development framework.
weather-beta
weather-beta-2.0.0.jar
forecast
forecast-1.0.0.jar
fusionweather
fusionweather-1.0.0.jar
edge-service
edge-service-1.0.0.jar
weathermapweb
weathermapweb.zip
- Upload the preceding software packages to the bucket prepared in Preparing Resources.
Upload the software package. For details, see Uploading an Object.
Creating an Organization
- Log in to ServiceStage.
- Choose Deployment Source Management > Organization Management.
- Click Create Organization. On the displayed page, specify Organization Name. For example, org-test.
- Click OK.
Figure 1 Creating an organization
Creating an Environment
- Choose Environment Management > Create Environment and set the environment information by referring to the following table.
Parameter
Description
Environment
Enter an environment name, for example, env-test.
Enterprise Project
Set the enterprise project. The default value is used by default.
It is available after the enterprise project function is enabled.
Description
Retain the default value.
VPC
Select the VPC prepared in Preparing Resources.
NOTE:- The VPC cannot be modified after the environment is created.
- After a VPC is selected, resources in the VPC are loaded for selection. Resources that are not in the VPC cannot be selected.
Environment Type
Select Kubernetes.
Figure 2 Configuring an environment
- Click Create Now.
- In the Resource Settings area, choose Cloud Container Engine from Compute and click Bind now.
- In the dialog box that is displayed, select the CCE cluster created in Preparing Resources and click OK.
- In the Resource Settings area, choose Cloud Service Engine from Middleware and click Manage Resource.
- In the dialog box that is displayed, select the microservice engine created in Preparing Resources and click OK.
Creating an Application
- Click in the upper left corner to return to the Environment Management page.
- Choose Application Management > Create Application and set basic application information.
- Name: Enter weathermap.
If an application with the same name already exists in the application list, rectify the fault by referring to What Should I Do If a Weather Forecast Application with the Same Name Exists in the Current Environment?.
- Enterprise Project: Select default. (This parameter is displayed only when the enterprise project function is enabled.)
- Name: Enter weathermap.
- Click OK.
Figure 3 Creating an application
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot