Enabling the SR-IOV Network Operator in a hosted cluster

To manage the SR-IOV-capable devices on nodes deployed by the NodePool resource, you can enable the SR-IOV Network Operator.

The Operator runs in the hosted cluster and requires labeled worker nodes.

Procedure
  1. Generate a kubeconfig file for the hosted cluster by running the following command:

    $ hcp create kubeconfig --name $CLUSTER_NAME > $CLUSTER_NAME-kubeconfig
  2. Create a kubeconfig resource environment variable by running the following command:

    $ export KUBECONFIG=$CLUSTER_NAME-kubeconfig
  3. Label each worker node to indicate SR-IOV capability by running the following command:

    $ oc label node <worker_node_name> feature.node.kubernetes.io/network-sriov.capable=true

    where:

    <worker_node_name>

    Specifies the name of a worker node in the hosted cluster.

  4. Install the SR-IOV Network Operator in the hosted cluster by following the instructions in "Installing the SR-IOV Network Operator".

  5. After installation, configure SR-IOV workloads in the hosted cluster by using the same process as for a standalone cluster.