> 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/technical-reference/crds/FPPDeployment.md).

# FPPDeployment definition

The `FPPDeployment` Custom Resource (CR) is applied on the Management Cluster and deploys an FPP node in the Core Cluster. An FPP node is a VPP-based switch for all FPP-enabled workloads. It also creates an overlay network in the Core Cluster between the nodes.

## Compositions

The `FPPDeployment` supports the following compositions:

- **fpp-generic** (default) - A generic composition that supplies all configuration through Helm values
- **fpp-af-xdp** - AF_XDP driver with macvlan network attachment
- **fpp-dpdk** - DPDK/SRIOV uplinks with structured bonding configuration

## Configuration examples

### AF_XDP deployment (fpp-af-xdp)

```yaml
apiVersion: fpp.cennso.com/v1alpha1
kind: FPPDeployment
metadata:
  name: example-fpp-xdp
  namespace: cennso-infra
spec:
  version: <version>
  compositionRef:
    name: fpp-af-xdp
  connectionSecretRef:
    name: example-core-cluster
    namespace: cennso-infra
  operatorRef:
    name: example-operator
    namespace: cennso-infra
  targetNamespace: fpp
  afXDPComposition:
    masterInterface: bond0
    uplinkCIDR: "10.10.0.0/24"
  resources:
    cpu: "10"
    memory: 2Gi
    hugepages-2Mi: 5Gi
```

### DPDK/SRIOV deployment (fpp-dpdk)

```yaml
apiVersion: fpp.cennso.com/v1alpha1
kind: FPPDeployment
metadata:
  name: example-fpp-dpdk
  namespace: cennso-infra
spec:
  version: <version>
  compositionRef:
    name: fpp-dpdk
  connectionSecretRef:
    name: example-core-cluster
    namespace: cennso-infra
  operatorRef:
    name: example-operator
    namespace: cennso-infra
  targetNamespace: fpp
  dpdkComposition:
    uplink0ResourceName: openshift.io/uplink0_vfio
    uplink0Network: fpp/sriov-network-uplink0
    uplink1ResourceName: openshift.io/uplink1_vfio
    uplink1Network: fpp/sriov-network-uplink1
    bondMode: XOR
  resources:
    cpu: "10"
    memory: 2Gi
    hugepages-2Mi: 9Gi
```

### Generic deployment (fpp-generic)

```yaml
apiVersion: fpp.cennso.com/v1alpha1
kind: FPPDeployment
metadata:
  name: example-fpp
  namespace: cennso-infra
spec:
  version: <version>
  compositionRef:
    name: fpp-generic
  connectionSecretRef:
    name: example-core-cluster
    namespace: cennso-infra
  targetNamespace: fpp
  operatorName: vpp-operator

  logLevel: trace
  nodeSelector:
    node-role.cennso.net/worker: dataplane

  vpp:
    multicore: false
    dpdk:
      enabled: false
    stopOnHang: false
    traceAPICalls: true

  heapSize: 2Gi
  statSegSize: 512M
  resources:
    cpu: "2"
    memory: 4Gi
    hugepages-2Mi: 2Gi
```

## Configuration parameters

These are all parameters that you can use to configure the `FPPDeployment` CR:

**CRD specification:** [xfppdeployment_definition.yaml](https://docs.cennso.com/api/spec/components/fpp/latest/assets/xrds/cennso-fpp/xfppdeployment_definition.yaml?form=bundled&kind=crd)
