Skip to content

Commit 482330e

Browse files
committed
device_plugins: Add multiple custom resources feature in qat readme
Signed-off-by: vbedida79 <veenadhari.bedida@intel.com>
1 parent 23ea526 commit 482330e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

device_plugins/deploy_qat.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,38 @@ Users can use the steps below to customize the QAT resource configuration:
7676
7777
2. Create QAT device plugin CR with -provisioning-config set as the name of the ConfigMap (created in step 1) in the qat_device_plugin.yaml file or set ConfigMap name in the provisioning-config option from web console.
7878
79+
# Multiple Custom Resources
80+
81+
The [feature](https://github.com/intel/intel-device-plugins-for-kubernetes/tree/main/cmd/operator#multiple-custom-resources) can be used with a `nodeSelector` label representing the capabilities supported on the node. Multiple custom resources on nodes can be supported with different QAT capabilities.
82+
83+
* For example, to assign the capability `sym` for a node: create the label on the node
84+
```
85+
oc label node <node_name> qat.mode=sym
86+
```
87+
* Deploy a new `QatDevicePlugin` Custom resource by adding the above label as a `nodeSelector` and choosing the configmap created with `sym` capability according to [QAT Resource Configuration](#qat-resource-configuration-experimental):
88+
89+
```
90+
nodeSelector:
91+
qat.mode: sym
92+
```
93+
* Verify that the device plugin CR is ready
94+
```
95+
$ oc get QatDevicePlugin
96+
```
97+
Output:
98+
```
99+
NAME DESIRED READY NODE SELECTOR AGE
100+
qatdeviceplugin-sym 1 1 {"intel.feature.node.kubernetes.io/qat":"true","qat.mode":"sym"} 72m
101+
```
102+
103+
* Check the resources on the node:
104+
```
105+
oc describe <node_name> | grep qat.intel.com
106+
qat.intel.com/sym: 128
107+
qat.intel.com/sym: 128
108+
qat.intel.com/sym 0 0
109+
```
110+
79111
# Run Intel QAT based workloads on RHOCP
80112
To run the Intel QAT based workloads as an unprivileged pod (see [issue](https://github.com/intel/intel-technology-enabling-for-openshift/issues/122)). The customized `qat-scc` Security Context Constraint (SCC) is provided to bind with service account and run the QAT based workload.
81113

0 commit comments

Comments
 (0)