Updated on 2024-06-04 GMT+08:00

Preparing the CCE Environment

Creating a CCE Cluster on Huawei Cloud

Perform the following operations to create a CCE cluster:

  1. Create a VPC.

    On the Network Console, choose Virtual Private Cloud > My VPCs and click Create VPC.

    Configure the parameters as required.

  2. Create a CCE cluster.

    Create a CCE cluster using the VPC created in the previous step.

    Confirm the specifications and complete the creation.

  3. Add worker nodes to the created CCE cluster.

    Go to the CCE cluster details page and add nodes.

    Figure 1 Adding worker nodes to the CCE cluster

    Confirm the resources.

Requesting EIPs on Huawei Cloud

On the Network Console, choose Elastic IP and Bandwidth > EIPs and click Buy EIP.

Four EIPs are required.

  • Two EIPs are required for setting up the multi-cloud collaboration platform:
    • One EIP is bound to a load balancer for accessing the multi-cloud collaboration platform.
    • The other EIP is bound to a load balancer for viewing the platform monitoring data.
  • Two EIPs are required for the nodes in the CCE cluster to access the Internet.

Creating Load Balancers on Huawei Cloud

Perform the following operations to create two load balancers, each with an EIP bound:

  1. On the Network Console, choose Elastic Load Balance > Load Balancers and click Buy Elastic Load Balancer.
  2. Bind an EIP to each load balancer.

Configuring NAT Gateway on Huawei Cloud

Perform the following operations to create a public NAT gateway with an EIP bound:

  1. Buy a public NAT gateway.

    Figure 2 Configuring NAT gateway

  2. Add an SNAT rule to the public NAT gateway to bind an EIP to this gateway so the nodes without EIPs in the CCE cluster can share the EIP to access the Internet.

    Figure 3 Adding an SNAT rule

  3. Use any node that has no EIP bound to access the Internet to test network connectivity.

(Optional) Deploying Middleware on Huawei Cloud

After the multi-cloud collaboration platform is set up, containerized middleware is automatically deployed. In the production environment, Huawei Cloud products are recommended. The middleware is independent of the platform to improve platform stability.

  • Deploy GaussDB(for MySQL).

    On the Huawei Cloud management console, select GaussDB(for MySQL) and create a DB instance.

  • Deploy GeminiDB (for Redis).

    On the Huawei Cloud management console, select GeminiDB and create a DB instance with Compatible API set to Redis.

  • Deploy CSS.

    On the Huawei Cloud management console, select CSS and create an Elasticsearch cluster.

Granting kubectl Permissions on the Worker Nodes in the CCE Cluster

Grant the kubectl operation permissions on the worker nodes in the CCE cluster by following the instructions on the CCE console.

Figure 4 Granting kubectl permissions on worker nodes