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

Adding a Container CIDR Block for a Cluster

Scenario

If the container CIDR block (container subnet in a CCE Turbo cluster) set during CCE cluster creation is insufficient, you can add a container CIDR block for the cluster.

Constraints

  • This function applies to CCE standard clusters and CCE Turbo clusters of v1.19 or later, but not to clusters using container tunnel networking.
  • The container CIDR block or container subnet cannot be deleted after being added. Exercise caution when performing this operation.

Adding a Container CIDR Block for a CCE Standard Cluster

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. On the Overview page, locate the Networking Configuration area and click Add Container CIDR Block.

    Figure 1 Adding container CIDR block

  3. Configure the container CIDR block to be added. You can click to add multiple container CIDR blocks at a time.

    New container CIDR blocks cannot conflict with service CIDR blocks, VPC CIDR blocks, and existing container CIDR blocks.

    Figure 2 Configuring the container CIDR block

  4. Click OK.

Adding a Container Subnet for a CCE Turbo Cluster

  1. Log in to the CCE console and access the CCE Turbo cluster console.
  2. On the Overview page, locate the Networking Configuration area and click Add Pod Subnet.

    Figure 3 Adding a pod subnet

  3. Select a container subnet in the same VPC. You can add multiple container subnets at a time. If no other container subnet is available, go to the VPC console to create one.

    Figure 4 Selecting a pod subnet

  4. Click OK.