Skip to content

Commit 54302da

Browse files
authored
Merge pull request #38234 from jboxman-rh/bz-1990953
BZ1990953: Only the first container can use SR-IOV network attachment
2 parents 1cb1780 + c4cbf17 commit 54302da

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modules/nw-multus-add-pod.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ The pod must be in the same namespace as the additional network.
2929
ifdef::sriov[]
3030
[NOTE]
3131
=====
32-
If a network attachment is managed by the SR-IOV Network Operator, the SR-IOV Network Resource Injector adds the `resource` field to the `Pod` object automatically.
32+
The SR-IOV Network Resource Injector adds the `resource` field to the first container in a pod automatically.
33+
34+
If you are using an Intel network interface controller (NIC) in Data Plane Development Kit (DPDK) mode, only the first container in your pod is configured to access the NIC. Your SR-IOV additional network is configured for DPDK mode if the `deviceType` is set to `vfio-pci` in the `SriovNetworkNodePolicy` object.
35+
36+
You can work around this issue by either ensuring that the container that needs access to the NIC is the first container defined in the `Pod` object or by disabling the Network Resource Injector. For more information, see link:https://bugzilla.redhat.com/show_bug.cgi?id=1990953[BZ#1990953].
3337
=====
3438

3539
ifdef::bz[]

networking/hardware_networks/about-sriov.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ SR-IOV Network Operator webhook::
3838
A dynamic admission controller webhook that validates the Operator custom resource and sets appropriate default values for unset fields.
3939

4040
SR-IOV Network resources injector::
41-
A dynamic admission controller webhook that provides functionality for patching Kubernetes pod specifications with requests and limits for custom network resources such as SR-IOV VFs.
41+
A dynamic admission controller webhook that provides functionality for patching Kubernetes pod specifications with requests and limits for custom network resources such as SR-IOV VFs. The SR-IOV network resources injector adds the `resource` field to only the first container in a pod automatically.
4242

4343
SR-IOV network device plug-in::
4444
A device plug-in that discovers, advertises, and allocates SR-IOV network virtual function (VF) resources. Device plug-ins are used in Kubernetes to enable the use of limited resources, typically in physical devices. Device plug-ins give the Kubernetes scheduler awareness of resource availability, so that the scheduler can schedule pods on nodes with sufficient resources.

0 commit comments

Comments
 (0)