Deploy Fast Path Provider on multiple nodes using direct NIC assignment
This document describes the prerequisites and steps for a multi-node deployment of Fast Path Provider (FPP) using direct NIC assignment. There is also a tutorial for SRIOV Networks as uplinks.
Prerequisites
- Common prerequisites
- NIC firmware updated to the latest version in the case of Intel e810 cards for direct NIC assignment in VPPSwitch
Terminology used in the installation document:
- VPPSwitch - Amberd pod in the
nodemode, which acts as a virtual switch on each Data Plane node - Uplink - network interface, virtual or physical, which is used by VPPSwitch to communicate inside the cluster and create a VXLAN mesh to interconnect workload CNFs between nodes
Supported NICs
The following Network Interface Cards are supported using this installation guide:
- Intel E810, vendor ID: 8086, device ID: 1593, model name: E810-XXVDA4
Intel E810 support
Check the Intel DDP package section of the Data Plane configuration guide for more details.
Steps
Enable image download
In order to be able to pull FPP images from a private registry, you may need to configure imagePullSecrets for the FPP service account. One possibility is to create
/tmp/pullsecret.yamlfile, adding proper base64-encoded docker auth information, so that later it can be used to augment the FPP deployment:yamlCreate this secret in
{fpp-namespace}:bashLabel the nodes
For the FPP DaemonSet to actually start, each node in the cluster using FPP must get a label, for example
fpp-manager.cennso.com/vppswitch-uplinks=2:bashfpp-manager.cennso.com/vppswitch=""is used for workloads' nodeSelector to select the nodes where VPPSwitch is available.Configure direct NIC binding to use them as uplinks or external network interfaces
FPP Manager can use Physical Functions (PFs) as uplinks. This means that no SRIOV operator is needed and NIC PCI IDs can be passed directly in the FPP deployment. The Helm-based deployment uses
directNICMappings, which configures PCI IDs through environment variables and enables direct access to the system firmware directory (/lib/firmware). Check which card should be used by FPP, for example by runninglshw -c network -businfo:bashIn this example,
8a:00.1and8a:00.3are used. When using PFs with VPP, use thevfio-pcidriver. Ensure that no VFs are created on that NICs, in case if SRIOV Network Operator is used this means that SRIOV Custom Resources using these NICs need to be removed (SriovNetworkNodePolicyobjects). Below is an example command that disables VFs on the machine:bashAfter that, you can bind NICs to the vfio driver using an init container in the FPP node deployment. For example:
yamlEvery time the FPP node DaemonSet starts, the proper NIC binding is configured, so the method is reboot-safe.
The
8086 1593is a vendor and device ID of the NIC. You can check it by runninglspci -nn -s <PCI-ID>. Example:bashAfter performing these steps, NICs is ready to be used by FPP Manager. The following chart configuration enables FPP DaemonSet to use NICs and assign IPs:
yamlThe above settings are translated into environmental variables in the FPP DaemonSet:
yamlThe following DPDK interfaces are configured in
startup.conf:shuplink0anduplink1can be used in VPPConfigbeforeCommandsandafterCommandssections. FPP Manager creates these VPPInterface objects corresponding to these NICs to be used as uplinks or as external network interfaces if according to the external network prefixes defined inVPPConfig(interfaces not matching any interface name prefixes are used as uplinks).In this configuration example, the FPP operator identifies all defined uplink interfaces, bonds them, and creates a VLAN subinterface with an assigned IP.
You can use
spec.uplinkConfig.ipsin VPPConfig to assign the IPs to the uplink interface.spec.uplinkConfig.vlanIdallows you to create a VLAN subinterface for uplink.Use
spec.externalNetworkConfig.vlanIdto create a VLAN subinterface that provides external connectivity for FPP-based workloads. For example, to connect a VLAN interface to FPP network ID 1, setspec.externalNetworkConfig.ifacePrefixtouplink-bond(automatically created for bonded DPDK interfaces).yamlInstall the FPP chart in the
nodemode using the following chart configuration:-
Configure the number of buffers per NUMA for optimal performance
yaml -
Configure image pull secret to be able to download the
fpp-managerimage from a private registryyamlInstead of using image pull secret, you can use a preconfigured service account:
yaml -
Specify an optional log level:
yamlTo enable more verbose logging, VPP API calls (on the internal intermediate VPPLink level) and Kubernetes controller events (Create/Update/Delete) can be logged:
yaml -
Specify the node selector for the subset of nodes to deploy FPP DaemonSet:
yaml -
Configure pod resources:
yaml -
Include directNICMappings and vppConfigs section from the above point
This configures the networking and bond with VLAN configuration.
-
Include additionalInitContainers and additionalVolumes from the above point
This will configure the VFIO NIC binding in a reboot-safe manner.
-
Verification
After deploying FPP, you can verify whether a VPPInterface VLAN object with your desired vlanId was created in the Kubernetes API and whether its status is ready.
Run the following command to do it:
As a response, you get a VPPInterface object. See the example:
You can also verify the interface creation by running the following command in the FPP DeamonSet pods:
In the resulting list, look for your interface by its ID (as in {INTERFACE_NAME}.ID):