Help Center/ Cloud Container Engine/ Best Practices/ Networking/ Planning CIDR Blocks for a Cluster
Updated on 2026-03-10 GMT+08:00

Planning CIDR Blocks for a Cluster

Before creating a cluster on CCE, determine the number of VPCs, the number of subnets, container 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.

Notes and Constraints

To access a CCE cluster through a VPN, ensure that the VPN does not conflict with the cluster's VPC CIDR block or the container CIDR block.

Network Planning

Helpful Links

  • If a planned VPC is too small and IP addresses are not enough, you can expand the VPC CIDR block for service scale-out requirements. After expansion, configure the security group rules to ensure that services in the new CIDR block can run properly. For details, see Adding a Secondary VPC CIDR Block for a Cluster.
  • If services within a cluster need to access the Internet, for example, to pull images, you can enable Internet access for the cluster. For details, see Accessing the Internet from a Container.