Skip to content

Commit 85e1a6c

Browse files
authored
Merge pull request #32632 from maxwelldb/osp-provider-networks-osdocs1877
[ShiftStack: OSDOCS-1877] Add provider network installation docs
2 parents 180de7a + eb3e26a commit 85e1a6c

10 files changed

+177
-6
lines changed
110 KB
Loading

installing/installing_openstack/installing-openstack-installer-custom.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ In {product-title} version {product-version}, you can install a customized clust
1313
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
1414
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
1515
* You verified that {product-title} {product-version} is compatible with your {rh-openstack} version by using the xref:../../architecture/architecture-installation.adoc#supported-platforms-for-openshift-clusters_architecture-installation[Supported platforms for OpenShift clusters] section. You can also compare platform support across different versions by viewing the link:https://access.redhat.com/articles/4679401[{product-title} on {rh-openstack} support matrix].
16-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
1716
* You have a storage service installed in {rh-openstack}, such as block storage (Cinder) or object storage (Swift). Object storage is the recommended storage technology for {product-title} registry cluster deployment. For more information, see xref:../../scalability_and_performance/optimizing-storage.adoc#optimizing-storage[Optimizing storage].
1817
* You have the metadata service enabled in {rh-openstack}.
1918

@@ -30,6 +29,17 @@ include::modules/installation-configure-proxy.adoc[leveloffset=+2]
3029
include::modules/installation-configuration-parameters.adoc[leveloffset=+1]
3130
include::modules/installation-osp-custom-subnet.adoc[leveloffset=+2]
3231
include::modules/installation-osp-deploying-bare-metal-machines.adoc[leveloffset=+2]
32+
include::modules/installation-osp-provider-networks.adoc[leveloffset=+2]
33+
include::modules/installation-osp-provider-network-preparation.adoc[leveloffset=+3]
34+
include::modules/installation-osp-deploying-provider-networks-installer.adoc[leveloffset=+3]
35+
36+
[TIP]
37+
====
38+
You can add additional networks, including provider networks, to the `platform.openstack.additionalNetworkIDs` list.
39+
40+
After you deploy your cluster, you can attach pods to additional networks. For more information, see xref:../../networking/multiple_networks/understanding-multiple-networks.adoc#understanding-multiple-networks[Understanding multiple networks].
41+
====
42+
3343
include::modules/installation-osp-config-yaml.adoc[leveloffset=+2]
3444
include::modules/ssh-agent-using.adoc[leveloffset=+1]
3545
include::modules/installation-osp-accessing-api.adoc[leveloffset=+1]

installing/installing_openstack/installing-openstack-installer-kuryr.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ In {product-title} version {product-version}, you can install a customized clust
1313
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
1414
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
1515
* You verified that {product-title} {product-version} is compatible with your {rh-openstack} version by using the xref:../../architecture/architecture-installation.adoc#supported-platforms-for-openshift-clusters_architecture-installation[Supported platforms for OpenShift clusters] section. You can also compare platform support across different versions by viewing the link:https://access.redhat.com/articles/4679401[{product-title} on {rh-openstack} support matrix].
16-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
1716
* You have a storage service installed in {rh-openstack}, such as block storage (Cinder) or object storage (Swift). Object storage is the recommended storage technology for {product-title} registry cluster deployment. For more information, see xref:../../scalability_and_performance/optimizing-storage.adoc#optimizing-storage[Optimizing storage].
1817

1918
include::modules/installation-osp-about-kuryr.adoc[leveloffset=+1]
@@ -37,6 +36,17 @@ include::modules/installation-configure-proxy.adoc[leveloffset=+2]
3736
include::modules/installation-configuration-parameters.adoc[leveloffset=+1]
3837
include::modules/installation-osp-custom-subnet.adoc[leveloffset=+2]
3938
include::modules/installation-osp-kuryr-config-yaml.adoc[leveloffset=+2]
39+
include::modules/installation-osp-provider-networks.adoc[leveloffset=+2]
40+
include::modules/installation-osp-provider-network-preparation.adoc[leveloffset=+3]
41+
include::modules/installation-osp-deploying-provider-networks-installer.adoc[leveloffset=+3]
42+
43+
[TIP]
44+
====
45+
You can add additional networks, including provider networks, to the `platform.openstack.additionalNetworkIDs` list.
46+
47+
After you deploy your cluster, you can attach pods to additional networks. For more information, see xref:../../networking/multiple_networks/understanding-multiple-networks.adoc#understanding-multiple-networks[Understanding multiple networks].
48+
====
49+
4050
include::modules/ssh-agent-using.adoc[leveloffset=+1]
4151
include::modules/installation-osp-accessing-api.adoc[leveloffset=+1]
4252
include::modules/installation-osp-accessing-api-floating.adoc[leveloffset=+2]

