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
* xref:../../installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc#configuring-host-network-interfaces-in-the-install-config-yaml-file_ipi-install-installation-workflow[(Optional) Configuring host network interfaces in the install-config.yaml file]
23
-
* xref:../../scalability_and_performance/managing-bare-metal-hosts.adoc#automatically-scaling-machines-to-available-bare-metal-hosts_managing-bare-metal-hosts[Automatically scaling machines to the number of available bare metal hosts]
21
+
* See xref:../../installing/installing_bare_metal_ipi/ipi-install-installation-workflow.adoc#configuring-host-network-interfaces-in-the-install-config-yaml-file_ipi-install-installation-workflow[Optional: Configuring host network interfaces in the install-config.yaml file] for details on configuring the NMState syntax.
22
+
* See xref:../../scalability_and_performance/managing-bare-metal-hosts.adoc#automatically-scaling-machines-to-available-bare-metal-hosts_managing-bare-metal-hosts[Automatically scaling machines to the number of available bare metal hosts] for details on automatically scaling machines.
Copy file name to clipboardExpand all lines: modules/ipi-install-preparing-the-bare-metal-node.adoc
+59-44Lines changed: 59 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,14 @@ Expanding the cluster requires a DHCP server. Each node must have a DHCP reserva
11
11
[IMPORTANT]
12
12
.Reserving IP addresses so they become static IP addresses
13
13
====
14
-
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To configure static IP addresses with NMState, see "(Optional) Configuring host network interfaces in the `install-config.yaml` file" in the "Setting up the environment for an OpenShift installation" section for additional details.
14
+
Some administrators prefer to use static IP addresses so that each node's IP address remains constant in the absence of a DHCP server. To configure static IP addresses with NMState, see "Optional: Configuring host network interfaces in the `install-config.yaml` file" in the "Setting up the environment for an OpenShift installation" section for additional details.
15
15
====
16
16
17
17
Preparing the bare metal node requires executing the following procedure from the provisioner node.
18
18
19
19
.Procedure
20
20
21
-
. Get the `oc` binary, if needed. It should already exist on the provisioner node.
21
+
. Get the `oc` binary:
22
22
+
23
23
[source,terminal]
24
24
----
@@ -44,7 +44,7 @@ $ echo -ne "root" | base64
44
44
$ echo -ne "password" | base64
45
45
----
46
46
47
-
. Create a configuration file for the bare metal node.
47
+
. Create a configuration file for the bare metal node using the following example `bmh.yaml` file, replacing values in the YAML to match your environment:
<1> Optional: To configure network for a newly created node, specify the name of the secret that contains the network configuration. Follow the `nmstate` syntax to define the network configuration for your node.
111
+
+
112
+
<1> Optional: To configure the network interface for a newly created node, specify the name of the secret that contains the network configuration. Follow the `nmstate` syntax to define the network configuration for your node. See "Optional: Configuring host network interfaces in the install-config.yaml file" for details on configuring NMState syntax.
113
+
+
109
114
<2> Replace `<num>` for the worker number of the bare metal node in the `name` fields, the `credentialsName` field, and the `preprovisioningNetworkDataName` field.
110
-
<3> Replace `<base64-of-uid>` with the `base64` string of the user name.
111
-
<4> Replace `<base64-of-pwd>` with the `base64` string of the password.
112
-
<5> Replace `<NIC1-mac-address>` with the MAC address of the bare metal node's first NIC. See the "BMC addressing" section for additional BMC configuration options.
113
-
<6> Replace `<protocol>` with the BMC protocol, such as IPMI, RedFish, or others. Replace `<bmc-ip>` with the IP address of the bare metal node's baseboard management controller.
114
-
<7> To skip certificate validation, set `disableCertificateVerification` to `true`.
115
-
<8> Replace `<bmc-username>` with the `bmc` string of the user name.
116
-
<9> Replace `<bmc-password>` with the `bmc` string of the password.
117
-
<10> Optional: Provide the network configuration secret name in the `preprovisioningNetworkDataName` of the `BareMetalHost` CR if you have configured network for the newly created node.
115
+
+
116
+
<3> Replace `<base64_of_uid>` with the base64 string of the user name.
117
+
+
118
+
<4> Replace `<base64_of_pwd>` with the base64 string of the password.
119
+
+
120
+
<5> Replace `<nic1_mac_address>` with the MAC address of the bare metal node's first NIC. See the "BMC addressing" section for additional BMC configuration options.
121
+
+
122
+
<6> Replace `<protocol>` with the BMC protocol, such as IPMI, RedFish, or others. Replace `<bmc_url>` with the URL of the bare metal node's baseboard management controller.
123
+
+
124
+
<7> To skip certificate validation, set `disableCertificateVerification` to true.
125
+
+
126
+
<8> Replace `<bmc_username>` with the string of the BMC user name.
127
+
+
128
+
<9> Replace `<bmc_password>` with the string of the BMC password.
129
+
+
130
+
<10> Optional: Replace `<root_device_hint>` with a device path if you specify a root device hint.
131
+
+
132
+
<11> Optional: If you have configured the network interface for the newly created node, provide the network configuration secret name in the `preprovisioningNetworkDataName` of the BareMetalHost CR.
118
133
+
119
134
[NOTE]
120
135
====
121
136
If the MAC address of an existing bare metal node matches the MAC address of a bare metal host that you are attempting to provision, then the Ironic installation will fail. If the host enrollment, inspection, cleaning, or other Ironic steps fail, the Bare Metal Operator retries the installation continuously. See "Diagnosing a host duplicate MAC address" for more information.
122
137
====
123
138
124
-
. Create the bare metal node.
139
+
. Create the bare metal node:
125
140
+
126
141
[source,terminal]
127
142
----
@@ -138,7 +153,7 @@ baremetalhost.metal3.io/openshift-worker-<num> created
0 commit comments