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
Before installation, you can set the `networkConfig` configuration setting in the `install-config.yaml` file to configure host network interfaces using NMState.
9
+
Before installation, you can set the `networkConfig` configuration setting in the `install-config.yaml` file to use NMState to configure host network interfaces.
10
10
11
11
The most common use case for this functionality is to specify a static IP address on the bare-metal network, but you can also configure other networks such as a storage network. This functionality supports other NMState features such as VLAN, VXLAN, bridges, bonds, routes, MTU, and DNS resolver settings.
12
12
@@ -17,36 +17,35 @@ The most common use case for this functionality is to specify a static IP addres
17
17
18
18
.Procedure
19
19
20
-
. Optional: Consider testing the NMState syntax with `nmstatectl gc` before including it in the `install-config.yaml` file, because the installer will not check the NMState YAML syntax.
20
+
. Optional: Consider testing the NMState syntax with `nmstatectl gc` before including the syntax in the `install-config.yaml` file, because the installation program does not check the NMState YAML syntax.
21
21
+
22
22
[NOTE]
23
23
====
24
-
Errors in the YAML syntax might result in a failure to apply the network configuration. Additionally, maintaining the validated YAML syntax is useful when applying changes using Kubernetes NMState after deployment or when expanding the cluster.
24
+
Errors in the YAML syntax might result in a failure to apply the network configuration. Additionally, maintaining the validated YAML syntax is useful when applying changes by using Kubernetes NMState after deployment or when expanding the cluster.
25
25
====
26
26
27
-
28
27
.. Create an NMState YAML file:
29
28
+
30
29
[source,yaml]
31
30
----
32
-
interfaces:
33
-
- name: <nic1_name> <1>
31
+
interfaces: <1>
32
+
- name: <nic1_name>
34
33
type: ethernet
35
34
state: up
36
35
ipv4:
37
36
address:
38
-
- ip: <ip_address> <1>
37
+
- ip: <ip_address>
39
38
prefix-length: 24
40
39
enabled: true
41
40
dns-resolver:
42
41
config:
43
42
server:
44
-
- <dns_ip_address> <1>
43
+
- <dns_ip_address>
45
44
routes:
46
45
config:
47
46
- destination: 0.0.0.0/0
48
-
next-hop-address: <next_hop_ip_address> <1>
49
-
next-hop-interface: <next_hop_nic1_name> <1>
47
+
next-hop-address: <next_hop_ip_address>
48
+
next-hop-interface: <next_hop_nic1_name>
50
49
----
51
50
+
52
51
<1> Replace `<nic1_name>`, `<ip_address>`, `<dns_ip_address>`, `<next_hop_ip_address>` and `<next_hop_nic1_name>` with appropriate values.
@@ -77,24 +76,24 @@ Replace `<nmstate_yaml_file>` with the configuration file name.
77
76
rootDeviceHints:
78
77
deviceName: "/dev/sda"
79
78
networkConfig: <1>
80
-
interfaces:
81
-
- name: <nic1_name> <2>
79
+
interfaces: <2>
80
+
- name: <nic1_name>
82
81
type: ethernet
83
82
state: up
84
83
ipv4:
85
84
address:
86
-
- ip: <ip_address> <2>
85
+
- ip: <ip_address>
87
86
prefix-length: 24
88
87
enabled: true
89
88
dns-resolver:
90
89
config:
91
90
server:
92
-
- <dns_ip_address> <2>
91
+
- <dns_ip_address>
93
92
routes:
94
93
config:
95
94
- destination: 0.0.0.0/0
96
-
next-hop-address: <next_hop_ip_address> <2>
97
-
next-hop-interface: <next_hop_nic1_name> <2>
95
+
next-hop-address: <next_hop_ip_address>
96
+
next-hop-interface: <next_hop_nic1_name>
98
97
----
99
98
<1> Add the NMState YAML syntax to configure the host interfaces.
100
99
<2> Replace `<nic1_name>`, `<ip_address>`, `<dns_ip_address>`, `<next_hop_ip_address>` and `<next_hop_nic1_name>` with appropriate values.
Copy file name to clipboardExpand all lines: modules/ipi-install-establishing-communication-between-subnets.adoc
+6-1
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".
0 commit comments