Skip to content

Commit

Permalink
Mount /dev/inside rdma shared device plugin (#32)
Browse files Browse the repository at this point in the history
Currently rdma resources "/dev/infiniband" are made visible to device
plugin by using hostNetwork.
However, rdma resources updates are not visible to the device plugin container
when kernel modules/drivers are unloaded/loaded if rdma shared device
plugin is already running.

This patch mounts "/dev/" inside the container with which keeps 
tracking rdma device changes.

mounting "/dev/" is required instead of "/dev/infiniband" because
driver may load after device plugin has started, in this case, "/dev/infiniband", does not exist
to begin with.

Signed-off-by: Mamduh Alassi <mamduhala@mellanox.com>
  • Loading branch information
Mmduh-483 authored Dec 14, 2020
1 parent f32fb45 commit 7d66db8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/k8s-rdma-shared-dev-plugin-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ spec:
mountPath: /var/lib/kubelet/
- name: config
mountPath: /k8s-rdma-shared-dev-plugin
- name: devs
mountPath: /dev/
volumes:
- name: device-plugin
hostPath:
Expand All @@ -44,3 +46,6 @@ spec:
items:
- key: config.json
path: config.json
- name: devs
hostPath:
path: /dev/

0 comments on commit 7d66db8

Please sign in to comment.