Updated on 2024-11-15 GMT+08:00

Preparations

Preparing Resources

  1. Create a VPC. For details, see Creating a VPC.
  2. Create two CCE clusters (for example, cce-az1 and cce-az2) in different AZs (for example, az1 and az2). In a trial scenario, set Cluster Scale to 50 nodes and Master Nodes to Single.
    For details, see Buying a Cluster.
    • Each cluster must contain at least one ECS node with 8 vCPUs and 16 GB memory or two ECS nodes with 4 vCPUs and 8 GB memory.

      For details about how to add a node to the CCE cluster, see Creating a Node.

    • The VPC to which the cluster belongs is the one created in 1.
    • When creating a cluster, select Policy for distributing master nodes in a cluster under Master Nodes and select Custom to allocate the master nodes of the two clusters to different AZs.
    • The AZ of the ECS nodes in the cluster must be the same as that of the master nodes in the CCE cluster.
  3. Create a bucket for storing software packages. For details, see Creating a Bucket.

Uploading Software Packages

  1. Download the following software packages:

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

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

Creating Environments

Create two Kubernetes environments to manage the two CCE clusters created in Preparing Resources.

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

    Parameter

    Description

    Environment

    Enter an environment name.

    You can name the two environments (for example, env-cce-az1 and env-cce-az2) based on the AZs where the managed CCE clusters are located.

    Enterprise Project

    Specify Enterprise Project.

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

    For details, see Enabling the Enterprise Project Function.

    VPC

    Select the VPC prepared in Preparing Resources.

    NOTE:

    The VPC cannot be modified after the environment is created.

    Environment Type

    Select Kubernetes.

  3. Click Create Now.
  4. In the Resources area, choose Clusters from Compute and click Bind now.
  5. Select the CCE cluster created in Preparing Resources and click OK.

    • For the env-cce-az1 environment, select cce-az1.
    • For the env-cce-az2 environment, select cce-az2.

Creating an Application

  1. Click in the upper left corner to return to the Environment Management page.
  2. Choose Application Management > Create Application and configure the application by referring to the following table.

    Parameter

    Description

    Name

    Enter an application name, for example, test-app.

    Enterprise Project

    Specify Enterprise Project.

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

    For details, see Enabling the Enterprise Project Function.

  3. Click OK.

Creating an Organization

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