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
Copy file name to clipboardExpand all lines: modules/ztp-configuring-a-static-ip.adoc
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,34 +35,34 @@ spec:
35
35
- name: eth0
36
36
type: ethernet
37
37
state: up
38
-
mac-address: <mac-address> <1>
39
38
ipv4:
40
39
enabled: true
41
40
address:
42
-
- ip: <ip-address> <2>
43
-
prefix-length: <public-network-prefix> <3>
41
+
- ip: <ip-address> <1>
42
+
prefix-length: <public-network-prefix> <2>
44
43
dhcp: false
45
44
dns-resolver:
46
45
config:
47
46
server:
48
-
- <dns-resolver> <4>
47
+
- <dns-resolver> <3>
49
48
routes:
50
49
config:
51
50
- destination: 0.0.0.0/0
52
-
next-hop-address: <gateway> <5>
51
+
next-hop-address: <gateway> <4>
53
52
next-hop-interface: eth0
54
53
table-id: 254
55
54
interfaces:
56
-
- name: "eth0" <6>
57
-
macAddress: <mac-address> <7>
55
+
- name: "eth0" <5>
56
+
macAddress: <mac-address> <6>
58
57
----
59
-
<1> `mac-address` is the MAC address of the target bare metal machine, that is, the same MAC address used in the `BareMetalHost` resource.
60
-
<2> `ip-address` is the static IP address of the target bare metal machine.
61
-
<3> `public-network-prefix` is the static IP address’s subnet for the target bare metal machine.
62
-
<4> `dns-resolver` is the DNS server for the target bare metal machine.
63
-
<5> `gateway` is the gateway for the target bare metal machine.
64
-
<6> `name` must match the name specified in the `interfaces` section.
65
-
<7> `mac-address` must match the MAC address specified in the `interfaces` section.
58
+
<1> `ip-address` is the static IP address of the target bare metal machine.
59
+
<2> `public-network-prefix` is the static IP address’s subnet prefix for the target bare metal machine.
60
+
<3> `dns-resolver` is the DNS server for the target bare metal machine.
61
+
<4> `gateway` is the gateway for the target bare metal machine.
62
+
<5> `name` must match the name specified in the `interfaces` section.
63
+
<6> `mac-address` is the mac address of the interface.
64
+
65
+
. When creating the `BareMetalHost` custom resource, ensure that one of its mac addresses matches a mac address in the `NMStateConfig` target bare metal machine.
66
66
67
67
. When creating the `InfraEnv` custom resource, reference the label from the `NMStateConfig` custom resource in the `InfraEnv` custom resource:
Copy file name to clipboardExpand all lines: modules/ztp-creating-siteconfig-custom-resources.adoc
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,21 +137,23 @@ spec:
137
137
name: <cluster-image-set> <1>
138
138
networking:
139
139
clusterNetwork:
140
-
- cidr: 10.128.0.0/14
140
+
- cidr: <cluster-network-cidr> <2>
141
141
hostPrefix: 23
142
142
machineNetwork:
143
-
- cidr: <machine-network-cidr> <2>
143
+
- cidr: <machine-network-cidr> <3>
144
144
serviceNetwork:
145
-
- 172.30.0.0/16
145
+
- <service-network-cidr> <4>
146
146
provisionRequirements:
147
147
controlPlaneAgents: 1
148
148
workerAgents: 0
149
-
sshPublicKey: <public-key> <3>
149
+
sshPublicKey: <public-key> <5>
150
150
----
151
151
+
152
-
<1> `cluster-image-set` is the name of the ClusterImageSet custom resource used to install {product-title} on the DU.
153
-
<2> `machine-network-cidr` is the target bare metal machine’s CIDR.
154
-
<3> `public-key` entered as plain text can be used to SSH into the target bare metal machine after the host is installed.
152
+
<1> `cluster-image-set` is the name of the ClusterImageSet custom resource used to install {product-title} on the bare metal machine.
153
+
<2> `cluster-network-cidr` is a block of IPv4 or IPv6 addresses in CIDR notation used for communication among cluster nodes.
154
+
<3> `machine-network-cidr` is a block of IPv4 or IPv6 addresses in CIDR notation used for the target bare metal server external communication. Also used to determine the API and Ingress VIP addresses when provisioning DU single node clusters.
155
+
<4> `service-network-cidr` is a block of IPv4 or IPv6 addresses in CIDR notation used for cluster services internal communication.
156
+
<5> `public-key` entered as plain text can be used to SSH into the node after it is installed.
155
157
+
156
158
[NOTE]
157
159
====
@@ -273,7 +275,7 @@ spec:
273
275
automatedCleaningMode: disabled
274
276
online: true
275
277
----
276
-
<1> `bmc-address` is the baseboard address of the target bare metal machine.
278
+
<1> `bmc-address` is the baseboard management console address of the installation ISO on the target bare metal machine.
277
279
<2> `mac-address` is the target bare metal machine’s MAC address.
278
280
+
279
281
Optionally, you can add `bmac.agent-install.openshift.io/hostname: <host-name>` as an annotation to set the managed cluster’s hostname, otherwise it will default to either a hostname from the DHCP server or local host.
0 commit comments