πŸ“šBook Signing at KubeCon EU 2026Meet us at Booking.com HQ (Mon 18:30-21:00) & vCluster booth #521 (Tue 24 Mar, 12:30-1:30pm) β€” free book giveaway!RSVP Booking.com Event
Networking advanced ⏱ 20 minutes K8s 1.28+

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.

By Luca Berton β€’ β€’ πŸ“– 5 min read

πŸ’‘ Quick Answer: Create SriovNetwork in openshift-sriov-network-operator, set networkNamespace to the workload namespace, and configure ipam with {"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.yaml

Verify Generated NAD

oc get network-attachment-definition -n tenant-a tenant-a -o yaml

Confirm NAD includes:

  • type: sriov
  • resourceName: openshift.io/mellanoxnics annotation
  • ipam.type: nv-ipam

Important Rules

  • Keep SriovNetwork CR in openshift-sriov-network-operator when networkNamespace is used.
  • Do not hand-edit generated NADs for long-term changes; update the owning SriovNetwork.
  • Ensure matching IPPool exists in the workload namespace.
#sriovnetwork #nv-ipam #multus #openshift #nvidia
Luca Berton
Written by Luca Berton

Principal Solutions Architect specializing in Kubernetes, AI/GPU infrastructure, and cloud-native platforms. Author of Kubernetes Recipes and creator of CopyPasteLearn courses.

Kubernetes Recipes book cover

Want More Kubernetes Recipes?

This recipe is from Kubernetes Recipes, our 750-page practical guide with hundreds of production-ready patterns.

Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens