Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 688
Veena R Moorthy Avatar asked Jan 27 '16 17:01

Veena R Moorthy


1 Answers

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.

like image 146
Paul Morie Avatar answered Nov 13 '22 21:11

Paul Morie