Updated on 2024-12-16 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

  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

    default is selected by default.

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

    For details, see Enabling the Enterprise Project Function.

    Environment Type

    Select Kubernetes.

    HA Environment

    Select Yes.

    VPC

    Select the VPC prepared in Preparing Resources.

    NOTE:

    The VPC cannot be modified after the environment is created.

  3. Click Create Now.
  4. Choose Clusters under Compute and click Bind now.

    1. Select an AZ (for example, az1) from the AZ drop-down list.
    2. Select a CCE cluster (for example, cce-az1) that can be bound in the AZ from the Cluster drop-down list.
    3. Click OK.
    4. Click Add Cluster.
    5. Select the other AZ (for example, az2) from the AZ drop-down list.
    6. Select a CCE cluster (for example, cce-az2) that can be bound in the AZ from the Cluster drop-down list.
    7. 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 configure the application by referring to the following table.

    Parameter

    Description

    Name

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

    Enterprise Project

    default is selected by default.

    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.