> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/latest/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/latest/deployment-guides/single-node.md).

# Deploy Fast Path Provider on a single node

This tutorial describes how to install and configure Fast Path Provider (FPP) on one node to provide a basic network layer for other Travelping CNFs. You can install FPP either on a single node or on multiple nodes, however, one-node deployment is suitable only for testing purposes and doesn't provide cross-node connectivity.

## Prerequisites

- [Requirements](https://docs.cennso.com/components/fpp/latest/requirements.md)
- [VPP Operator deployed](https://docs.cennso.com/components/fpp/latest/deployment-guides/vppoperator-deployment.md)

Terminology used in the installation document:

- FPP node - FPP pod in the `node` mode, which acts as a virtual switch on each Data Plane node

## Steps

Deploy FPP in the [`node` mode](https://docs.cennso.com/components/fpp/latest/deployment-guides.md) by creating an `FPPDeployment` CR on the Management Cluster. This CR deploys FPP components to the Core Cluster.

### Minimal example

```yaml
# Apply this on the Management Cluster
apiVersion: fpp.cennso.com/v1alpha1
kind: FPPDeployment
metadata:
  name: single-node-fpp
  namespace: cennso-infra
spec:
  version: <version>
  connectionSecretRef:
    name: example-core-cluster
    namespace: cennso-infra
  operatorName: node-op
  useHugepages: false
  resources:
    cpu: "2"
    memory: 4Gi
    hugepages-2Mi: 2Gi
```

### Basic configuration options

The following sections describe the basic configuration options for the `FPPDeployment` CR:

   - **spec.connectionSecretRef** parameter specifies the Core Cluster reference, where the FPP node will be deployed

   - **spec.operatorName** or **spec.operatorRef** parameter designates which VPP Operator will handle the FPP node deployment.

     - **spec.operatorRef** references a `VPPOperator` resource on the Management Cluster to resolve the operator name for the VPP Operator deployed in the Core Cluster.
     - **spec.operatorName** directly specifies the name of the VPP Operator. This name must match the **spec.releaseName** of the target [VPPOperator](https://docs.cennso.com/components/fpp/latest/concepts/VPPOperator.md).

   - **spec.version** parameter specifies the FPP Helm chart version

   - To specify the Helm chart repository, use **spec.repository**. It will download the `fpp` chart from the specified URL.

      ```yaml
      repository: oci://registry.cennso.com/cennso/charts
      ```

   - To overwrite the VPP Worker image, use **spec.image** option, where you can specify container **repository** and **tag**:

      ```yaml
      image:
        repository: registry.cennso.com/cennso/vpp-worker
        tag: v3.0.0
      ```

   - By default, the `cennso-pull-secret` is used to pull the VPP Worker image. To download a container image from a repository other than the Cennso private repository, configure **spec.imagePullSecrets**:

      ```yaml
      imagePullSecrets:
      - name: image-secret
      ```

     Instead of using an image pull secret, you can use a preconfigured service account:

      ```yaml
      serviceAccountName: fpp-sa
      ```

   - You can specify an optional log level with **spec.logLevel**:

      ```yaml
      # available values: trace, debug, info, error
      logLevel: "trace"
      ```

      To enable more verbose logging, VPP API calls (on the internal intermediate VPPLink level) can be logged:

      ```yaml
      vpp:
        traceAPICalls: true
      ```

   - If you want to run the FPP node on a specific node, use **spec.nodeSelector**:

      ```yaml
      nodeSelector:
        kubernetes.io/hostname: worker-node-name
      ```

      You can also use **spec.affinity**  to define [Kubernetes affinity](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node) terms:

      ```yaml
      affinity:
        nodeAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
            nodeSelectorTerms:
            - matchExpressions:
              - key: kubernetes.io/hostname
                operator: In
                values:
                - worker-dataplane-2001
      ```

   - You can configure the number of buffers per NUMA for optimal performance and memory consumption using **spec.buffersPerNuma**:

     ```yaml
     buffersPerNuma: 256000
     ```

   - The **spec.resources** and **spec.useHugepages** parameters set the amount of resources for the FPP node pod:

      ```yaml
      useHugepages: false
      resources:
        cpu: "2"
        memory: 4Gi
        hugepages-2Mi: 2Gi
      ```

## Verification

After creating FPPDeployment, you can see the status of the deployment using the `kubectl` command on the Management Cluster:

```bash
kubectl get fppdeployments.fpp.cennso.com -n cennso-infra
```

Sample output:

```
NAME                        SYNCED   READY   CONNECTION-SECRET   AGE
single-node-fpp             True     True                        1h
```

You can also check if the FPP node deployment is created on the Core Cluster:

```bash
kubectl get vppdeployments.fpp-manager.cennso.com -n fpp
```

See the sample output below. **READY** set to `true` means that VPP pods are up and running:

```
NAMESPACE       NAME             READY   IMAGE                                                     AGE
cennso-system   fpp-node         True    registry.cennso.com/cennso/vpp-worker:v3.0.2            1h9m
```
