Deploy Fast Path Provider for CGW
This document describes the prerequisites and steps to deploy Fast Path Provider (FPP) for the purpose of the Connectivity Gateway (CGW) 2.0 use case.
Prerequisites
Steps
Deploy FPP for CGW using the following configuration:
The
instancemode was introduced to enable VPP-based workloads. This makes it possible to manage workloads using FPP Custom Resources and configure VPP in a unified way. The benefit of using VPP-based applications is a possibility to employ fast vector packet processing with traffic not touching Linux kernel networking stack.One of possible application to use the VPP as a base is Connectivity Gateway (CGW), product of Travelping that currently uses Linux kernel to create external connectivity to outside of the cluster endpoints, with GRE tunnels and BGP routing. This application is called CGW-FPP in this section.
Caution
FPP-based CGWs should only be scheduled on the nodes with FPP version 2.0.0 or later serving as VPP Switch to have VPP interfaces configured properly.
Below is a diagram with the CGW-FPP example deployment described further in this section:
CGW-FPP Diagram This is the full configuration of the CGW deployment:
yamlConfigure the CGW deployment based on the example above.
- Configure the VPP Operator that should handle the FPP deployment creation:
yaml- Provide the CNF name:
yamlFor FPP 3.0, the configuration above creates the VPPDeployment object with mode set to
instance, which in turn creates KubernetesStatefulSetobject (as opposed toDaemonSetwhich is used for thenodemode), and adds thecennso.net/cnf: cgwlabel to all created resources.- Define imagePullSecrets to download the VPP Worker image from a private registry:
yaml- Enable external connectivity. You can use an external network interface based on VF with
SriovNetworkconfiguration which provides a VF for use by CGW-VPP. Also, you can assign the IP address of the external network usingvppConfigs, for example:
yamlvppConfigs[].spec.externalNetworkConfig.ifacePrefixmust matchexternalNetworkskey name (ext-net).- Configure the GRE interface:
yamlThe above configuration creates a tunnel from the external IP of the interface named
ext-net0n0(10.75.0.10/29) to the destination IP somewhere in the external network, that is where the other endpoint of the GRE tunnel resides (10.75.0.11/29). The VPP interface for the local GRE tunnel endpoint is namedgre1and is assigned the IP address198.19.1.1.It is possible to specify inner and outer routing tables for VPP GRE interfaces. These tables (
inner-tableandouter-table) can also be defined outside theCGWDeployment.Example of
inner-tableRoutingTabledefinition (created on the Core Cluster):yaml- Create a memif interface
A Network Attachment Definition can be used to provide routing between the GRE tunnel and the internal FPP network. Here we create a
memifinterface connected to the internal FPP network callednet-100, the network must be created independently:
yamlIn this example, CGW-FPP serves as a gateway to the FPP VXLAN network, connecting it to an external network through the GRE tunnel.
The minimal resource configuration for evaluation purposes is as follows:
yaml