Skip to content

Commit 19e6511

Browse files
authored
Merge pull request #56994 from amolnar-rh/TELCODOCS-1150
TELCODOCS-1150: nmstateconfig update for day2 worker on DHCP subnet
2 parents ae10984 + 69e2169 commit 19e6511

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

modules/sno-adding-worker-nodes-to-sno-clusters-manually.adoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,38 @@ where:
164164
$ coreos-installer install --ignition-url=<hosted_worker_ign_file> <hard_disk>
165165
----
166166

167+
.. To manually enable DHCP, apply the following `NMStateConfig` CR to the {sno} cluster:
168+
+
169+
[source,yaml]
170+
----
171+
apiVersion: agent-install.openshift.io/v1
172+
kind: NMStateConfig
173+
metadata:
174+
name: nmstateconfig-dhcp
175+
namespace: example-sno
176+
labels:
177+
nmstate_config_cluster_name: <nmstate_config_cluster_label>
178+
spec:
179+
config:
180+
interfaces:
181+
- name: eth0
182+
type: ethernet
183+
state: up
184+
ipv4:
185+
enabled: true
186+
dhcp: true
187+
ipv6:
188+
enabled: false
189+
interfaces:
190+
- name: "eth0"
191+
macAddress: "AA:BB:CC:DD:EE:11"
192+
----
193+
+
194+
[IMPORTANT]
195+
====
196+
The `NMStateConfig` CR is required for successful deployments of worker nodes with static IP addresses and for adding a worker node with a dynamic IP address if the {sno} was deployed with a static IP address. The cluster network DHCP does not automatically set these network settings for the new worker node.
197+
====
198+
167199
. As the installation proceeds, the installation generates pending certificate signing requests (CSRs) for the worker node. When prompted, approve the pending CSRs to complete the installation.
168200

169201
. When the install is complete, reboot the host. The host joins the cluster as a new worker node.

modules/ztp-installation-crs.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The following table lists the installation CRs that are automatically applied by
3737
|Used with `InfraEnv` to generate the discovery ISO for the managed cluster.
3838

3939
|`NMStateConfig`
40-
|Provides network configuration information such as `MAC` address to `IP` mapping, DNS server, default route, and other network settings. This is not needed if DHCP is used.
40+
|Provides network configuration information such as `MAC` address to `IP` mapping, DNS server, default route, and other network settings.
4141
|Sets up a static IP address for the managed cluster’s Kube API server.
4242

4343
|`Agent`

0 commit comments

Comments
 (0)