configs/nicclusterpolicy/rdma-shared-device-plugin/rdma.yaml (22 lines of code) (raw):

# Versions are provided at: https://docs.nvidia.com/networking/display/kubernetes<driver-version>/platform-support.html apiVersion: mellanox.com/v1alpha1 kind: NicClusterPolicy metadata: name: nic-cluster-policy spec: rdmaSharedDevicePlugin: repository: ghcr.io/mellanox image: k8s-rdma-shared-dev-plugin # Latest tag: https://github.com/mellanox/k8s-rdma-shared-dev-plugin/pkgs/container/k8s-rdma-shared-dev-plugin version: v1.5.2 # The config below directly propagates to k8s-rdma-shared-device-plugin configuration. # Replace 'devices' with your (RDMA capable) netdevice name. # 15b3 is the vendor id for Nvidia NIC by Mellanox: https://admin.pci-ids.ucw.cz/read/PC/15b3 config: | { "configList": [ { "resourceName": "shared_ib", "rdmaHcaMax": 63, "selectors": { "vendors": ["15b3"], "linkTypes": ["infiniband"] } } ] }