Skip to content

Commit f7c43d2

Browse files
authored
Merge pull request #92929 from dfitzmau/OCPBUGS-55288-12
[enterprise-4.12] OCPBUGS-55288: Added note about bonded interface and node IP address …
2 parents 488d035 + 9dafa67 commit f7c43d2

2 files changed

+27
-20
lines changed

modules/ipi-install-configuring-host-network-interfaces-in-the-install-config.yaml-file.adoc

+15-16
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="configuring-host-network-interfaces-in-the-install-config-yaml-file_{context}"]
77
= Optional: Configuring host network interfaces
88

9-
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.
1010

1111
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.
1212

@@ -17,36 +17,35 @@ The most common use case for this functionality is to specify a static IP addres
1717
1818
.Procedure
1919

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.
2121
+
2222
[NOTE]
2323
====
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.
2525
====
2626

27-
2827
.. Create an NMState YAML file:
2928
+
3029
[source,yaml]
3130
----
32-
interfaces:
33-
- name: <nic1_name> <1>
31+
interfaces: <1>
32+
- name: <nic1_name>
3433
type: ethernet
3534
state: up
3635
ipv4:
3736
address:
38-
- ip: <ip_address> <1>
37+
- ip: <ip_address>
3938
prefix-length: 24
4039
enabled: true
4140
dns-resolver:
4241
config:
4342
server:
44-
- <dns_ip_address> <1>
43+
- <dns_ip_address>
4544
routes:
4645
config:
4746
- 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>
5049
----
5150
+
5251
<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.
7776
rootDeviceHints:
7877
deviceName: "/dev/sda"
7978
networkConfig: <1>
80-
interfaces:
81-
- name: <nic1_name> <2>
79+
interfaces: <2>
80+
- name: <nic1_name>
8281
type: ethernet
8382
state: up
8483
ipv4:
8584
address:
86-
- ip: <ip_address> <2>
85+
- ip: <ip_address>
8786
prefix-length: 24
8887
enabled: true
8988
dns-resolver:
9089
config:
9190
server:
92-
- <dns_ip_address> <2>
91+
- <dns_ip_address>
9392
routes:
9493
config:
9594
- 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>
9897
----
9998
<1> Add the NMState YAML syntax to configure the host interfaces.
10099
<2> Replace `<nic1_name>`, `<ip_address>`, `<dns_ip_address>`, `<next_hop_ip_address>` and `<next_hop_nic1_name>` with appropriate values.

modules/ipi-install-establishing-communication-between-subnets.adoc

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
[id="ipi-install-establishing-communication-between-subnets_{context}"]
77
= Establishing communication between subnets
88

9-
In a typical {product-title} cluster setup, all nodes, including the control plane and worker nodes, reside in the same network. However, for edge computing scenarios, it can be beneficial to locate worker nodes closer to the edge. This often involves using different network segments or subnets for the remote worker nodes than the subnet used by the control plane and local worker nodes. Such a setup can reduce latency for the edge and allow for enhanced scalability. However, the network must be configured properly before installing {product-title} to ensure that the edge subnets containing the remote worker nodes can reach the subnet containing the control plane nodes and receive traffic from the control plane too.
9+
In a typical {product-title} cluster setup, all nodes, including the control plane and worker nodes, reside in the same network. However, for edge computing scenarios, it can be beneficial to locate worker nodes closer to the edge. This often involves using different network segments or subnets for the remote worker nodes than the subnet used by the control plane and local worker nodes. Such a setup can reduce latency for the edge and allow for enhanced scalability.
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.
1012

1113
[IMPORTANT]
1214
====
13-
All control plane nodes must run in the same subnet. When using more than one subnet, you can also configure the Ingress VIP to run on the control plane nodes by using a manifest. See "Configuring network components to run on the control plane" for details.
14-
15-
Deploying a cluster with multiple subnets requires using virtual media.
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.
1616
====
1717

1818
This procedure details the network configuration required to allow the remote worker nodes in the second subnet to communicate effectively with the control plane nodes in the first subnet and to allow the control plane nodes in the first subnet to communicate effectively with the remote worker nodes in the second subnet.
@@ -22,6 +22,14 @@ In this procedure, the cluster spans two subnets:
2222
- The first subnet (`10.0.0.0`) contains the control plane and local worker nodes.
2323
- The second subnet (`192.168.0.0`) contains the edge worker nodes.
2424
25+
[IMPORTANT]
26+
====
27+
All control plane nodes must run in the same subnet. When using more than one subnet, you can also configure the Ingress VIP to run on the control plane nodes by using a manifest. See "Configuring network components to run on the control plane" for details.
28+
29+
Deploying a cluster with multiple subnets requires using virtual media.
30+
====
31+
32+
2533
.Procedure
2634

2735
. Configure the first subnet to communicate with the second subnet:

0 commit comments

Comments
 (0)