rdma/k8s-rdma-sriov-dev-plugin

By rdma

Updated over 7 years ago

RDMA device plugin for hca and vhca (sriov) devices

Image
3

100K+

rdma/k8s-rdma-sriov-dev-plugin repository overview

k8s-rdma-sriov-dev-plugin

(https://hub.docker.com/r/mellanox/k8s-rdma-sriov-dev-plugin)

This is simple rdma device plugin that support IB and RoCE SRIOV vHCA and HCA. This also support DPDK applications for Mellanox NICs. This plugin runs as daemonset. Its container image is available at mellanox/k8s-rdma-sriov-dev-plugin.

How to use SRIOV mode?

1. Create per node sriov configuration

Edit example/sriov/rdma-sriov-node-config.yaml to describe sriov PF netdevice(s). In this example it is eth0 and eth1.

Note: (a) Do not add any VFs. (b) Do not enable SRIOV manually.

This plugin enables SRIOV for a given PF and does necessary configuration for IB and RoCE link layers.

2. Create ConfigMap

Create config map which holds SRIOV netdevice information from this config yaml file. This is per node configuration. In below example, they are eth0 and eth1 in rdma-sriov-node-config.yaml.

kubectl create -f example/sriov/rdma-sriov-node-config.yaml

3. Deploy device plugin

kubectl create –f https://github.com/Mellanox/k8s-rdma-sriov-dev-plugin/blob/master/example/device-plugin.yaml

4. Create Test pod

Create test pod which requests 1 vhca resource.

kubectl create -f example/sriov/test-sriov-pod.yaml

How to use HCA mode?

1. Create per node hca configuration

Edit example/hca/rdma-hca-node-config.yaml to it is an hca mode.

2. Create ConfigMap

Create config map to describe mode as "hca" mode. This is per node configuration.

kubectl create -f https://cdn.rawgit.com/Mellanox/k8s-rdma-sriov-dev-plugin/7b27f8cf/example/hca/rdma-hca-node-config.yml

3. Deploy device plugin

kubectl create –f https://github.com/Mellanox/k8s-rdma-sriov-dev-plugin/blob/master/example/device-plugin.yaml

4. Create Test pod

Create test pod which requests 1 hca resource.

kubectl create -f example/hca/test-hca-pod.yaml

Tag summary

Content type

Image

Digest

Size

24.5 MB

Last updated

over 7 years ago

docker pull rdma/k8s-rdma-sriov-dev-plugin