You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ipi-install-establishing-communication-between-subnets.adoc
+20-15Lines changed: 20 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,12 @@
8
8
9
9
In a typical {product-title} cluster setup, all nodes, including the control plane and compute nodes, reside in the same network. However, for edge computing scenarios, it can be beneficial to locate compute nodes closer to the edge. This often involves using different network segments or subnets for the remote nodes than the subnet used by the control plane and local compute nodes. Such a setup can reduce latency for the edge and allow for enhanced scalability.
10
10
11
-
Before installing {product-title}, you must configure the network properly to ensure that the edge subnets containing the remote nodes can reach the subnet containing the control plane nodes and receive traffic from the control plane too.
11
+
Before installing {product-title}, you must configure the network properly to ensure that the edge subnets containing the remote nodes can reach the subnet containing the control plane nodes and receive traffic from the control plane too.
12
+
13
+
[IMPORTANT]
14
+
====
15
+
During cluster installation, assign permanent IP addresses to nodes in the network configuration of the `install-config.yaml` configuration file. If you do not do this, nodes might get assigned a temporary IP address that can impact how traffic reaches the nodes. For example, if a node has a temporary IP address assigned to it and you configured a bonded interface for a node, the bonded interface might receive a different IP address.
16
+
====
12
17
13
18
You can run control plane nodes in the same subnet or multiple subnets by configuring a user-managed load balancer in place of the default load balancer. With a multiple subnet environment, you can reduce the risk of your {product-title} cluster from failing because of a hardware failure or a network outage. For more information, see "Services for a user-managed load balancer" and "Configuring a user-managed load balancer".
14
19
@@ -33,21 +38,21 @@ In this procedure, the cluster spans two subnets:
33
38
.Procedure
34
39
35
40
. Configure the first subnet to communicate with the second subnet:
36
-
41
+
+
37
42
.. Log in as `root` to a control plane node by running the following command:
38
43
+
39
44
[source,terminal]
40
45
----
41
46
$ sudo su -
42
47
----
43
-
48
+
+
44
49
.. Get the name of the network interface by running the following command:
45
50
+
46
51
[source,terminal]
47
52
----
48
53
# nmcli dev status
49
54
----
50
-
55
+
+
51
56
.. Add a route to the second subnet (`192.168.0.0`) via the gateway by running the following command:
52
57
+
53
58
[source,terminal]
@@ -63,7 +68,7 @@ Replace `<interface_name>` with the interface name. Replace `<gateway>` with the
63
68
----
64
69
# nmcli connection modify eth0 +ipv4.routes "192.168.0.0/24 via 192.168.0.1"
65
70
----
66
-
71
+
+
67
72
.. Apply the changes by running the following command:
68
73
+
69
74
[source,terminal]
@@ -72,14 +77,14 @@ Replace `<interface_name>` with the interface name. Replace `<gateway>` with the
72
77
----
73
78
+
74
79
Replace `<interface_name>` with the interface name.
75
-
80
+
+
76
81
.. Verify the routing table to ensure the route has been added successfully:
77
82
+
78
83
[source,terminal]
79
84
----
80
85
# ip route
81
86
----
82
-
87
+
+
83
88
.. Repeat the previous steps for each control plane node in the first subnet.
84
89
+
85
90
[NOTE]
@@ -88,21 +93,21 @@ Adjust the commands to match your actual interface names and gateway.
88
93
====
89
94
90
95
. Configure the second subnet to communicate with the first subnet:
91
-
96
+
+
92
97
.. Log in as `root` to a remote compute node by running the following command:
93
98
+
94
99
[source,terminal]
95
100
----
96
101
$ sudo su -
97
102
----
98
-
103
+
+
99
104
.. Get the name of the network interface by running the following command:
100
105
+
101
106
[source,terminal]
102
107
----
103
108
# nmcli dev status
104
109
----
105
-
110
+
+
106
111
.. Add a route to the first subnet (`10.0.0.0`) via the gateway by running the following command:
107
112
+
108
113
[source,terminal]
@@ -118,7 +123,7 @@ Replace `<interface_name>` with the interface name. Replace `<gateway>` with the
118
123
----
119
124
# nmcli connection modify eth0 +ipv4.routes "10.0.0.0/24 via 10.0.0.1"
120
125
----
121
-
126
+
+
122
127
.. Apply the changes by running the following command:
123
128
+
124
129
[source,terminal]
@@ -127,14 +132,14 @@ Replace `<interface_name>` with the interface name. Replace `<gateway>` with the
127
132
----
128
133
+
129
134
Replace `<interface_name>` with the interface name.
130
-
135
+
+
131
136
.. Verify the routing table to ensure the route has been added successfully by running the following command:
132
137
+
133
138
[source,terminal]
134
139
----
135
140
# ip route
136
141
----
137
-
142
+
+
138
143
.. Repeat the previous steps for each compute node in the second subnet.
139
144
+
140
145
[NOTE]
@@ -143,7 +148,7 @@ Adjust the commands to match your actual interface names and gateway.
143
148
====
144
149
145
150
. After you have configured the networks, test the connectivity to ensure the remote nodes can reach the control plane nodes and the control plane nodes can reach the remote nodes.
146
-
151
+
+
147
152
.. From the control plane nodes in the first subnet, ping a remote node in the second subnet by running the following command:
If the ping is successful, it means the control plane nodes in the first subnet can reach the remote nodes in the second subnet. If you do not receive a response, review the network configurations and repeat the procedure for the node.
155
-
160
+
+
156
161
.. From the remote nodes in the second subnet, ping a control plane node in the first subnet by running the following command:
0 commit comments