Edit Overlay Mode
This section describes how to edit the Overlay mode.
The Overlay mode enables cross-host communication between containers without modifying the physical network of the host machines.
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 Pool in the left navigation pane.
-
On the right side of the pod IP pool you want to operate, click
, and then select Edit Overlay Mode from the drop-down list.
-
In the Edit Overlay Mode dialog box, select IPIP mode or VXLAN mode, and then click OK.
Mode Description IPIP Mode
Creates an IP in IP tunnel on each node to enable communication between containers. The options are as follows:
-
Always: Always perform IPIP encapsulation (default).
-
CrossSubnet: Perform IPIP encapsulation only when crossing subnets.
-
Never: Never perform IPIP encapsulation.
VXLAN Mode
Creates a VXLAN tunnel on each node to enable communication between containers. The options are as follows:
-
Always: Always perform VXLAN encapsulation.
-
CrossSubnet: Perform VXLAN encapsulation only when crossing subnets.
-
Never: Never perform VXLAN encapsulation.
-
| Note |
|---|
If both are set to Never, BGP mode is used. |