1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

TELCODOCS-2311: Using in-tree modules

This commit is contained in:
StephenJamesSmith
2025-06-22 13:06:12 -04:00
parent 27e22ae057
commit 243f8e8b0d
2 changed files with 28 additions and 0 deletions

View File

@@ -59,6 +59,9 @@ include::modules/kmm-example-module-cr.adoc[leveloffset=+2]
.Additional resources
* xref:../security/certificates/updating-ca-bundle.adoc#ca-bundle-replacing_updating-ca-bundle[Replacing the CA Bundle certificate]
// Added for TELCODOCS-2311
include::modules/kmm-using-intree-modules.adoc[leveloffset=+1]
// Added for TELCODOCS-1827
include::modules/kmm-symbolic-links-for-in-tree-dependencies.adoc[leveloffset=+1]

View File

@@ -0,0 +1,25 @@
// 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
----