Before creating a cluster on CCE, determine the number of VPCs, the number of subnets, pod CIDR block, and Service CIDR block based on service requirements.
This section describes the IP addresses in a CCE cluster in a VPC and how to plan CIDR blocks.
A VPC enables you to provision logically isolated, configurable, and manageable virtual networks for cloud servers, cloud containers, and cloud databases. You can configure CIDR blocks, subnets, security groups, and more in a VPC, and assign EIPs and bandwidth to your service systems.
A subnet manages ECS network planes. It supports IP address management and DNS. ECSs in a subnet are assigned IP addresses from this subnet. Figure 1 VPC CIDR block architecture
By default, ECSs in all subnets of the same VPC can communicate with one another, but ECSs in different VPCs cannot.
You can create a VPC peering connection to enable ECSs in different VPCs to communicate with each other.
Pod is a Kubernetes concept. Each pod has an IP address.
When creating a cluster on CCE, you can specify the pod CIDR block. The pod CIDR block cannot overlap with the VPC CIDR block or subnet CIDR block. For example, if the subnet CIDR block is 192.168.0.0/16, the pod CIDR block of the cluster cannot be 192.168.0.0/18 or 192.168.64.0/18 because these CIDR blocks are covered by 192.168.0.0/16.
In a CCE Turbo cluster, a container is assigned an IP address from the VPC CIDR block. The container subnet can overlap with the subnet CIDR block. Note that the subnet you select determines the maximum number of pods in the cluster.
Service is also a Kubernetes concept. Each Service has an IP address. When creating a cluster on CCE, you can specify the Service CIDR block. Similarly, the Service CIDR block cannot overlap with the VPC CIDR block, subnet CIDR block, or pod CIDR block. The Service CIDR block can be used only within a cluster.
To access a CCE cluster through a VPN, ensure that the VPN does not conflict with the cluster's VPC CIDR block or the pod CIDR block.
CCE standard clusters can use the VPC or container tunnel networks. Figure 2 shows the CIDR block planning of a CCE standard cluster. Figure 2 CIDR block planning for a CCE standard cluster
Figure 3 shows the CIDR block planning for a CCE Turbo cluster that uses a Cloud Native 2.0 network. Figure 3 CIDR block planning for a CCE Turbo cluster
Clusters Using the VPC Networks
Pod packets are forwarded through VPC routes. CCE automatically configures a route table on the VPC routes for each pod CIDR block. The network scale is limited by the VPC route table. Figure 4 shows the CIDR block planning of such a cluster. Figure 4 Network planning for multiple clusters using the VPC networks
Clusters Using the Tunnel Networks
In a container tunnel network, the container network is an overlay network built on top of the VPC network. Although there is a small amount of performance overhead due to tunnel encapsulation, this kind of network offers strong generality, excellent interoperability, and comprehensive support for advanced features such as network policy-based isolation, making it suitable for most application scenarios. Figure 5 shows the CIDR block planning of the cluster. Figure 5 Network planning for multiple clusters using the tunnel networks
CCE Turbo Clusters Using the Cloud Native 2.0 Networks
In a Cloud Native 2.0 network, container IP addresses are allocated from the VPC CIDR block. Clusters using this kind of network support multiple VPC-based capabilities, such as ELB passthrough networking to pods and direct association of security groups with containers. They can deliver faster network connection and forwarding. Figure 6 Network planning for multiple clusters using the Cloud Native 2.0 networks
Clusters Using Different Networks
For a VPC that contains clusters using different networks, comply with the following rules when creating a cluster:
Different VPCs cannot communicate with each other. A VPC peering connection can connect VPCs in the same region. For two VPC networks that are connected, you can use route tables to configure the packets to be sent to the peer VPC.
Clusters Using the VPC Networks
To allow clusters that use the VPC networks to access each other across VPCs, add routes to both ends of the VPC peering after a VPC peering connection is created.
Figure 7 Network planning for clusters in different VPCs

When creating a VPC peering connection for clusters in different VPCs, pay attention to the following points:
Clusters Using the Tunnel Networks
To allow clusters that use the tunnel networks to access each other across VPCs, add routes to both ends of the VPC peering after a VPC peering connection is created.
Figure 8 Network planning for clusters using the tunnel networks

Pay attention to the following:
CCE Turbo Clusters Using the Cloud Native 2.0 Networks
After creating a VPC peering connection, add routes of the VPC peering connection to both ends so that the two VPCs can communicate with each other. Pay attention to the following:
Clusters Using Different Networks
If clusters using different networks need to communicate with each other across VPCs, every one of them may serve as the request end or destination end. Pay attention to the following:
If one of the clusters uses a VPC network, both VPC route tables must also include the pod CIDR blocks. After the routes of the pod CIDR blocks are added, pods can directly access pods in the other cluster using their IP addresses.
CCE clusters can be used with other cloud services, such as RDS and Kafka. To ensure stable communication and avoid network conflicts, a cluster's network must be carefully planned. Specifically, the CIDR blocks used by other services must not overlap with those used by the cluster. The following requirements apply based on the cluster's network:
Similar to the VPC connection scenario, some CIDR blocks in the VPC may be routed to an IDC, so the pod IP addresses of the CCE cluster must not overlap with those CIDR blocks. If the IDC needs to access pods in the cluster, corresponding routes to the private line must also be configured in the IDC route table.