> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/fpp/2.11/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.11/installation/chart-configuration.generated.md).

# FPP chart configuration

The following table lists the configurable parameters of the Fast Path Provider (FPP) chart and their default values.

| Key | Type | Default | Description |
|---|---|---|---|
| VXLANs | object | `{}` | name: VNI map of VXLANs. For testing purposes only! VXLANs should be created by other charts. Also, VXLAN CRs will be replaced with FPPNetwork objects at some point (which should be created by other charts, too) |
| additionalContainers | list | `[]` | List of additional [Containers](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) to configure on the workload. |
| additionalInitContainers | list | `[]` | List of additional [InitContainers](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#containers) to configure on the workload. |
| additionalVolumes | list | `[]` | List of additional [Volumes](https://kubernetes.io/docs/reference/kubernetes-api/config-and-storage-resources/volume/#Volume) to attach to the workload. |
| affinity | object | `{}` | Defines affinity for the pods. |
| altMemifSocketPath | string | `""` | specify alternative memif socket for virtual uplinks. For testing purposes only! |
| annotations | object | `{}` | Annotations that will be present on each resource, but not for the DeamonSet/StatefulSet. |
| bird.metrics.enabled | bool | `false` | Enable BIRD metrics |
| buffersPerNuma | int | `256000` | Specify the number of buffers per NUMA node in VPP. |
| cnfName | string | `""` | CNF name (cennso.net/cnf) label value used in Instance Mode |
| cni.binDir | string | `"/opt/cni/bin"` | Specifies the directory for deploying FPP CNI plugin. |
| cni.debug | bool | `false` | enables FPP CNI plugin debugging. If this environment variable is not empty, all of the CNI commands that the plugin is handling, along with their results are stored in `/tmp/cni.log`. |
| cniVersion | string | `"0.3.0"` | CNI version to use |
| coredump.enabled | bool | `true` | Enable core dumping for VPP and manager processes |
| defaultDataSize | int | `3776` | Specifies the default VPP buffer data size in bytes. Note that VPP buffers also include a 128-byte header and a 128-byte scratchpad, so full buffer size is 256+data size ([ref](https://lists.fd.io/g/vpp-dev/message/17325)). A full buffer size should fit into 4096 bytes. Recommended values: 3776 (4096-256-64) for memif only cases, 3648 (4096-256-128-64) for DPDK (real HW NICs) cases |
| directNICMappings | object | `{}` | specify directNICMappings when SRIOV Network Operator is not to be used. The keys are NIC interface prefixes (to which the index of NIC is added) and the values are the list of PCI ids, e.g. the following mapping     nic: ["0000:8a:00.1", "0000:8a:00.3"] will result in nic0 and nic1 network interfaces being created in VPP for use as either uplink or extnet interfaces |
| enableHugepagesAllocation | bool | `true` | Use hugepages for the heap, statseg and buffers |
| externalNetworks | object | `{}` | List of external networks grouped by interface prefix. Each key denotes an interface prefix, and the value is itself a dict of resource name -> network spec mapping. Network spec can be either a string naming the NAD, or a dict specifying the NAD name ("network") and TX/RX queue settings. Example value: `{"ext-net":{"openshift.io/external0":"external/network0","openshift.io/external1":{"network":"external/network1","numRxQueues":10,"numTxQueues":8,"numRxDesc": 1024,"numTxDesc": 512}}}`. |
| fppNetworks | object | `{}` | name: spec map of FPPNetworks. For testing purposes only! FPPNetwork objects should be created by other charts |
| fullnameOverride | string | `""` | Fullname override for the resources. |
| heapSize | string | `"6G"` | Specifies fixed VPP heap size. Note that you also need to adjust the resources for the pod if you change this. |
| hostPID | bool | `false` | Host PID mode. Host PID namespace is always used in node mode, but isn't used by default in the instance mode. |
| image.pullPolicy | string | `"IfNotPresent"` | Kubernetes Image Pull Policy. May be one of "Always", "IfNotPresent", "Never". |
| image.repository | string | `"registry.cennso.com/cennso-dev/fpp-manager"` | Repository holding FPP Manager image. |
| image.tag | string | `""` | Used to override FPP Manager image's tag. The version in AppVersion in Chart.yaml is used by default. |
| imagePullSecrets | list | `[]` | ImagePullSecrets that will be added to the workload service account. Example value: `[{name: "regcred"}]`. |
| instanceName | string | `""` | Instance name to be used in the instance mode. Defaults to the full resource name of the StatefulSet |
| labels | object | `{}` | Labels that will be present on each resource, but not for the DeamonSet/StatefulSet. |
| livenessProbe.initialDelaySeconds | int | `20` | Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| livenessProbe.periodSeconds | int | `15` | How often (in seconds) to perform the probe. Minimum value is 1. |
| livenessProbe.timeoutSeconds | int | `10` | Number of seconds after which the probe times out. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| logLevel | string | `"debug"` | Sets verbosity of the logging, possible values trace/debug/info/error |
| mode | string | `"node"` | Deployment mode: node (VPPSwitch) or instance (FPP-CGW, etc.) |
| nameOverride | string | `""` | Name override for the chart. |
| networks | object | `{}` | Networks for 'instance' mode, used to create NADs that don't refer to actual NICs. Used to attach FPP memifs to the instances |
| nodeSelector | object | `{}` | Defines Node Selector for pods. |
| podAnnotations | object | `{}` | Annotations that will be present on each pod in DeamonSet/StatefulSet. |
| podLabels | object | `{}` | Labels that will be present on each pod in DeamonSet/StatefulSet. |
| readinessProbe.initialDelaySeconds | int | `3` | Number of seconds after the container has started before readiness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| readinessProbe.periodSeconds | int | `15` | How often (in seconds) to perform the probe. Minimum value is 1. |
| readinessProbe.timeoutSeconds | int | `10` | Number of seconds after which the probe times out. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes |
| resources | object | `{"cpu":"10","hugepages-2Mi":"9Gi","memory":"2Gi"}` | Resources assigned to the FPP container - will be defined as limit and request. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers |
| routingTableSelectors | object | `{}` | Define selector for RoutingTable objects |
| routingTables | object | `{}` | RoutingTable name: spec map. Alpha feature, more high-level routing specs will be used in later version |
| serviceAccount | string | `nil` | Name of already existing Service Account. If configured, then the chart will not generate it. |
| statSegSize | string | `"512M"` | Specifies VPP stats segment size. Note that you also need to adjust the resources for the pod if you change this. |
| terminationGracePeriodSeconds | int | `30` | Duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. |
| tolerations | string | `nil` | Tolerations for the pods |
| updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}` | An update strategy to replace existing FPP pods with new pods. More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/daemon-set-v1/#DaemonSetSpec (for node mode) or https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/stateful-set-v1/#StatefulSetSpec (for instance mode) |
| uplinkResources | object | `{}` | List of uplink resources. The keys are NIC resource names and the values are network specs as in externalNetworks. Example value: `{"openshift.io/uplink0":{"name":"sriov-network-operator/sriov-network-uplink0","numRxQueues": 10}}`. |
| vpp.allowHtSiblings | bool | `false` | Allow HyperThreading sibling cores to be used for VPP. For testing purposes only! |
| vpp.dpdk.enabled | bool | `true` | Enables usage of Data Plane Development Kit. |
| vpp.gdb.enabled | bool | `false` | Run VPP under GDB. This should not be used for production deployments |
| vpp.gdb.script | string | `""` | Specify GDB script to use |
| vpp.maxCPUCores | string | `""` | Define how many cores are used for VPP. Of this number, one core is used as the VPP main core and the remaining cores are used as VPP worker cores that perform packet processing. This option should not be used together with staticCPUCores |
| vpp.multicore | bool | `true` | Enables multicore mode, in which VPP sets up VPP cores in a way compatible with [Kubernetes CPU Manager](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/) according to cgroup information. Otherwise, only single core for VPP main thread is allocated. |
| vpp.netcapLabels | object | `{}` | Defines NetCap labels attached to stream metadata. Example {netcapLabels: {apn: test.cennso.com, lane: lane-b}} |
| vpp.netcapName | string | `""` | Adds the name of the NetCap plugin. It is used to differentiate the source of the traffic stream. |
| vpp.netcapSocketPath | string | `""` | Configures the NetCap Collector socket path |
| vpp.pollSleepUs | int | `0` | Number of microseconds that VPP sleeps between each NIC poll. It reduces performance but is useful for testing on personal hardware. |
| vpp.staticCPUCores | string | `""` | Static VPP CPU core list, like 1,2,3-5. To be used together with isolcpus kernel parameter. In this case, "cpu" resources for the VPP pod aren't configured to avoid cgroup cpuset limits on the VPP container. |
| vpp.stopOnHang | bool | `false` | Makes FPPManager send SIGINT to the VPP process in case if it becomes unresponsive. When used together with `vpp.gdb.script`, this makes it possible to get backtrace for the spot that has caused the problem. |
| vpp.traceAPICalls | bool | `false` | Enables verbose tracing of VPP API calls on the VPPLink level (not via the VPP API tracing facility). |
| vppABFs | object | `{}` | A map where the key represents the name of the VPPABF custom resource, and the value defines the specification for the corresponding VPPABF CR. |
| vppACLs | object | `{}` | A map where the key represents the name of the VPPACL custom resource, and the value defines the specification for the corresponding VPPACL CR. |
| vppConfigs | list | `[]` | List of VPPConfig specs and node names. Example value: ``[{"nodeName":"wk-1234.dev.cennso.net","spec":{"externalNetworkConfig":[{"bridgeDomain":20,"ifacePrefix":"ext-net","ips":["10.100.0.123/24"]}],"uplinkConfig":{"bondMode":"ActiveBackup","prefixLen4":24,"prefixLen6":64}}}]``. If nodeName is ommitted, the config is applied to all nodes. In instance mode, nodeName is ignored. |
| vppInterfaces | object | `{}` | VPPInterface name: spec map. Alpha feature, more high-level interface specs will be used in later version |
| vppTools | list | `[]` | VPPTools that will be deployed together with FPP pod |

## Detailed explanation of specific fields in `values.yaml`

The **networks** field in `values.yaml` is a dictionary where keys represent the names of the NetworkAttachmentDefinitions (NADs) to be created, and their corresponding values are used to generate the CNI configurations within them.

```
networks:
  net1:
    type: memif                     # memif interface
    networkName: gre-outer-network  # FPPNetwork to attach to
    tableName: external-rt          # table to use on the client side
    ipv4:
      addresses:
      - 10.0.0.1/24                 # list of IPv4 addresses
  net2:
    type: memif                     # memif interface
    vni: 300                        # numeric VNI instead of networkName
    table: 202                      # numeric table ID instead of tableName
    numTxQueues: 8                  # number of TX queues on the client (this) side
    numRxQueues: 6                  # number of RX queues on the VPPSwitch side
    memifRingSize: 4096             # memif ring size
    memifBufferSize: 4096           # memif buffer size
    # TX queue to core assignment on the VPPSwitch side.
    # Each entry corresponds with a queue so the number of entries in the list
    # must equal `numRxQueues` above (6).
    txPlacement: ["0", "1", "2", "3", "4", "5"]
    # TX queue to core assignment on the client side.
    # Each entry corresponds with a queue so the number of entries in the list
    # must equal `numTxQueues` above (8).
    clientTxPlacement: ["0", "1", "2", "3", "4", "5", "6", "7"]
    ipv4:
      addresses:
      - 10.20.0.1/24                # list of IPv4 addresses
  mytap:
    type: tap                       # tap interface
    networkName: some-network       # FPPNetwork to attach to
    numTxQueues: 4                  # number of TX queues
    numRxQueues: 4                  # number of RX queues
    tapRxRingSize: 4096             # tap RX ring size
    tapTxRingSize: 4096             # tap TX ring size
    ipv6:
      addresses:
      - 2001:4860:4860::8888/64     # list of IPv6 addresses
```

The **vppACLs** and **vppABFs** fields in `values.yaml` are dictionaries where keys represent the names of the custom resources to be created, and the corresponding values define the specifications for each object.
For a list of all possible values, refer to the documentation of the respective custom resources.

Example:
```yaml
vppABFs:
  abf1:
    bindings:
    - ifName: mygre
    forwarding:
    - lookupInTable: 100
    rules:
    - source: 10.0.0.0/24
  abf2:
    bindings:
    - ifName: srv
    forwarding:
    - nextHopAddress: 10.0.1.10
    - nextHopInterface: mygre
    rules:
    - source: 10.0.0.100/32
```