installing/installing_openstack/installing-openstack-installer-restricted.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ In {product-title} {product-version}, you can install a cluster on
1919
====
2020
Because the installation media is on the mirror host, you can use that computer to complete all installation steps.
2121
====
22-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
2322
* You have the metadata service enabled in {rh-openstack}.
2423

2524
include::modules/installation-about-restricted-network.adoc[leveloffset=+1]

installing/installing_openstack/installing-openstack-installer.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ In {product-title} version {product-version}, you can install a cluster on
1212

1313
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
1414
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
15-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
1615
* On {rh-openstack}, you have access to an external network that does not overlap these CIDR ranges:
1716
** `10.0.0.0/16`
1817
** `172.30.0.0/16`

installing/installing_openstack/installing-openstack-user-kuryr.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Using your own infrastructure allows you to integrate your cluster with existing
1515
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
1616
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
1717
* You verified that {product-title} {product-version} is compatible with your {rh-openstack} version by using the xref:../../architecture/architecture-installation.adoc#supported-platforms-for-openshift-clusters_architecture-installation[Supported platforms for OpenShift clusters] section. You can also compare platform support across different versions by viewing the link:https://access.redhat.com/articles/4679401[{product-title} on {rh-openstack} support matrix].
18-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
1918
* You have an {rh-openstack} account where you want to install {product-title}.
2019
* On the machine from which you run the installation program, you have:
2120
** A single directory in which you can keep the files you create during the installation process
@@ -45,6 +44,17 @@ include::modules/installation-initializing.adoc[leveloffset=+1]
4544
include::modules/installation-configuration-parameters.adoc[leveloffset=+1]
4645
include::modules/installation-osp-custom-subnet.adoc[leveloffset=+2]
4746
include::modules/installation-osp-kuryr-config-yaml.adoc[leveloffset=+2]
47+
include::modules/installation-osp-provider-networks.adoc[leveloffset=+2]
48+
include::modules/installation-osp-provider-network-preparation.adoc[leveloffset=+3]
49+
include::modules/installation-osp-deploying-provider-networks-installer.adoc[leveloffset=+3]
50+
51+
[TIP]
52+
====
53+
You can add additional networks, including provider networks, to the `platform.openstack.additionalNetworkIDs` list.
54+
55+
After you deploy your cluster, you can attach pods to additional networks. For more information, see xref:../../networking/multiple_networks/understanding-multiple-networks.adoc#understanding-multiple-networks[Understanding multiple networks].
56+
====
57+
4858
include::modules/installation-osp-fixing-subnet.adoc[leveloffset=+2]
4959
include::modules/installation-osp-emptying-worker-pools.adoc[leveloffset=+2]
5060
include::modules/installation-osp-modifying-networktype.adoc[leveloffset=+2]

