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
* See xref:../../installing/installing_bare_metal/installing-restricted-networks-bare-metal.adoc#installation-three-node-cluster_installing-restricted-networks-bare-metal[Configuring a three-node cluster] to deploy three-node clusters in bare metal environments.
21
+
* See xref:../../installing/installing_with_agent_based_installer/preparing-to-install-with-agent-based-installer.adoc#root-device-hints_preparing-to-install-with-agent-based-installer[About root device hints].
22
+
* See link:https://nmstate.io/examples.html[NMState state examples].
The `rootDeviceHints` parameter enables the installer to provision the {op-system-first} image to a particular device. The installer examines the devices in the order it discovers them, and compares the discovered values with the hint values. The installer uses the first discovered device that matches the hint value. The configuration can combine multiple hints, but a device must match all hints for the installer to select it.
10
+
11
+
.Subfields
12
+
13
+
|===
14
+
| Subfield | Description
15
+
16
+
| `deviceName` | A string containing a Linux device name like `/dev/vda`. The hint must match the actual value exactly.
17
+
18
+
| `hctl` | A string containing a SCSI bus address like `0:0:0:0`. The hint must match the actual value exactly.
19
+
20
+
| `model` | A string containing a vendor-specific device identifier. The hint can be a substring of the actual value.
21
+
22
+
| `vendor` | A string containing the name of the vendor or manufacturer of the device. The hint can be a sub-string of the actual value.
23
+
24
+
| `serialNumber` | A string containing the device serial number. The hint must match the actual value exactly.
25
+
26
+
| `minSizeGigabytes` | An integer representing the minimum size of the device in gigabytes.
27
+
28
+
| `wwn` | A string containing the unique storage identifier. The hint must match the actual value exactly.
29
+
30
+
| `rotational` | A boolean indicating whether the device should be a rotating disk (true) or not (false).
Copy file name to clipboardExpand all lines: modules/installing-ocp-agent.adoc
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
[id="installing-ocp-agent_{context}"]
7
7
= Installing {product-title} with the Agent-based Installer
8
8
9
-
The following procedure deploys a single-node {product-title}. You can use this procedure as a basis and modify according to your requirements.
9
+
The following procedure deploys a single-node {product-title} in a disconnected environment. You can use this procedure as a basis and modify according to your requirements.
10
10
11
11
.Procedure
12
12
@@ -94,11 +94,13 @@ sshKey: |
94
94
name: sno-cluster
95
95
rendezvousIP: 192.168.111.80 <1>
96
96
hosts: <2>
97
-
- hostname: master-0
97
+
- hostname: master-0 <3>
98
98
interfaces:
99
99
- name: eno1
100
100
macAddress: 00:ef:44:21:e6:a5
101
-
networkConfig:
101
+
rootDeviceHints: <4>
102
+
deviceName: /dev/sdb
103
+
networkConfig: <5>
102
104
interfaces:
103
105
- name: eno1
104
106
type: ethernet
@@ -127,6 +129,10 @@ sshKey: |
127
129
You must provide the IP address when you do not specify the node's IP addresses in the `networkConfig` parameter. If this address is not provided, one IP address is selected from the provided nodes's `networkConfig`.
128
130
<2> The number of hosts defined must match the total number of hosts defined in the `install-config.yaml` file, which is the sum of the values of the `compute.replicas` and `controlPlane.replicas` parameters. When 3 master nodes and 0 worker nodes are defined in the `install-config.yaml` file,
129
131
the number of hosts defined is 3. When 3 master nodes and 2 worker nodes are defined in the `install-config.yaml` file, the number of hosts defined is 5.
132
+
<3> The optional `hostname` parameter overrides the hostname obtained from either the Dynamic Host Configuration Protocol (DHCP) or a reverse DNS lookup. Each host must have a unique hostname supplied by one of these methods.
133
+
<4> The `rootDeviceHints` parameter enables provisioning of the Red Hat Enterprise Linux CoreOS (RHCOS) image to a particular device. It examines the devices in the order it discovers them, and compares the discovered values with the hint values. It uses the first discovered device that matches the hint value.
134
+
<5> Set this optional parameter to configure the network interface of a host in NMState format.
135
+
130
136
131
137
+
132
138
. Create the Agent image by running the following command:
@@ -146,8 +152,10 @@ agent.iso auth
146
152
----
147
153
$ openshift-install agent create image
148
154
----
155
+
+
156
+
NOTE: Red Hat Enterprise Linux CoreOS (RHCOS) supports multipathing on the primary disk, allowing stronger resilience to hardware failure to achieve higher host availability. Multipathing is enabled by default in the `agent.iso` image, with a default `/etc/multipath.conf` configuration.
149
157
150
-
. Optional: To know when the bootstrap node (** Node 0 **) reboots, run the following command:
158
+
. Optional: To know when the bootstrap node (** node 0 **) reboots, run the following command:
151
159
152
160
+
153
161
[source,terminal]
@@ -168,8 +176,7 @@ INFO Waiting up to 30m0s for bootstrapping to complete...
168
176
INFO It is now safe to remove the bootstrap resources
169
177
----
170
178
+
171
-
The command succeeds when the Kubernetes API server signals that it has been
172
-
bootstrapped on the control plane machines.
179
+
The command succeeds when the Kubernetes API server signals that it has been bootstrapped on the control plane machines.
173
180
174
181
. Boot the `agent.iso` image on the bare metal machines. You can run the image on any Linux distribution.
175
182
@@ -191,5 +198,3 @@ INFO To access the cluster as the system:admin user when using 'oc', run
191
198
INFO export KUBECONFIG=/home/core/installer/auth/kubeconfig
192
199
INFO Access the OpenShift web-console here: https://console-openshift-console.apps.sno-cluster.test.example.com
0 commit comments