-
Notifications
You must be signed in to change notification settings - Fork 85
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
Accessing host instance devices... #145
Comments
Have you tried using the hostPath volume? |
Tx Lucas! I did try the volume mounts and thought that would work, but I'll give it another rinse, perhaps I've missed something in the On Thu, Nov 17, 2016 at 7:42 AM, Lucas Käldström [email protected]
|
Again thank you Lucas for prompting me to revisit. You Rock!! Turns out one on the mount points symlinked to another dir that I was not Thank so much for your contributions and excellent input! On Thu, Nov 17, 2016 at 9:02 AM, Fernand Galiana [email protected]
|
I am aware that k8s does not support docker option --device. So I've resorted to use the security context privileged:true when defining a pod. This however does not yield the expected results on having the container access the instance devices.
NOTE: both the api server and kubelet are running with allow-privileged: true
I can run the exact docker image on the node manually with --privileged: true and the container performs nominally. However launching the container via k8s, the application can no longer access the devices. Looking further, and running docker inspect on the docker and k8s container, I can see the k8s is running in privileged mode as expected however there is a delta in both the security context and devices settings. Docker says devices: [] while K8s container says devices: null.
Thinking that might be the root cause of this issue but not super sure??
Has anyone been able to access /dev or /sys/class on the host instance from a k8s instantiated image? Any thoughts or workarounds?
The text was updated successfully, but these errors were encountered: