When a serial port is created in a docker container mapped on a host with an operating system of Linux, this is done with the ‘—device’
flag;
e.g. docker run -dit --device=/dev/ttyUSB0 --name SerialTest <docker image>
We would like to know how PODs can be mapped serial ports in Kubernetes. The figure below shows the Pod configuration for the application to be deployed in Rancher 2.x.
(https://i.stack.imgur.com/qhfll.png)
In node scheduling, we have configured pods to be distributed to specific nodes with serial ports. Also, it is of course not possible to map the serial port with the volume mount. So, I would like to raise a question because I couldn't find anything related to ‘—device’
flag of docker in my Rancher 2.x configuration.
(https://i.stack.imgur.com/mkr7t.png) "Application configuration in Rancher 2.x"
(https://i.stack.imgur.com/Lfn0t.png) "Serial port device connected to the HOST PC"
(https://i.stack.imgur.com/bQMk4.png) "Volume Mount Status of Containers in Deployed Pods"
(https://i.stack.imgur.com/yhWxv.png) "Error log when running a .NET application that uses a serial port"