mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
28 lines
858 B
Plaintext
28 lines
858 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hardware_enablement/kmm-kernel-module-management.adoc
|
|
|
|
:_mod-docs-content-type: CONCEPT
|
|
[id="kmm-using-intree-modules_{context}"]
|
|
|
|
= Using in-tree modules with the device plugin
|
|
|
|
In some cases, you might need to configure the KMM Module to avoid loading an out-of-tree kernel module and instead use the in-tree module, running only the device plugin. In such cases, you can omit the `moduleLoader` parameter from the `Module` custom resource (CR), and leave only the `devicePlugin` section, as shown in the following example.
|
|
|
|
.Example `Module` CR
|
|
====
|
|
[source,yaml]
|
|
----
|
|
apiVersion: kmm.sigs.x-k8s.io/v1beta1
|
|
kind: Module
|
|
metadata:
|
|
name: my-kmod
|
|
spec:
|
|
selector:
|
|
node-role.kubernetes.io/worker: ""
|
|
devicePlugin:
|
|
container:
|
|
image: some.registry/org/my-device-plugin:latest
|
|
----
|
|
====
|