Using the operator we create NicClusterPolicy where we have multiple RDMA devices as:
rdmaSharedDevicePlugin:
image: k8s-rdma-shared-dev-plugin
repository: nvcr.io/nvstaging/mellanox
version: network-operator-v25.7.0-rc.1
The config below directly propagates to k8s-rdma-shared-device-plugin configuration.
Replace ‘devices’ with your (RDMA capable) netdevice name.
config: |
{
“configList”: [
{
“resourceName”: “rdma_shared_device_a”,
“rdmaHcaMax”: 63,
“selectors”: {
“vendors”: [“15b3”],
“deviceIDs”: [“101b”]
}
If we want to prepare secondary interfaces with MACVLAN for RDMA ports, how do we do it?
This is an example from the github of MACVLAN, but we assgin the port directly.
Is it possible to assign the resource_name?
apiVersion: mellanox.com/v1alpha1
kind: MacvlanNetwork
metadata:
name: example-macvlannetwork
spec:
networkNamespace: “default”
master: “ens2f0”
mode: “bridge”
mtu: 1500
ipam: |
{
"type": "whereabouts",
"datastore": "kubernetes",
"kubernetes": {
"kubeconfig": "/etc/cni/net.d/whereabouts.d/whereabouts.kubeconfig"
},
"range": "192.168.2.225/24",
"exclude": \[
"192.168.2.229/30",
"192.168.2.236/32"
\],
"log_file" : "/var/log/whereabouts.log",
"log_level" : "info",
"gateway": "192.168.2.1"
}