1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/nw-sriov-hwol-configuring-systemd-mode.adoc

44 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * networking/hardware_networks/configuring-hardware-offloading.adoc
:_mod-docs-content-type: PROCEDURE
[id="nw-sriov-hwol-configuring-systemd-mode_{context}"]
= Setting the SR-IOV Network Operator into systemd mode
To support hardware offloading, you must first set the SR-IOV Network Operator into `systemd` mode.
.Prerequisites
* You installed the OpenShift CLI (`oc`).
* You have access to the cluster as a user that has the `cluster-admin` role.
.Procedure
. Create a `SriovOperatorConfig` custom resource (CR) to deploy all the SR-IOV Operator components:
.. Create a file named `sriovOperatorConfig.yaml` that contains the following YAML:
+
[source,yaml]
----
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovOperatorConfig
metadata:
name: default <1>
namespace: openshift-sriov-network-operator
spec:
enableInjector: true
enableOperatorWebhook: true
configurationMode: "systemd" <2>
logLevel: 2
----
+
<1> The only valid name for the `SriovOperatorConfig` resource is `default` and it must be in the namespace where the Operator is deployed.
<2> Setting the SR-IOV Network Operator into `systemd` mode is only relevant for Open vSwitch hardware offloading.
.. Create the resource by running the following command:
+
[source,terminal]
----
$ oc apply -f sriovOperatorConfig.yaml
----