installing/installing_openstack/installing-openstack-user.adoc

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Using your own infrastructure allows you to integrate your cluster with existing
1515
* You reviewed details about the xref:../../architecture/architecture-installation.adoc#architecture-installation[{product-title} installation and update] processes.
1616
* You read the documentation on xref:../../installing/installing-preparing.adoc#installing-preparing[selecting a cluster installation method and preparing it for users].
1717
* You verified that {product-title} {product-version} is compatible with your {rh-openstack} version by using the xref:../../architecture/architecture-installation.adoc#supported-platforms-for-openshift-clusters_architecture-installation[Supported platforms for OpenShift clusters] section. You can also compare platform support across different versions by viewing the link:https://access.redhat.com/articles/4679401[{product-title} on {rh-openstack} support matrix].
18-
* Your network configuration does not rely on a provider network. Provider networks are not supported.
1918
* You have an {rh-openstack} account where you want to install {product-title}.
2019
* On the machine from which you run the installation program, you have:
2120
** A single directory in which you can keep the files you create during the installation process
@@ -42,6 +41,17 @@ include::modules/installation-osp-custom-subnet.adoc[leveloffset=+2]
4241
include::modules/installation-osp-config-yaml.adoc[leveloffset=+2]
4342
include::modules/installation-osp-fixing-subnet.adoc[leveloffset=+2]
4443
include::modules/installation-osp-emptying-worker-pools.adoc[leveloffset=+2]
44+
include::modules/installation-osp-provider-networks.adoc[leveloffset=+2]
45+
include::modules/installation-osp-provider-network-preparation.adoc[leveloffset=+3]
46+
include::modules/installation-osp-deploying-provider-networks-installer.adoc[leveloffset=+3]
47+
48+
[TIP]
49+
====
50+
You can add additional networks, including provider networks, to the `platform.openstack.additionalNetworkIDs` list.
51+
52+
After you deploy your cluster, you can attach pods to additional networks. For more information, see xref:../../networking/multiple_networks/understanding-multiple-networks.adoc#understanding-multiple-networks[Understanding multiple networks].
53+
====
54+
4555
include::modules/installation-user-infra-generate-k8s-manifest-ignition.adoc[leveloffset=+1]
4656
include::modules/installation-osp-converting-ignition-resources.adoc[leveloffset=+1]
4757
include::modules/installation-osp-creating-control-plane-ignition.adoc[leveloffset=+1]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
4+
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc
5+
// * installing/installing_openstack/installing-openstack-user-kuryr.adoc
6+
// * installing/installing_openstack/installing-openstack-user.adoc
7+
8+
[id="installation-osp-deploying-provider-networks-installer_{context}"]
9+
= Deploying a cluster that has a primary interface on a provider network
10+
11+
You can deploy an {product-title} cluster that has its primary network interface on an {rh-openstack-first} provider network.
12+
.Prerequisites
13+
14+
* Your {rh-openstack-first} deployment is configured as described by "{rh-openstack} provider network requirements for cluster installation".
15+
16+
.Procedure
17+
18+
. In a text editor, open the `install-config.yaml` file.
19+
. Set the value of the `platform.openstack.apiVIP` property to the IP address for the API VIP.
20+
. Set the value of the `platform.openstack.ingressVIP` property to the IP address for the Ingress VIP.
21+
. Set the value of the `platform.openstack.machinesSubnet` property to the UUID of the provider network subnet.
22+
. Set the value of the `networking.machineNetwork.cidr` property to the CIDR block of the provider network subnet.
23+
24+
[IMPORTANT]
25+
====
26+
The `platform.openstack.apiVIP` and `platform.openstack.ingressVIP` properties must both be unassigned IP addresses from the `networking.machineNetwork.cidr` block.
27+
====
28+
29+
.Section of an installation configuration file for a cluster that relies on a {rh-openstack} provider network
30+
[source,yaml]
31+
----
32+
...
33+
platform:
34+
openstack:
35+
apiVIP: 192.0.2.13
36+
ingressVIP: 192.0.2.23
37+
machinesSubnet: fa806b2f-ac49-4bce-b9db-124bc64209bf
38+
(...)
39+
networking:
40+
machineNetwork:
41+
- cidr: 192.0.2.0/24
42+
----
43+
44+
[WARNING]
45+
====
46+
You cannot set the `platform.openstack.externalNetwork` or `platform.openstack.externalDNS` parameters while using a provider network for the primary network interface.
47+
====
48+
49+
When you deploy the cluster, the installer uses the `install-config.yaml` file to deploy the cluster on the provider network.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
4+
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc
5+
// * installing/installing_openstack/installing-openstack-user-kuryr.adoc
6+
// * installing/installing_openstack/installing-openstack-user.adoc
7+
8+
[id="installation-osp-provider-network-preparation_{context}"]
9+
= {rh-openstack} provider network requirements for cluster installation
10+
11+
Before you install an {product-title} cluster, your {rh-openstack-first} deployment and provider network must meet a number of conditions:
12+
13+
* The link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/networking_guide/networking-concepts_networking-concepts#install-networking_networking-concepts[{rh-openstack} networking service (Neutron) is enabled] and accessible through the {rh-openstack} networking API.
14+
* The {rh-openstack} networking service has the link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/networking_guide/config-allowed-address-pairs_config-allowed-address-pairs#overview-allow-addr-pairs_config-allowed-address-pairs[port security and allowed address pairs extensions enabled].
15+
* The provider network can be shared with other tenants.
16+
+
17+
[TIP]
18+
====
19+
Use the `openstack network create` command with the `--share` flag to create a network that can be shared.
20+
====
21+
* The {rh-openstack} project that you use to install the cluster must own the provider network, as well as an appropriate subnet.
22+
+
23+
[TIP]
24+
====
25+
To create a network for a project that is named "openshift," enter the following command::
26+
[source,terminal]
27+
----
28+
$ openstack network create --project openshift
29+
----
30+
31+
To create a subnet for a project that is named "openshift," enter the following command::
32+
[source,terminal]
33+
----
34+
$ openstack subnet create --project openshift
35+
----
36+
37+
To learn more about creating networks on {rh-openstack}, read link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/networking_guide/networking-concepts_networking-concepts#tenant-provider-networks_networking-concepts[the provider networks documentation].
38+
====
39+
+
40+
If the cluster is owned by the `admin` user, you must run the installer as that user to create ports on the network.
41+
+
42+
[IMPORTANT]
43+
====
44+
Provider networks must be owned by the {rh-openstack} project that is used to create the cluster. If they are not, the {rh-openstack} Compute service (Nova) cannot request a port from that network.
45+
====
46+
47+
* Verify that the provider network can reach the {rh-openstack} metadata service IP address, which is `169.254.169.254` by default.
48+
+
49+
Depending on your {rh-openstack} SDN and networking service configuration, you might need to create provide the route when you create the subnet. For example:
50+
+
51+
[source,terminal]
52+
----
53+
$ openstack subnet create --dhcp --host-route destination=169.254.169.254/32,gateway=192.0.2.2 ...
54+
----
55+
56+
* Optional: To secure the network, create link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/networking_guide/config-rbac-policies_config-rbac-policies[role-based access control (RBAC)] rules that limit network access to a single project.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * installing/installing_openstack/installing-openstack-installer-custom.adoc
4+
// * installing/installing_openstack/installing-openstack-installer-kuryr.adoc
5+
// * installing/installing_openstack/installing-openstack-user-kuryr.adoc
6+
// * installing/installing_openstack/installing-openstack-user.adoc
7+
8+
[id="installation-osp-provider-networks_{context}"]
9+
= Cluster deployment on {rh-openstack} provider networks
10+
11+
You can deploy your {product-title} clusters on {rh-openstack-first} with a primary network interface on a provider network. Provider networks are commonly used to give projects direct access to a public network that can be used to reach the Internet. You can also share provider networks among projects as part of the network creation process.
12+
13+
{rh-openstack} provider networks map directly to an existing physical network in the data center. A {rh-openstack} administrator must create them.
14+
15+
In the following example, {product-title} workloads are connected to a data center by using a provider network:
16+
17+
image::openshift-on-openstack-provider-network.png[A diagram that depicts four OpenShift workloads on OpenStack. Each workload is connected by its NIC to an external data center by using a provider network.]
18+
19+
{product-title} clusters that are installed on provider networks do not require tenant networks or floating IP addresses. The installer does not create these resources during installation.
20+
21+
Example provider network types include flat (untagged) and VLAN (802.1Q tagged).
22+
23+
[NOTE]
24+
====
25+
A cluster can support as many provider network connections as the network type allows. For example, VLAN networks typically support up to 4096 connections.
26+
====
27+
28+
You can learn more about provider and tenant networks in link:https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html/networking_guide/networking-concepts_networking-concepts#provider-networks_networking-concepts[the {rh-openstack} documentation].

0 commit comments

Comments
 (0)