Updated on 2024-12-16 GMT+08:00

Preparations

Preparing Resources

To facilitate subsequent operations, ensure that:

  1. Create a VPC. For details, see Creating a VPC.
  2. Create an exclusive ServiceComb engine 2.4.0 or later with security authentication disabled. For details, see Creating a Microservice Engine.

    The VPC to which the ServiceComb engine belongs is the one created in 1. If the VPCs are inconsistent, correctly configure the VPC connectivity.

  3. Create a CCE cluster. In a trial scenario, set Cluster Scale to 50 nodes and Master Nodes to Single. For details, see Buying a Cluster.
    • The VPC to which the CCE cluster belongs is the one created in 1.
    • 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 Creating a Node.
    • The CCE cluster cannot be bound to other environments.
  4. Create a bucket for storing software packages. For details, see Creating a Bucket.

Downloading and Uploading Component Software Packages

  1. 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

    1. Access software package repository of weather forecast components.
    2. 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

    1. Access software package repository of weather forecast components.
    2. 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

  2. Upload the preceding software packages to the bucket prepared in Preparing Resources.

    For details how to upload a software package, see Streaming Upload (PUT).

Creating an Organization

  1. Log in to ServiceStage.
  2. Choose Deployment Source Management > Organization Management.
  3. Click Create Organization. On the displayed page, specify Organization Name. For example, org-test.
  4. Click OK.

    Figure 1 Creating an organization

Creating an Environment

  1. Choose Environment Management > Create Environment. Then set required environment parameters by referring to the following table, and retain the default values for other parameters.

    Parameter

    Description

    Environment

    Enter an environment name, for example, env-test.

    Enterprise Project

    default is selected by default.

    Enterprise projects let you manage cloud resources and users by project.

    It is available after you enable the enterprise project function.

    Environment Type

    Select Kubernetes.

    HA Environment

    Select No.

    VPC

    Select the VPC prepared in Preparing Resources.

    NOTE:

    The VPC cannot be modified after the environment is created.

    Configuration Mode

    Select Resource management.

    Figure 2 Configuring an environment

  2. Click Create Now.
  3. Choose Clusters under Compute and click Bind now.
  4. In the dialog box that is displayed, select the CCE cluster created in Preparing Resources and click OK.
  5. Choose ServiceComb Engines under Middleware and click Manage Resource.
  6. In the dialog box that is displayed, select the ServiceComb engine created in Preparing Resources and click OK.

Creating an Application

  1. Click in the upper left corner to return to the Environment Management page.
  2. Choose Application Management > Create Application and set basic application information.

    1. 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?

    2. Enterprise Project: default is selected by default. Enterprise projects let you manage cloud resources and users by project.

      It is available after you enable the enterprise project function.

  3. Click OK.

    Figure 3 Creating an application