<p>Docker provides a --device flag for individual containers to map device ports (USB devices for example; ttyUSB0, ttyACM0) at run-time.</p>

<p>This feature is great but seems to disappear when we abstract away from the host machine if using Docker swarm or Kubernetes however, I have not been able to confirm if this feature doesn't exist (I would be surprised if such a feature did exist since these orchestration tools implement a high degree of abstraction). Being said, I absolutely need to utilize the power of an orchestration tool but at the same time in spite of abstraction, I also require the ability to map device ports because I intend to retrieve data from sensors.</p>

<p>Are there any production grade solutions to this problem? or does the feature exist in some manner?</p>

<p>-Thankyou</p>

spacetimeengineer
<p>Here is the one community proposal for this topic (<a href="https://stackoverflow.com/questions/55785628/adding-database-to-raspberry-pi-kubernetes-cluster/55790061#55790061">in multi-node env you can consider using NFS server</a>) </p>

<p>Hi I am not expert in this matter but it seems like it's the task for IOT.
You should consider using IOT like more general solution while working with sensors:</p>

<ul>
<li><a href="https://cloud.google.com/solutions/iot-overview" rel="nofollow noreferrer">Overview of Internet of Things</a> </li>
<li><a href="https://github.com/azure/iot-edge-virtual-kubelet-provider" rel="nofollow noreferrer">iot-edge-virtual-kubelet-provider</a> </li>
<li><a href="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/device-plugins/" rel="nofollow noreferrer">Device Plugins</a> </li>
<li><a href="https://cloud.google.com/solutions/iot/kit/" rel="nofollow noreferrer">Google Cloud IoT-ready hardware</a> </li>
<li><a href="https://dev.to/david_j_eddy/intro-k3s-a-less-needy-kubernetes-3e53" rel="nofollow noreferrer">Using K3S workers nodes on ARM</a> </li>
</ul>

<p>Hope this help</p>
