Not able to launch the SR-IOV based POD using Deployment kind in non default projects

Solution Verified - Updated -

Issue

  • Not able to launch the SR-IOV based pod using kind Deployment in any other projects except the default project.
  • SR-IOV based pod can only be deployed successfully in the default project if the networkNamespace is set to default while creating the sriovnetwork object
  • When a non-default namespace is used at the sriovnetwork configuration, It failed with the following error:
ReplicaFailureTrue  Oct 8, 2:28 pm    FailedCreateadmission webhook "network-resources-injector-config.k8s.io" denied the request: could not find network attachment definition 'default/intel-xyz-sriovnetwork': could not get Network Attachment Definition default/intel-xyz-sriovnetwork: the server could not find the requested resource

Environment

  • Red Hat OpenShift Container Platform v4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content