> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/2.9/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/fpp/2.9/installation/installation-common.md).

# Common prerequisites and steps for deploying Fast Path Provider

Fast Path Provider (FPP) is delivered as Helm charts that provide you all necessary Custom Resource Definitions (CRDs) that you can use to configure FPP.

## Common prerequisites

You can deploy FPP in various modes, but some prerequisites are common for all:

- Cennso installed on a Kubernetes cluster
- [Hugepages enabled](#hugepages)
- [Uplink connectivity](#uplink-configuration)
- [cert-manager installed](https://cert-manager.io/docs/installation/)
- CNI v1.1.1+ with the [static plugin](https://www.cni.dev/plugins/current/ipam/static/)

### HugePages

Check [the HugePages section](https://docs.cennso.com/components/fpp/2.9/configuration/data-plane-node-config.md#enable-hugepages) of the Data Plane configuration guide for more details.

### Uplink configuration

VPPSwitch uses DPDK-enabled uplink interfaces. It is required for the DPDK driver to use an IOMMU-enabled platform with isolation of IOMMU groups - for processor-based (northbridge) PCI root ports and controller hub-based (southbridge) PCI root ports. This is called Access Control Service (ACS) capabilities.

Two types of uplink interfaces are supported:

- [SRIOV Virtual Functions](https://docs.cennso.com/components/fpp/2.9/installation/multinode-sriov.md#uplinks-using-sriov-vfs)
- [Direct physical NICs assignment](https://docs.cennso.com/components/fpp/2.9/installation/multinode-direct-nic.md#uplinks-using-a-direct-nic-assignment)

To assign an IP address for uplinks, you can use an IPAM plugin, such as Whereabouts, or you can specify IP manually by VPPConfig `spec.uplinkConfig.ips`.

#### Enable IOMMU

Check [the GRUB section](https://docs.cennso.com/components/fpp/2.9/configuration/data-plane-node-config.md#configure-grub) of the Data Plane configuration guide for more details.

#### IPAM for uplinks

Unless you use FPP on a single node, you must provide uplink IPs. It can be done in the pod annotation in the same format as that provided by [Multus CNI](https://github.com/k8snetworkplumbingwg/multus-cni) for VPPSwitch deployments or in `spec.uplinkConfig.ips` in VPPConfig.

For SRIOV VFs as uplinks, it's convenient to use [Whereabouts](https://github.com/k8snetworkplumbingwg/whereabouts) CNI IPAM plugin, as described in the **Configure the SRIOV Operator** step of the [Deploy Fast Path Provider on multiple nodes using SRIOV networks as FPP uplinks](https://docs.cennso.com/components/fpp/2.9/installation/multinode-sriov.md) document. The pod annotation expected by FPP is as follows:

```yaml
    k8s.v1.cni.cncf.io/networks-status: |-
      [{
        (...)
      },{
          "name": "sriov-network-operator/sriov-network-uplink0",
          "interface": "net1",
          "ips": [
              "10.30.38.3"
          ],
          "dns": {}
      },{
          (...)
      }]
```

For direct NIC attachment, you can use `spec.uplinkConfig.ips` in VPPConfig to assign the IPs to the interfaces. A sample excerpt from the values.yaml file:

```yaml
vppConfigs:
- nodeName: wk-1234.dev.cennso.net
  spec:
    uplinkConfig:
      ips:
      - 10.0.40.1/24
```

## Common steps

To deploy FPP using Helm charts, follow these common steps:

1. Install the [FPP CRD chart](https://docs.cennso.com/components/fpp/2.9/installation/crd-chart-configuration.generated.md). FPP CRD is a cluster-wide Helm chart that installs the following Custom Resource Definitions:

   - FPPNetworks
   - IPFixExporters
   - RoutingTables
   - VPPConfigs
   - VPPDeployments
   - VPPInterfaces
   - VPPTools
   - VXLANs

   This Helm chart does not require any configuration values.

2. Install the [FPP Operator chart](https://docs.cennso.com/components/fpp/2.9/installation/operator-chart-configuration.generated.md). This chart installs FPP Operator - a central entity responsible for reconciling FPP CR objects and passing them to Amberd pods. Slicing mechanism is introduced to run multiple FPP Operator per cluster. This is the sample configuration you can use to deploy and configure FPP using the `fpp-operator` chart:

      ```yaml
      # -- Define non default image
      # image:
      #   repository: registry.cennso.com/cennso-dev/fpp-manager
      #   tag: "feature-add-chart-cennso-340-v2.0.0-rc.3.8-d707c377_release"
      # -- Enable detailed logging
      # logLevel: trace
      # dumpControllerEvents: true
      # -- Enable multiple FPP Operators by specifying non default label
      # slice: "testing"
      # -- Set resources that handles production cluster
      resources:
         cpu: 1
         memory: 512Mi
      imagePullSecrets:
      - name: cur-image-pull-secret
      ```

3. Install the [FPP Support chart](https://docs.cennso.com/components/fpp/2.9/installation/support-chart-configuration.generated.md) if you want to have Grafana and Prometheus enabled. FPP Support chart chart provides you with the Prometheus ServiceMonitors and Grafana dashboards that contain FPP metrics. This chart provides two dashboards and two ServiceMonitors, one for the FPP `node` mode and second dedicated to the CGW deployment in the `instance` mode. You install `fpp-support` only once per cluster.

      ```yaml
      prometheus:
         servicemonitor:
            enabled: true
      dashboard:
         enabled: true
      ```

## Next steps

Depending on the goal you want to achieve, follow one of these use cases:

- [Single-node FPP deployment](https://docs.cennso.com/components/fpp/2.9/installation/single-node.md)
- [Multi-node FPP deployment using direct NIC assignment](https://docs.cennso.com/components/fpp/2.9/installation/multinode-direct-nic.md)
- [Multi-node FPP deployment using SRIOV networks as FPP uplinks](https://docs.cennso.com/components/fpp/2.9/installation/multinode-sriov.md)
- [FPP deployment for CGW](https://docs.cennso.com/components/fpp/2.9/installation/cgw-2.0.md)
