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
@@ -227,7 +228,7 @@ access between OpenStack KVM hypervisors and the cluster nodes.
227
228
To enable this feature, you must add the `hw_qemu_guest_agent=yes` property to the image:
228
229
229
230
```
230
-
$ openstack image "rhcos-${CLUSTER_NAME}" set --property hw_qemu_guest_agent=yes
231
+
$ openstack image set --property hw_qemu_guest_agent=yes "rhcos-${CLUSTER_NAME}"
231
232
```
232
233
233
234
Finally validate that the image was successfully created:
@@ -269,6 +270,19 @@ api.openshift.example.com. A 203.0.113.23
269
270
270
271
They will need to be available to your developers, end users as well as the OpenShift installer process later in this guide.
271
272
273
+
## Create network, API and ingress ports
274
+
275
+
Please note that value of the API and Ingress VIPs fields will be overwritten in the `inventory.yaml` with the respective addresses assigned to the Ports. Run the following playbook to create necessary resources:
276
+
277
+
<!--- e2e-openstack-upi: INCLUDE START --->
278
+
```sh
279
+
$ ansible-playbook -i inventory.yaml network.yaml
280
+
```
281
+
<!--- e2e-openstack-upi: INCLUDE END --->
282
+
283
+
> **Note**
284
+
> These OpenStack resources will be deleted by the `down-network.yaml` playbook.
285
+
272
286
## Install Config
273
287
274
288
Run the `create install-config` subcommand and fill in the desired entries:
@@ -304,76 +318,51 @@ $ tree
304
318
```
305
319
306
320
### Configure the machineNetwork.CIDR apiVIP and ingressVIP
321
+
307
322
The `machineNetwork` represents the OpenStack network which will be used to connect all the OpenShift cluster nodes.
308
323
The `machineNetwork.CIDR` defines the IP range, in CIDR notation, from which the installer will choose what IP addresses
309
-
to assign the nodes. The `apiVIP` and `ingressVIP` are the IP addresses the installer will assign to the cluster API and
324
+
to assign the nodes. The `apiVIPs` and `ingressVIPs` are the IP addresses the installer will assign to the cluster API and
310
325
ingress VIPs, respectively.
311
-
In the previous steps, the installer added default values for the `machineNetwork.CIDR`, and then it picked the
312
-
5th and 7th IP addresses from that range to assign to `apiVIP` and `ingressVIP`.
313
-
`machineNetwork.CIDR` needs to match the IP range specified by `os_subnet_range` in the `inventory.yaml` file.
314
-
315
-
When the installer creates the manifest files from an existing `install-config.yaml` file, it validates that the
316
-
`apiVIP` and `ingressVIP` fall within the IP range specified by `machineNetwork.CIDR`. If they do not, it errors out.
317
-
If you change the value of `machineNetwork.CIDR` you must make sure the `apiVIP` and `ingressVIP` values still fall within
318
-
the new range. There are two options for setting the `apiVIP` and `ingressVIP`. If you know the values you want to use,
319
-
you can specify them in the `install-config.yaml` file. If you want the installer to pick the 5th and 7th IP addresses in the
320
-
new range, you need to remove the `apiVIP` and `ingressVIP` entries from the `install-config.yaml` file.
321
326
322
-
To illustrate the process, we will use '192.0.2.0/24' as an example. It defines a usable IP range from
323
-
192.0.2.1 to 192.0.2.254. There are some IP addresses that should be avoided because they are usually taken up or
324
-
reserved. For example, the first address (.1) is usually assigned to a router. The DHCP and DNS servers will use a few
325
-
more addresses, usually .2, .3, .11 and .12. The actual addresses used by these services depend on the configuration of
326
-
the OpenStack deployment in use. You should check your OpenStack deployment.
327
+
In the previous step, ansible playbook added default values for the
328
+
`machineNetwork.CIDR`, and then it assigned selected by Neutron IP addresses for
329
+
`apiVIPs` and `ingressVIPs`to appropriate fields inventory file - os_ingressVIP
330
+
and os_apiVIP for single stack installation, and additionally os_ingressVIP6 and
331
+
os_apiVIP6 for dualstack out of `machineNetwork.CIDR`.
327
332
333
+
Following script will fill into `intall-config.yaml` the value for `machineNetwork`, `apiVIPs`, `ingressVIPs`, `controlPlanePort`
334
+
for single-stack and dual-stack and `networkType`, `clusterNetwork` and `serviceNetwork` only for dual-stack, using `inventory.yaml`
335
+
values:
328
336
329
-
The following script modifies the value of `machineNetwork.CIDR` in the `install-config.yaml` file to match the `os_subnet_range` defined in `inventory.yaml`.
By default the `networkType` is set to `OVNKubernetes` on the `install-config.yaml`.
400
389
401
-
If an installation with OpenShift SDN is desired, you must modify the `networkType` field.
390
+
If an installation with OpenShift SDN is desired, you must modify the `networkType` field. Note, that dual-stack only supports `OVNKubernetes` network type.
402
391
403
392
This command will do it for you:
404
393
@@ -689,12 +678,12 @@ Create a file called `$INFRA_ID-bootstrap-ignition.json` (fill in your `infraID`
The playbook creates one Security group for the Control Plane and one for the Compute nodes, then attaches rules for enabling communication between the nodes.
The playbook creates a network and a subnet. The subnet obeys `os_subnet_range`; however the first ten IP addresses are removed from the allocation pool. These addresses will be used for the VRRP addresses managed by keepalived for high availability. For more information, read the [networking infrastructure design document][net-infra].
832
-
833
-
Outside connectivity will be provided by attaching the floating IP addresses (IPs in the inventory) to the corresponding routers.
The playbook sets tags to network, subnets, ports and router. It also attaches the floating IP to the API and Ingress ports and set the security group on those ports.
0 commit comments