Disable and Enable Pod IP Pools
This section describes how to disable and enable Pod IP Pools.
After a Pod IP Pool is disabled, it will no longer allocate IP addresses, and it will not affect the network of pods that have already been assigned IP addresses. However, disabling a Pod IP Pool will automatically unbind it from its associated projects. When migrating a Pod IP Pool, the number of available addresses in the new IP pool must not be less than the number of IP addresses currently in use by the existing pool.
| Warning |
|---|
After the migration is complete, workloads will be restarted. Please perform this operation with caution. |
Prerequisites
-
You need to join a cluster and have the Cluster Network Resource Management permission in the cluster. For more information, see Cluster Members and Cluster Roles.
-
The KubeSphere Network extension must be installed and enabled on the KubeSphere platform.
Steps
-
Log in to the KubeSphere web console with a user who has Cluster Network Resource Management permissions and enter your cluster.
-
Click Network > Pod IP Pools in the left navigation pane.
-
On the right side of the Pod IP Pool you want to operate on, click
, then select Disable from the dropdown list.
-
In the Disable Pod IP Pool dialog box, click OK.
-
On the right side of the disabled Pod IP Pool, click
, then select Enable from the dropdown list to enable the Pod IP Pool.
If the disabled Pod IP Pool has allocated IPs, check Migrate Pod IP Pool to migrate pods with assigned IP addresses to a new Pod IP Pool.