{"repo":"squat/generic-device-plugin","free":true,"listed":false,"github":"https://github.com/squat/generic-device-plugin","clone":"git clone https://github.com/squat/generic-device-plugin.git","description":"A Kubernetes device plugin to schedule generic Linux devices","language":"Go","stars":374,"topics":["kubernetes","device-plugin"],"license":"Apache-2.0","category":"deployment-docker-iac","readme_excerpt":"Kubernetes Generic Device Plugin The generic-device-plugin enables allocating generic Linux devices, such as serial devices, the FUSE device, or video cameras, to Kubernetes Pods. This allows devices that don't require special drivers to be advertised to the cluster and scheduled, enabling various use-cases, e.g.: accessing video and sound devices; running IoT applications, which often require access to hardware devices; and mounting FUSE filesysems without privileged . Overview The generic-device-plugin can be configured to discover and allocate any desired device using the --device flag. For example, to advertise all video devices to the cluster, the following flag could be given: Now, Pods that require a video capture device, such as an object detection service, could request to be allocated one using the Kubernetes Pod resources field: The --device flag can be provided multiple times to allow the plugin to discover and allocate different types of resources. Getting Started To install the generic-device-plugin, choose what devices should be discovered and deploy the included DaemonSet: Note : the example manifest included in this repository discovers serial devices, the /dev/video0 device, the /dev/fuse device, sound devices, and sound capture devices. Now, deploy a workload that requests one of the newly discovered resources. For example, the following script could be used to run a Pod that creates an MJPEG stream from a video device on the node: This application could th","default_branch":null,"files":null,"tree":[],"storefront":"/r/squat","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/squat/generic-device-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}