Updated on 2025-08-27 GMT+08:00

Adding or Deleting a Container Subnet

Scenario

If the container subnet fails to meet your service requirements, you can add or delete container subnets as needed.

Container subnets can be deleted only when the cluster version is v1.27.8-r0, v1.28.6-r0, or later.

Adding Container Subnets

  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 under Default Container Subnet.

    Figure 1 Adding subnets

  3. Select one or more subnets in the same VPC. If no subnet is available, go to the VPC console and create one first.

    Figure 2 Selecting subnets

  4. Click OK.

Deleting Container Subnets

Deleting a container subnet is a high-risk operation. Ensure that no network interfaces are using the subnet to be deleted.

Procedure: On the cluster overview page, view the cluster ID in the Basic Info area. In the Networking Configuration > Default Container Subnet area, copy the subnet ID of the container subnet to be deleted. Then, use this ID to filter the network interfaces and network interfaces associated with this subnet on the Network Interfaces tab. If the name or description of any of the filtered network interfaces contains a cluster ID, those network interfaces are being used by the cluster.

  1. Log in to the CCE console and click the cluster name to access the cluster console.
  2. In the navigation pane, choose Cluster > Settings, and then switch to the Network tab.
  3. In the Container Network area, click Update in the Operation column of default-network (Default Container Subnet).
  4. In the Pod Subnet area, deselect the subnets and click OK.

    Figure 3 Deselecting subnets