Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note on PKEY management with RDMA isolation #64

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion docs/getting-started-kubernetes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,42 @@ Wait for MLNX_OFED to install and apply the following CRs:
"range": "10.56.217.0/24",
"log_file" : "/var/log/whereabouts.log",
"log_level" : "info"
}
}
}'

.. note::
To use the IB network with Pkey management feature with RDMA isolation, use the following ``sriov-ib-network.yaml``:

.. code-block:: yaml

apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: ib-sriov-network
annotations:
k8s.v1.cni.cncf.io/resourceName: nvidia.com/mlnxnics
spec:
config: '{
"type": "ib-sriov",
"cniVersion": "0.3.1",
"name": "ib-sriov-network",
"metaPluginsConfigured": true,
"metaPlugins": {
"type": "rdma"
},
"pkey": "0x6",
"link_state": "enable",
"ibKubernetesEnabled": true,
"ipam": {
"type": "whereabouts",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@almaslennikov we moved default from whereabouts to nvipam whould be better to use nvipam here aswell

"datastore": "kubernetes",
"kubernetes": {
"kubeconfig": "/etc/cni/net.d/whereabouts.d/whereabouts.kubeconfig"
},
"range": "10.56.217.0/24",
"log_file" : "/var/log/whereabouts.log",
"log_level" : "info"
}
}'

``sriov-ib-network-pod.yaml``
Expand Down