Deploy Fast Path Provider on multiple nodes using SRIOV networks as FPP uplinks
This document describes the prerequisites and steps for a multi-node deployment of Fast Path Provider (FPP) using SRIOV networks as FPP uplinks. There is also a tutorial for a direct NIC assignment for the uplinks.
Prerequisites
- Common prerequisites
- SR-IOV Network OperatorOpens in a new tab installed in the Kubernetes cluster
- Multus CNIOpens in a new tab installed in the Kubernetes cluster
- Whereabouts CNI IPAM pluginOpens in a new tab to handle uplink IP address assignment, if SRIOV Virtual Functions as uplink are used 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 X710, vendor ID: 8086, device ID: 1572, model: Ethernet Controller X710 for 10GbE SFP+
- Intel XL710, vendor ID: 8086, device ID: 1583, model: Ethernet Controller XL710 for 40GbE QSFP+
- Intel X710, vendor ID: 8086, device ID: 1589, model: Ethernet Controller X710/X557-AT 10GBASE-T
- Intel XXV710, vendor ID: 8086, device ID: 158b, model: Ethernet Controller XXV710 for 25GbE SFP28
Uplinks using SRIOV VFs
FPP requires the SR-IOV Network Operator to have PCIDEVICE_ as environment variables with a PCI device ID, for example:
The above variable is set by SRIOV Network Device Plugin, which can be installed independently or by SRIOV Operator.
FPP was tested with the following versions of SRIOV Operator:
- origin-sriov-operatorOpens in a new tab
4.3.0 - openshift/sriov-network operatorOpens in a new tab commit
104db73503782b16900ebc1ce14f809bde2f1086, based on release 4.9
Steps
Configure the SRIOV Operator
You need then to configure
SriovNetworkNodePolicyobjects for uplinks, that is the NICs used by VPPSwitch daemon pods. If you want to use the standard deployment YAMLs without changing resource specifications, you need to name the uplink resourcesuplink0,uplink1and so on, which together withRESOURCE_NAMEofopenshift.iospecified for SR-IOV Network Operator results in Kubernetes resource names likeopenshift.io/uplink0,openshift.io/uplink1and so on.The following is an example of
SriovNetworkNodePolicyfor Intel XL710 VFs:yamlThe above example creates 4 VFs on eth0 NIC on nodes that match
nodeSelector. If the hardware is different across different nodes of the cluster (different NICs or their PCI configurations), there should be multipleSriovNetworkNodePolicyobjects created with differentnodeSelectorvalues. This also requires creating multiple fpp-manager deployments with different networks attached to it through NetworkAttachmentDefinitions.If multiple uplinks are used, FPPManager creates a bond that is comprised of these uplinks.
You also need to create
SriovNetworkobjects for the uplinks. For uplinks that are used without bonding, you need to specify IP address in theipamsection. In the case of bonded interfaces, the first interface among bonded must have an IP address. You can use Whereabouts CNI IPAM pluginOpens in a new tab to facilitate this task. ASriovNetworkwith an assigned IP address may look like this:yamlTip
If you encounter any issues during configuration, refer to the SRIOV troubleshooting guide.
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.Install 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 -
Configure uplink and external network interfaces:
yamlTo configure external network interfaces using VFs, use the following chart configuration:
yamlIn order to configure an external network interface, VPPConfig can be used, for example:
yamlvppConfigs[].spec.externalNetworkConfig.ifacePrefixmust matchexternalNetworkskey name (ext-netoranotherExtNetfrom above example).To define a VPPConfig that applies to all FPP pods in the
nodemode:yaml
-