Help Center> Cloud Container Engine> FAQs> Networking> Network Planning> How Do I Set the VPC CIDR Block and Subnet CIDR Block for a CCE Cluster?
Updated on 2024-01-18 GMT+08:00

How Do I Set the VPC CIDR Block and Subnet CIDR Block for a CCE Cluster?

The CIDR block of a VPC cannot be changed after the VPC is created. When creating a VPC, allocate sufficient IP addresses for the VPC and subnets.

The subnet CIDR block can be set on the VPC console by choosing Create VPC > Subnet CIDR Block on the Create VPC page. You can view the number of available IP addresses under the CIDR block setting.

If the subnet mask is not set properly, the number of available nodes in the cluster may be insufficient.

Example:

  • If the cluster has 1000 nodes, you can set the subnet CIDR block to 192.168.0.0/20, which supports 4090 nodes.
  • If VPC CIDR block is set to 192.168.0.0/16 and the subnet CIDR block is set to 192.168.0.0/25, only 122 nodes are supported. If you create a cluster with 200 nodes using this VPC, only 122 nodes (including master nodes) can be added.
Figure 1 Viewing the number of available IP addresses

Network Planning FAQs

more