How to mimic --device option in docker run in kubernetes

1/27/2016

I am very new to Kubernetes and docker. Am trying to find the config equivalent of --device option in docker run. This option in docker is used to add a device on the host to the container. Is there a equivalent in kubernetes which can be added to the yaml file?

Thanks

-- Veena R Moorthy
docker
kubernetes

1 Answer

1/27/2016

Currently we do not have a passthrough to this option in the API, though you may have some success with using a hostpath volume to mount a device file in.

-- Paul Morie
Source: StackOverflow