Configure SriovNetwork with NVIDIA nv-ipam
Create a SriovNetwork resource that auto-generates a Multus NetworkAttachmentDefinition using nv-ipam for high-performance SR-IOV secondary interfaces.
π‘ Quick Answer: Create
SriovNetworkinopenshift-sriov-network-operator, setnetworkNamespaceto the workload namespace, and configureipamwith{"type":"nv-ipam","poolName":"<pool>"}.
SriovNetwork lets the SR-IOV operator generate and maintain the corresponding NetworkAttachmentDefinition automatically.
Example SriovNetwork
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetwork
metadata:
name: tenant-a
namespace: openshift-sriov-network-operator
spec:
vlan: 0
networkNamespace: "tenant-a"
resourceName: "mellanoxnics"
ipam: |
{
"type": "nv-ipam",
"poolName": "tenant-a"
}Apply it:
oc apply -f sriovnetwork.yamlVerify Generated NAD
oc get network-attachment-definition -n tenant-a tenant-a -o yamlConfirm NAD includes:
type: sriovresourceName: openshift.io/mellanoxnicsannotationipam.type: nv-ipam
Important Rules
- Keep
SriovNetworkCR inopenshift-sriov-network-operatorwhennetworkNamespaceis used. - Do not hand-edit generated NADs for long-term changes; update the owning
SriovNetwork. - Ensure matching
IPPoolexists in the workload namespace.

Recommended
Kubernetes Recipes β The Complete Book100+ production-ready patterns with detailed explanations, best practices, and copy-paste YAML. Everything in one place.
Get the Book βLearn by Doing
CopyPasteLearn β Hands-on Cloud & DevOps CoursesMaster Kubernetes, Ansible, Terraform, and MLOps with interactive, copy-paste-run lessons. Start free.
Browse Courses βπ Deepen Your Skills β Hands-on Courses
Courses by CopyPasteLearn.com β Learn IT by Doing
