The forward application in a container/pod can run with the Napatech main-app container. It is also possible to run the forward application in a container/pod with a custom main-app container.
Forward application
The
forward application in the Napatech Link-Inline™ Software package demonstrates receiving
frames based on VLAN IDs and configuring new flow rules for offloading to the SmartNIC.
Received frames in the SmartNIC are delivered to the forward application
using the specified number of virtual functions. The application then configures flows of
received frames for offloading to the SmartNIC. After flows are learned in the SmartNIC,
frames that are matched the flows are transmitted on the specified port without getting
delivered to the forward application. It is possible to run multiple
instances of the forward application. Each forward
instance runs in a separate container of a separate pod. The number of pods can be
configured using the replica parameter in the
k8s-forward.yaml file. By default, it is set to 2.
By default, two virtual functions are attached to a
user-application container. This can be configured using the
napatech.com/nt_vf parameter in k8s-forward.yaml
file.replicas: 2
napatech.com/nt_vf: 2The initial VLAN ID is set to 44 by default. VLAN IDs 44 and 45 are assigned to the first launched application pod, and 46 and 47 are assigned to the next pod. The initial VLAN ID is configurable in the ntdevplugin.yaml file.
For more information on the ntdevplugin.yaml file, see ConfigMap.