Unload the kernel module
To unload a kernel module deployed with KMM on OpenShift Container Platform, you can delete the corresponding Module resource. KMM creates worker pods that run modprobe -r on eligible nodes.
You must unload the kernel modules when moving to a newer version or if they introduce some undesirable side effect on the node.
-
To unload a module loaded with KMM from nodes, delete the corresponding
Moduleresource. KMM then creates worker pods, where required, to runmodprobe -rand unload the kernel module from the nodes.When unloading worker pods, KMM needs all the resources it uses when loading the kernel module. This includes the
ServiceAccountreferenced in theModuleas well as any RBAC defined to allow privileged KMM worker Pods to run. It also includes any pull secret referenced in.spec.imageRepoSecret.To avoid situations where KMM is unable to unload the kernel module from nodes, make sure those resources are not deleted while the
Moduleresource is still present in the cluster in any state, includingTerminating. KMM includes a validating admission webhook that rejects the deletion of namespaces that contain at least oneModuleresource.