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

    1. To create the openshift-sriov-network-operator namespace, enter the following command:

    2. To create an OperatorGroup CR, enter the following command:

      1. $ cat << EOF| oc create -f -
      2. apiVersion: operators.coreos.com/v1
      3. kind: OperatorGroup
      4. metadata:
      5. name: sriov-network-operators
      6. namespace: openshift-sriov-network-operator
      7. spec:
      8. EOF
    3. Subscribe to the SR-IOV Network Operator.

      1. Run the following command to get the OKD major and minor version. It is required for the channel value in the next step.

        1. $ cat << EOF| oc create -f -
        2. apiVersion: operators.coreos.com/v1alpha1
        3. kind: Subscription
        4. metadata:
        5. name: sriov-network-operator-subscription
        6. namespace: openshift-sriov-network-operator
        7. channel: "${OC_VERSION}"
        8. name: sriov-network-operator
        9. source: redhat-operators
        10. sourceNamespace: openshift-marketplace
        11. EOF
    4. To verify that the Operator is installed, enter the following command:

      Example output

      1. sriov-network-operator.4.4.0-202006160135 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

    1. Create a namespace for the SR-IOV Network Operator:

      1. In the OKD web console, click AdministrationNamespaces.

      2. In the Name field, enter , and then click Create.

    2. Install the SR-IOV Network Operator:

      1. In the OKD web console, click OperatorsOperatorHub.

      2. Select SR-IOV Network Operator from the list of available Operators, and then click Install.

      3. On the Install Operator page, under A specific namespace on the cluster, select openshift-sriov-network-operator.

      4. Click Install.

    3. Verify that the SR-IOV Network Operator is installed successfully:

      1. Navigate to the OperatorsInstalled Operators page.

      2. Ensure that SR-IOV Network Operator is listed in the openshift-sriov-network-operator project with a Status of InstallSucceeded.

        During installation an Operator might display a Failed status. If the installation later succeeds with an InstallSucceeded message, you can ignore the Failed message.

        If the operator does not appear as installed, to troubleshoot further:

    Next steps