$ openstack network create radio --provider-physical-network radio --provider-network-type flat --external
Before you install a OKD cluster that uses single-root I/O virtualization (SR-IOV) or Open vSwitch with the Data Plane Development Kit (OVS-DPDK) on OpenStack or Red Hat OpenStack Services on OpenShift (RHOSO), you must understand the requirements for each technology and then perform preparatory tasks.
If you use SR-IOV or OVS-DPDK with your deployment, you must meet the following requirements:
OpenStack compute nodes must use a flavor that supports huge pages.
To use single-root I/O virtualization (SR-IOV) with your deployment, you must meet the following requirements:
If you use OpenStack, plan your OpenStack SR-IOV deployment.
If you use Red Hat OpenStack Services on OpenShift (RHOSO), plan your RHOSO SR-IOV deployment by referring to Deploying a network functions virtualization environment.
OKD must support the NICs that you use. For a list of supported NICs, see "About Single Root I/O Virtualization (SR-IOV) hardware networks" in the "Hardware networks" subsection of the "Networking" documentation.
For each node that will have an attached SR-IOV NIC, your OpenStack cluster must have:
One instance from the quota
One port attached to the machines subnet
One port for each SR-IOV Virtual Function
A flavor with at least 16 GB memory, 4 vCPUs, and 25 GB storage space
SR-IOV deployments often employ performance optimizations, such as dedicated or isolated CPUs. For maximum performance, configure your underlying OpenStack deployment to use these optimizations, and then run OKD compute machines on the optimized infrastructure.
If you use OpenStack, see Configuring CPUs on Compute nodes.
If you use RHOSO, see NFV performance considerations in Deploying a network functions virtualization environment.
To use Open vSwitch with the Data Plane Development Kit (OVS-DPDK) with your deployment, you must meet the following requirements:
If you use OpenStack:
Plan your OVS-DPDK deployment by referring to Planning your OVS-DPDK deployment in Configuring network functions virtualization.
Configure your OVS-DPDK deployment according to Configuring an OVS-DPDK deployment in Configuring network functions virtualization.
If you use Red Hat OpenStack Services on OpenShift (RHOSO):
Plan your OVS-DPDK deployment by referring to Planning an OVS-DPDK deployment in Deploying a network functions virtualization environment.
Configure your OVS-DPDK deployment according to Creating the data plane for SR-IOV and DPDK environments in Deploying a network functions virtualization environment.
You must configure your OpenStack platform before you install a cluster that uses SR-IOV on it.
If your OpenStack deployment supports single root I/O virtualization (SR-IOV), you can provision SR-IOV networks that compute machines run on.
|
The following instructions entail creating an external flat network and an external, VLAN-based network that can be attached to a compute machine. Depending on your OpenStack deployment, other network types might be required. |
Your cluster supports SR-IOV.
|
If you are unsure about what your cluster supports, review the OKD SR-IOV hardware networks documentation. |
You created radio and uplink provider networks as part of your OpenStack deployment. The names radio and uplink are used in all example commands to represent these networks.
On a command line, create a radio OpenStack network:
$ openstack network create radio --provider-physical-network radio --provider-network-type flat --external
Create an uplink OpenStack network:
$ openstack network create uplink --provider-physical-network uplink --provider-network-type vlan --external
Create a subnet for the radio network:
$ openstack subnet create --network radio --subnet-range <radio_network_subnet_range> radio
Create a subnet for the uplink network:
$ openstack subnet create --network uplink --subnet-range <uplink_network_subnet_range> uplink
You must configure your OpenStack platform before you install a cluster that uses OVS-DPDK on it.
If you use OpenStack, create a flavor and deploy an instance for OVS-DPDK before you install a cluster on OpenStack.
If you use Red Hat OpenStack Services on OpenShift (RHOSO), create a custom OVS-DPDK compute service before you install a cluster on RHOSO.
After you perform preinstallation tasks, install your cluster by following the most relevant OKD on OpenStack installation instructions. Then, perform the tasks under "Next steps" on this page.