Installing the SR-IOV Network Operator
As a cluster administrator, you can install the SR-IOV Network Operator by using the OKD CLI or the web console.
As a cluster administrator, you can install the Operator using the CLI.
Prerequisites
A cluster installed on bare-metal hardware with nodes that have hardware that supports SR-IOV.
Install the OpenShift CLI ().
An account with
cluster-admin
privileges.
Procedure
To create the
openshift-sriov-network-operator
namespace, enter the following command:To create an OperatorGroup CR, enter the following command:
$ cat << EOF| oc create -f -
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: sriov-network-operators
namespace: openshift-sriov-network-operator
spec:
EOF
Subscribe to the SR-IOV Network Operator.
To create a Subscription CR for the SR-IOV Network Operator, enter the following command:
$ cat << EOF| oc create -f -
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: sriov-network-operator-subscription
namespace: openshift-sriov-network-operator
spec:
channel: "${OC_VERSION}"
source: redhat-operators
sourceNamespace: openshift-marketplace
To verify that the Operator is installed, enter the following command:
Example output
Name Phase
sriov-network-operator.4.13.0-202310121402 Succeeded
Web console: Installing the SR-IOV Network Operator
As a cluster administrator, you can install the Operator using the web console.
Prerequisites
A cluster installed on bare-metal hardware with nodes that have hardware that supports SR-IOV.
Install the OpenShift CLI (
oc
).An account with
cluster-admin
privileges.
Procedure
Install the SR-IOV Network Operator:
Select SR-IOV Network Operator from the list of available Operators, and then click Install.
On the Install Operator page, under Installed Namespace, select Operator recommended Namespace.
Click Install.
Verify that the SR-IOV Network Operator is installed successfully:
Navigate to the Operators → Installed Operators page.
Ensure that SR-IOV Network Operator is listed in the openshift-sriov-network-operator project with a Status of InstallSucceeded.
If the Operator does not appear as installed, to troubleshoot further:
Inspect the Operator Subscriptions and Install Plans tabs for any failure or errors under Status.
Navigate to the Workloads → Pods page and check the logs for pods in the
openshift-sriov-network-operator
project.
Next steps
- Optional: Configuring the SR-IOV Network Operator