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
Replace `<host_name>` with the name of the host and `<machine_name>` with the name of the machine. The machine name appears under the `CONSUMER` field.
52
54
+
53
-
After you remove the `BareMetalHost` and `Machine` objects, then the `Machine` controller automatically deletes the `Node` object.
55
+
After you remove the `BareMetalHost` and `Machine` objects, then the machine controller automatically deletes the `Node` object.
54
56
55
57
. Create the new `BareMetalHost` object and the secret to store the BMC credentials:
<1> Replace `<num>` for the control plane number of the bare metal node in the `name` fields and the `credentialsName` field.
90
+
<2> Replace `<base64_of_uid>` with the `base64` string of the user name.
91
+
<3> Replace `<base64_of_pwd>` with the `base64` string of the password.
92
+
<4> Replace `<protocol>` with the BMC protocol, such as `redfish`, `redfish-virtualmedia`, `idrac-virtualmedia`, or others. Replace `<bmc_ip>` with the IP address of the bare metal node's baseboard management controller. For additional BMC configuration options, see "BMC addressing" in the _Additional resources_ section.
93
+
<5> Replace `<NIC1_mac_address>` with the MAC address of the bare metal node's first NIC.
87
94
+
88
95
After the inspection is complete, the `BareMetalHost` object is created and available to be provisioned.
89
96
@@ -97,12 +104,12 @@ $ oc get bmh -n openshift-machine-api
97
104
.Example output
98
105
[source,terminal]
99
106
----
100
-
NAME STATE CONSUMER ONLINE ERROR AGE
101
-
kni1-master-0 available ocp-hkw9p-master-0 true 1h10m
There are no `MachineSet` objects for control plane nodes, so you must create a `Machine` object instead. You can copy the `providerSpec` from another control plane `Machine` object.
. To define and create the `BareMetalHost`, `Secret`, and `Machine` objects in a single step, create a YAML file (`example.yaml`) with their definitions and run the following command:
146
-
+
147
-
[source,terminal]
148
-
----
149
-
$ oc create -f example.yaml
150
-
----
151
-
+
152
-
The provisioning process uses the baremetal-operator to install RHCOS and prepare the host to be added to the cluster.
151
+
<1> Replace `<num>` for the control plane number of the bare metal node in the `name`, `labels` and `annotations` fields.
153
152
+
154
153
. To view the `BareMetalHost` objects, run the following command:
. After the RHCOS installation, verify that the `BareMetalHost` is added to the cluster:
@@ -179,14 +178,15 @@ $ oc get nodes
179
178
.Example output
180
179
[source,terminal]
181
180
----
182
-
NAME STATUS ROLES AGE VERSION
183
-
kni1-master-0 available master 4m2s v1.18.2
184
-
kni1-master-1 available master 141m v1.18.2
185
-
kni1-master-2 available master 141m v1.18.2
186
-
kni1-worker-0 available worker 87m v1.18.2
181
+
NAME STATUS ROLES AGE VERSION
182
+
control-plane-1.example.com available master 4m2s v1.18.2
183
+
control-plane-2.example.com available master 141m v1.18.2
184
+
control-plane-3.example.com available master 141m v1.18.2
185
+
compute-1.example.com available worker 87m v1.18.2
186
+
compute-2.example.com available worker 87m v1.18.2
187
187
----
188
188
+
189
189
[NOTE]
190
190
====
191
-
After replacement of the new control plane node, the etcd pod running in the new node is in `crashloopback` status. See "Replacing an unhealthy etcd member" for more information.
191
+
After replacement of the new control plane node, the etcd pod running in the new node is in `crashloopback` status. See "Replacing an unhealthy etcd member" in the _Additional resources_ section for more information.
0 commit comments