This device plugin is a dummy plugin. It gives containers requiring RDMA access to the /dev/infiniband
directory
To build simply run:
go install
Builds a local docker image with the label rdma-dummy-dp:latest
. Exports a tar file of the docker image labelled rdma-dummy-dp.tar
into the local directoy which you can copy into other machines and load in with the command docker load < rdma-dummy-dp.tar
.
VERSION=latest ./build_docker.sh
NOTE If you change the image than you need to update the yaml's image tag before launching it on Kubernetes.
Simply run the following command on your master node in Kubernetes:
kubectl create -f rdma-dummy-dp-ds.yaml
To include it in the yaml file, make sure to add the following under the container spec:
resources:
limits:
rdma-sriov/dev-infiniband-mount: 1