Subnet management (Kube-OVN network)
Manage subnets under Kube-OVN network, including Underlay and Overlay transport networks.
Update gateway
This includes changing the outbound method of traffic, gateway node, and NAT configuration.
Procedure
-
Click Networking > Subnets on the left navigation bar.
-
Click the name of the subnet.
-
Select Actions > Update Gateway.
-
Update parameter configurations, for details, please refer to the parameter description .
-
Click Confirm.
Update the reserved IP
The gateway IP cannot be removed from the reserved IP, while other reserved IPs can be freely edited, deleted, or added.
Procedure
-
Click Networking > Subnets in the left navigation bar.
-
Click the name of the subnet.
-
Select Actions > Update reversed IP.
-
After the update is complete, click Update.
Update the namespace
Update the namespace where the subnet is located.
Cautions
The update process will rebuild the gateway, and all outbound packets will be discarded! Please ensure that there are no business applications accessing outside the cluster.
Procedure
-
Click Networking > Subnets in the left navigation bar.
-
Click the name of the subnet.
-
Select Actions > Update Namespace.
-
After adding one or more namespaces, click Update.
Scaling subnets
When the reserved IP range of the subnet reaches its usage limit or is about to be exhausted, the subnet can be expanded based on the source network segment without affecting the normal operation of existing businesses.
Procedure
-
Click Networking > Subnets in the left navigation bar.
-
Click the name of the subnet.
-
Select Actions > Scale up CIDR.
-
Complete the configuration and click Update.
Underlay and Overlay subnets automatically interoperate
If a cluster has both Underlay and Overlay subnets, by default, Pods under the Overlay subnet can access Pod IPs under the Underlay subnet through NAT via a gateway. However, Pods under the Underlay subnet need to configure node routing to access Pods under the Overlay subnet.
To achieve automatic interoperation between Underlay and Overlay subnets, you can manually modify the YAML file of the Underlay subnet. After the configuration is completed, Kube-OVN will use an additional Underlay IP to connect the Underlay subnet and the ovn-cluster logical router, and set corresponding routing rules to achieve interoperation.
Procedure
-
In the left navigation bar, click Clusters > Resources.
-
Enter Subnet to filter resource objects.
-
Click
on the right of the Underlay subnet to be modified > Update. -
Modify the YAML file and add the
u2oInterconnection: truefield inSpec. -
Click Update.
Note: For existing computing components under the Underlay subnet, Pods need to be rebuilt to take effect.