From 243f8e8b0d75687c1de3d145d28ba44ec1599996 Mon Sep 17 00:00:00 2001 From: StephenJamesSmith Date: Sun, 22 Jun 2025 13:06:12 -0400 Subject: [PATCH] TELCODOCS-2311: Using in-tree modules --- .../kmm-kernel-module-management.adoc | 3 +++ modules/kmm-using-intree-modules.adoc | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 modules/kmm-using-intree-modules.adoc diff --git a/hardware_enablement/kmm-kernel-module-management.adoc b/hardware_enablement/kmm-kernel-module-management.adoc index c20db13328..404c8745fe 100644 --- a/hardware_enablement/kmm-kernel-module-management.adoc +++ b/hardware_enablement/kmm-kernel-module-management.adoc @@ -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] diff --git a/modules/kmm-using-intree-modules.adoc b/modules/kmm-using-intree-modules.adoc new file mode 100644 index 0000000000..aaa43e3226 --- /dev/null +++ b/modules/kmm-using-intree-modules.adoc @@ -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 +---- \ No newline at end of file