-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mount static kmod as /usr/local/sbin/modprobe #4037
Conversation
@@ -102,6 +102,15 @@ oci-defaults = { version = "v1", helpers = ["oci_defaults"] } | |||
"mode=755", | |||
"size=65536k" | |||
] | |||
}, | |||
{ | |||
"destination": "/usr/local/sbin/modprobe", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have we confirmed this will be used instead of the provided modprobe
for containers that include it? Do we know where this path related in the default PATH for these containers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The linked script in the description printed the default PATH
in the container images. For all of them /usr/local/sbin
is the first path in the list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! Along with that, I also validated loading and unloading a kernel module on all the container images + cilium in that script and did not see any unexpected failures.
Added |
|
Issue number:
Updates #3968
Description of changes:
This change mounts the static kmod built in #3981 into a customer container.
This time, the mount target is
/usr/local/sbin/modprobe
Testing done:
I ran the script here to generate the kubernetes podspec to validate modprobe on 23 containers including:
No errors on any of them.
No errors running internal testing for ECS either
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.