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
In {product-title}{product-version}, you can install a cluster on
10
-
bare metal infrastructure that you provision.
9
+
In {product-title}{product-version}, you can install a cluster on bare-metal infrastructure that you provision.
11
10
12
11
[IMPORTANT]
13
12
====
14
-
While you might be able to follow this procedure to deploy a cluster on
15
-
virtualized or cloud environments, you must be aware of additional
16
-
considerations for non-bare metal platforms. Review the information in the
17
-
link:https://access.redhat.com/articles/4207611[guidelines for deploying {product-title} on non-tested platforms]
18
-
before you attempt to install an {product-title} cluster in such an environment.
13
+
While you might be able to follow this procedure to deploy a cluster on virtualized or cloud environments, you must be aware of additional
14
+
considerations for non-bare-metal platforms. Review the information in the link:https://access.redhat.com/articles/4207611[guidelines for deploying {product-title} on non-tested platforms] before you attempt to install an {product-title} cluster in such an environment.
19
15
====
20
16
21
17
== Prerequisites
@@ -29,6 +25,7 @@ before you attempt to install an {product-title} cluster in such an environment.
29
25
Be sure to also review this site list if you are configuring a proxy.
30
26
====
31
27
28
+
// Internet access for OpenShift Container Platform
* xref:../../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#installation-user-provisioned-validating-dns_installing-bare-metal[Validating DNS resolution for user-provisioned infrastructure]
88
87
88
+
// Load balancing requirements for user-provisioned infrastructure
* xref:../../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#installation-user-provisioned-validating-dns_installing-bare-metal[Validating DNS resolution for user-provisioned infrastructure]
119
120
* xref:../../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#installation-load-balancing-user-infra_installing-bare-metal[Load balancing requirements for user-provisioned infrastructure]
120
121
122
+
// Validating DNS resolution for user-provisioned infrastructure
* xref:../../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#installation-dns-user-infra_installing-bare-metal[User-provisioned DNS requirements]
127
129
* xref:../../../installing/installing_bare_metal/upi/installing-bare-metal.adoc#installation-load-balancing-user-infra_installing-bare-metal[Load balancing requirements for user-provisioned infrastructure]
128
130
131
+
// Generating a key pair for cluster node SSH access
* xref:../../../installing/installing_bare_metal/upi/installation-config-parameters-bare-metal.adoc#installation-config-parameters-bare-metal[Installation configuration parameters for bare metal]
Copy file name to clipboardExpand all lines: modules/creating-manifest-file-customized-br-ex-bridge.adoc
+56-44Lines changed: 56 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,9 @@ As an alternative to using the `configure-ovs.sh` shell script to set a `br-ex`
19
19
endif::postinstall-bare-metal[]
20
20
21
21
ifdef::postinstall-bare-metal[]
22
-
As an alternative to using the `configure-ovs.sh` shell script to set a `br-ex` bridge on a bare-metal platform, you can create a `NodeNetworkConfigurationPolicy` (NNCP) custom resource (CR) that includes an NMState configuration file. The Kubernetes NMState Operator uses the NMState configuration file to create a customized `br-ex` bridge network configuration on each node in your cluster.
22
+
As an alternative to using the `configure-ovs.sh` shell script to set a `br-ex` bridge on a bare-metal platform, you can create a `NodeNetworkConfigurationPolicy` (NNCP) custom resource (CR) that includes an NMState configuration file.
23
+
24
+
The Kubernetes NMState Operator uses the NMState configuration file to create a customized `br-ex` bridge network configuration on each node in your cluster.
<3> The requested state for the interface after creation.
129
-
<4> Disables IPv4 and IPv6 in this example.
130
-
<5> The node NIC to which the bridge attaches.
131
-
<6> Set the parameter to `48` to ensure the `br-ex` default route always has the highest precedence (lowest metric). This configuration prevents routing conflicts with any other interfaces that are automatically configured by the `NetworkManager` service.
128
+
+
129
+
where:
130
+
+
131
+
`interfaces.name`:: Name of the interface.
132
+
`interfaces.type`:: The type of ethernet.
133
+
`interfaces.state`:: The requested state for the interface after creation.
134
+
`ipv4.enabled`:: Disables IPv4 and IPv6 in this example.
135
+
`port.name`:: The node NIC to which the bridge attaches.
136
+
`auto-route-metric`:: Set the parameter to `48` to ensure the `br-ex` default route always has the highest precedence (lowest metric). This configuration prevents routing conflicts with any other interfaces that are automatically configured by the `NetworkManager` service.
132
137
133
138
. Use the `cat` command to base64-encode the contents of the NMState configuration:
134
139
+
135
140
[source,terminal]
136
141
----
137
-
$ cat <nmstate_configuration>.yaml | base64 <1>
142
+
$ cat <nmstate_configuration>.yml | base64
138
143
----
139
-
<1> Replace `<nmstate_configuration>` with the name of your NMState resource YAML file.
144
+
+
145
+
where:
146
+
+
147
+
`<nmstate_configuration>`:: Replace `<nmstate_configuration>` with the name of your NMState resource YAML file.
140
148
141
149
. Create a `MachineConfig` manifest file and define a customized `br-ex` bridge network configuration analogous to the following example:
<2> Writes the encoded base64 information to the specified path.
171
-
<3> For each node in your cluster, specify the hostname path to your node and the base-64 encoded Ignition configuration file data for the machine type. The `worker` role is the default role for nodes in your cluster. The `.yaml` extension does not work when specifying the short hostname, `hostname -s`, path for each node or all nodes in the `MachineConfig` manifest file.
177
+
+
178
+
where:
179
+
+
180
+
`metadata.name`:: The name of the policy.
181
+
`contents.source`:: Writes the encoded base64 information to the specified path.
182
+
`path`:: For each node in your cluster, specify the hostname path to your node and the base-64 encoded Ignition configuration file data for the machine type. The `worker` role is the default role for nodes in your cluster. You must use the `.yml` extension for configuration files, such as `$(hostname -s).yml` when specifying the short hostname path for each node or all nodes in the `MachineConfig` manifest file.
172
183
+
173
184
If you have a single global configuration specified in an `/etc/nmstate/openshift/cluster.yml` configuration file that you want to apply to all nodes in your cluster, you do not need to specify the short hostname path for each node, such as `/etc/nmstate/openshift/<node_hostname>.yml`. For example:
* Create a `NodeNetworkConfigurationPolicy` (NNCP) CR and define a customized `br-ex` bridge network configuration. Depending on your needs, ensure that you set a masquerade IP for either the `ipv4.address.ip`, `ipv6.address.ip`, or both parameters. Always include a masquerade IP address in the NNCP CR and this address must match an in-use IP address block.
206
+
* Create a `NodeNetworkConfigurationPolicy` (NNCP) CR and define a customized `br-ex` bridge network configuration. The `br-ex` NNCP CR must include the OVN-Kubernetes masquerade IP address and subnet of your network. The example NNCP CR includes default values in the `ipv4.address.ip` and `ipv6.address.ip`parameters. You can set the masquerade IP address in the `ipv4.address.ip`, `ipv6.address.ip`, or both parameters.
196
207
+
197
208
[IMPORTANT]
198
209
====
199
-
As a post-installation task, you can configure most parameters for a customized `br-ex` bridge that you defined in an existing NNCP CR, except for the primary IP address of the customized `br-ex` bridge.
200
-
201
-
If you want to convert your single-stack cluster network to a dual-stack cluster network, you can add or change a secondary IPv6 address in the NNCP CR, but the existing primary IP address cannot be changed.
210
+
As a post-installation task, you cannot change the primary IP address of the customized `br-ex` bridge. If you want to convert your single-stack cluster network to a dual-stack cluster network, you can add or change a secondary IPv6 address in the NNCP CR, but the existing primary IP address cannot be changed.
202
211
====
203
212
+
204
-
.Example of an NNCP CR that sets IPv6 and IPv4 masquerade IP addresses
205
213
[source,yaml]
206
214
----
207
215
apiVersion: nmstate.io/v1
208
216
kind: NodeNetworkConfigurationPolicy
209
217
metadata:
210
-
name: worker-0-br-ex <1>
218
+
name: worker-0-br-ex
211
219
spec:
212
220
nodeSelector:
213
221
kubernetes.io/hostname: worker-0
214
222
desiredState:
215
223
interfaces:
216
-
- name: enp2s0 <2>
217
-
type: ethernet <3>
218
-
state: up <4>
224
+
- name: enp2s0
225
+
type: ethernet
226
+
state: up
219
227
ipv4:
220
-
enabled: false <5>
228
+
enabled: false
221
229
ipv6:
222
230
enabled: false
223
231
- name: br-ex
@@ -233,7 +241,7 @@ spec:
233
241
options:
234
242
mcast-snooping-enable: true
235
243
port:
236
-
- name: enp2s0 <6>
244
+
- name: enp2s0
237
245
- name: br-ex
238
246
- name: br-ex
239
247
type: ovs-interface
@@ -242,26 +250,30 @@ spec:
242
250
ipv4:
243
251
enabled: true
244
252
dhcp: true
245
-
auto-route-metric: 48 <7>
253
+
auto-route-metric: 48
246
254
address:
247
-
- ip: "169.254.169.2"
248
-
prefix-length: 29
255
+
- ip: "169.254.0.2"
256
+
prefix-length: 17
249
257
ipv6:
250
258
enabled: true
251
259
dhcp: true
252
260
auto-route-metric: 48
253
261
address:
254
262
- ip: "fd69::2"
255
-
prefix-length: 125
263
+
prefix-length: 112
256
264
# ...
257
265
----
258
-
<1> Name of the policy.
259
-
<2> Name of the interface.
260
-
<3> The type of ethernet.
261
-
<4> The requested state for the interface after creation.
262
-
<5> Disables IPv4 and IPv6 in this example.
263
-
<6> The node NIC to which the bridge is attached.
264
-
<7> Set the parameter to `48` to ensure the `br-ex` default route always has the highest precedence (lowest metric). This configuration prevents routing conflicts with any other interfaces that are automatically configured by the `NetworkManager` service.
266
+
+
267
+
where:
268
+
+
269
+
`metadata.name`:: Name of the policy.
270
+
`interfaces.name`:: Name of the interface.
271
+
`interfaces.type`:: The type of ethernet.
272
+
`interfaces.state`:: The requested state for the interface after creation.
273
+
`ipv4.enabled`:: Disables IPv4 and IPv6 in this example.
274
+
`port.name`:: The node NIC to which the bridge is attached.
275
+
`address.ip`:: Shows the default IPv4 and IPv6 IP addresses. Ensure that you set the masquerade IPv4 and IPv6 IP addresses of your network.
276
+
`auto-route-metric`:: Set the parameter to `48` to ensure the `br-ex` default route always has the highest precedence (lowest metric). This configuration prevents routing conflicts with any other interfaces that are automatically configured by the `NetworkManager` service.
Copy file name to clipboardExpand all lines: modules/ipi-install-additional-install-config-parameters.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -136,7 +136,7 @@ a| `provisioningNetworkInterface` | | The name of the network interface on node
136
136
137
137
| `apiVIPs` | a| (Optional) The virtual IP address for Kubernetes API communication.
138
138
139
-
You must either provide this setting in the `install-config.yaml` file as a reserved IP from the `MachineNetwork` parameter or preconfigured in the DNS so that the default name resolves correctly. Use the virtual IP address and not the FQDN when adding a value to the `apiVIPs` configuration setting in the `install-config.yaml` file. The primary IP address must be from the IPv4 network when using dual stack networking. If not set, the installation program uses `api.<cluster_name>.<base_domain>` to derive the IP address from the DNS.
139
+
You must either provide this setting in the `install-config.yaml` file as a reserved IP from the `MachineNetwork` parameter or preconfigured in the DNS so that the default name resolves correctly. Use the virtual IP address and not the FQDN when adding a value to the `apiVIPs` configuration setting in the `install-config.yaml` file. For dual-stack networking, the primary IP address can be either an IPv4 network or an IPv6 network. If not set, the installation program uses `api.<cluster_name>.<base_domain>` to derive the IP address from the DNS.
140
140
141
141
[NOTE]
142
142
====
@@ -148,7 +148,7 @@ Before {product-title} 4.12, the cluster installation program only accepted an I
148
148
149
149
| `ingressVIPs` | a| (Optional) The virtual IP address for ingress traffic.
150
150
151
-
You must either provide this setting in the `install-config.yaml` file as a reserved IP from the `MachineNetwork` parameter or preconfigured in the DNS so that the default name resolves correctly. Use the virtual IP address and not the FQDN when adding a value to the `ingressVIPs` configuration setting in the `install-config.yaml` file. The primary IP address must be from the IPv4 network when using dual stack networking. If not set, the installation program uses `test.apps.<cluster_name>.<base_domain>` to derive the IP address from the DNS.
151
+
You must either provide this setting in the `install-config.yaml` file as a reserved IP from the `MachineNetwork` parameter or preconfigured in the DNS so that the default name resolves correctly. Use the virtual IP address and not the FQDN when adding a value to the `ingressVIPs` configuration setting in the `install-config.yaml` file. For dual-stack networking, the primary IP address can be either an IPv4 network or an IPv6 network. If not set, the installation program uses `test.apps.<cluster_name>.<base_domain>` to derive the IP address from the DNS.
Copy file name to clipboardExpand all lines: networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ For more information about how to install the NMState Operator, see xref:../../n
13
13
14
14
[IMPORTANT]
15
15
====
16
-
You cannot provide any configuration that modifies the br-ex bridge, an OVN-Kubernetes-managed Open vSwitch bridge. However, you can configure a customized br-ex bridge.
16
+
You cannot modify an existing `br-ex` bridge, an OVN-Kubernetes-managed Open vSwitch bridge, or any interfaces, bonds, VLANs, and so on that associate with the `br-ex` bridge. However, you can configure a customized br-ex bridge.
17
17
18
18
For more information, see "Creating a manifest object that includes a customized br-ex bridge" in the _Deploying installer-provisioned clusters on bare metal_ document or the _Installing a user-provisioned cluster on bare metal_ document.
0 commit comments