k8s-generic-device-plugin
is a device plugin for Kubernetes to manage resources allocated for containers.
It was forked from RDMA plugin and generalized.
You can specify resources exactly as in ContainerAllocateResponse objects.
It does no checking for the devices' real existence, just serves them to Kubernetes deviceplugin.
For examples, check samples/.
$ go get -d .
$ go build .
- Run device plugin daemon process
# ./k8s-generic-device-plugin <resource-config.yaml>