You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/nw-sriov-configuring-operator.adoc
+30-16Lines changed: 30 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -6,21 +6,35 @@
6
6
[id="nw-sriov-configuring-operator_{context}"]
7
7
= Configuring the SR-IOV Network Operator
8
8
9
-
[IMPORTANT]
9
+
* Create a `SriovOperatorConfig` custom resource (CR) to deploy all the SR-IOV Operator components:
10
+
11
+
.. Create a file named `sriovOperatorConfig.yaml` using the following YAML:
12
+
+
13
+
[source,yaml]
14
+
----
15
+
apiVersion: sriovnetwork.openshift.io/v1
16
+
kind: SriovOperatorConfig
17
+
metadata:
18
+
name: default
19
+
namespace: openshift-sriov-network-operator
20
+
spec:
21
+
disableDrain: false
22
+
enableInjector: true
23
+
enableOperatorWebhook: true
24
+
logLevel: 2
25
+
----
26
+
+
27
+
[NOTE]
10
28
====
11
-
Modifying the SR-IOV Network Operator configuration is not normally necessary.
12
-
The default configuration is recommended for most use cases.
13
-
Complete the steps to modify the relevant configuration only if the default behavior of the Operator is not compatible with your use case.
29
+
The only valid name for the `SriovOperatorConfig` resource is `default` and it must be in the namespace where the Operator is deployed.
14
30
====
15
31
16
-
The SR-IOV Network Operator adds the `SriovOperatorConfig.sriovnetwork.openshift.io` CustomResourceDefinition resource.
17
-
The Operator automatically creates a SriovOperatorConfig custom resource (CR) named `default` in the `openshift-sriov-network-operator` namespace.
18
-
19
-
[NOTE]
20
-
=====
21
-
The `default` CR contains the SR-IOV Network Operator configuration for your cluster.
22
-
To change the Operator configuration, you must modify this CR.
23
-
=====
32
+
.. Create the resource by running the following command:
33
+
+
34
+
[source,terminal]
35
+
----
36
+
$ oc apply -f sriovOperatorConfig.yaml
37
+
----
24
38
25
39
[id="nw-sriov-operator-cr_{context}"]
26
40
== SR-IOV Network Operator config custom resource
@@ -284,13 +298,11 @@ After performing the following procedure to disable draining workloads, you must
284
298
285
299
.Procedure
286
300
287
-
- To set the `disableDrain` field to `true`, enter the following command:
301
+
- To set the `disableDrain` field to `true` and the `configDaemonNodeSelector` field to `node-role.kubernetes.io/master: ""` , enter the following command:
0 commit comments