> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cdf/3.1/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/cdf/3.1/configuration/reference.md).

# CDF chart

Charging Data Function (CDF) chart installs CDF and provides you with parameters you can use to configure it.

## Configuration

The following table lists the configurable parameters of the CDF chart and their default values.

| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | `{}` | Kubernetes affinity. |
| annotations | object | `{}` | Kubernetes annotations. |
| hostAliases | list | `[{"hostnames":["cdf.localhost"],"ip":"127.0.0.1"}]` | In case one needs semi static DNS entries |
| http.enabled | bool | `true` | Parameter that enables HTTP. |
| http.ip | string | `"0.0.0.0"` | Port on which the HTTP server listens. |
| http.options.live | bool | `true` | Parameter that enables `/livenez`. |
| http.options.metrics | bool | `true` | Parameter that enables `/metrics`. |
| http.options.port | int | `8080` | HTTP port for Nchf, metrics, liveness, and so on. |
| http.options.ready | bool | `true` | Parameter that enables `/readyz`. |
| http.portname | string | `"p8080"` | Kubernetes port name. |
| image.pullPolicy | string | `"IfNotPresent"` | Kubernetes Image Pull Policy. The possible values are: "Always", "IfNotPresent", "Never". |
| image.repository | string | `"registry.cennso.com/cennso/ercdf"` | This parameter configures the docker repository. |
| image.tag | string | `nil` | This parameter is set to v`Chart.AppVersion` by default. |
| imagePullSecrets[0].name | string | `"regcred"` | |
| initScript | object | `{"enabled":true,"image":"quay.io/travelping/nettools:v1.10.0","script":"ip addr show"}` | Init script. |
| initScript.enabled | bool | `true` | Parameter that installs the init script. |
| initScript.image | string | `"quay.io/travelping/nettools:v1.10.0"` | Image for the init script. |
| interimInterval | object | `{"enabled":false,"seconds":1800}` | Global Acct-Interim-Interval if no configuration in APN |
| json | object | `{"enabled":false}` | When enabled, this parameter stores a major part of the CDF configuration in a JSON file. The log library is still configured in the `sys.conf` Erlang file. |
| labels | object | `{}` | Kubernetes labels. |
| logger.level | string | `"warning"` | Log level. The possible values are: `info`, `warning`, and `error`. |
| metrics.enabled | bool | `true` | Parameter that enables creating a service which ServiceMonitor then finds. |
| nodeSelector | object | `{}` | Kubernetes nodeSelector. |
| pcap | object | `{"ga":{"enabled":false,"interface":"prod-ga","interval":"900","maxfilenum":"672"},"image":{"pullPolicy":"IfNotPresent","repository":"travelping/pcap","tag":"1.2.1"},"prefix":""}` | PCAP configuration |
| pingExporter | object | `{"config":{"dns":{"refresh":"1m"},"web":{"listen-address":":9427","telemetry-path":"/metrics"}},"enabled":false,"image":{"pullPolicy":"IfNotPresent","repository":"travelping/ping-exporter","tag":"0.6.0"},"service":{"annotations":{"prometheus.io/port":"9427","prometheus.io/scrape":"true"}}}` | Ping exporter |
| postInitConfig | object | `{}` | Kubernetes postInitConfig. |
| preInitConfig | object | `{}` | Kubernetes preInitConfig. |
| rclone | object | `{"enabled":false,"env":{"RCLONE_REMOTE_NAME":"sftp","RCLONE_REMOTE_PATH":"data"},"hostAliases":{"enabled":false},"image":{"pullPolicy":"IfNotPresent","repository":"travelping/docker-rclone","tag":"v1.0"},"useSSHkeyFile":false}` | Rclone configuration |
| receiver.directory | string | `nil` | Top-level directory in the S3 storage where CDR files are stored. |
| receiver.enabled | bool | `false` | This parameter must be enabled for CDF Receiver to be deployed. |
| receiver.hostname | string | `nil` | Origin-Host in Accounting Answer (ACA) in Diameter Rf interface. |
| receiver.realm | string | `nil` | Origin-Realm in ACA. |
| receiver.simultaneousIncoming | int | `1000` | The number of simultaneously incoming Accounting Requests (ACR), in the Diameter Rf interface, that is allowed. The default value is `1000`. |
| receiver.transportOptions.nodelay | bool | `false` | The parameter that turns on the Nagle's algorithm for merging small packets into larger ones. This improves throughput at the expense of latency. This option is disabled by default. |
| receiver.transportOptions.port | int | `3868` | Diameter Rf port. |
| receiver.transportOptions.receiveBuffer | int | `131072` | The size of the socket send buffer for Diameter Rf from CTF in bytes. The default value equals the operating system settings. |
| receiver.transportOptions.reuseAddress | bool | `false` | The parameter that enables the local binding address {IP,Port} of the socket to be reused immediately. This option is disabled by default. |
| receiver.transportOptions.sendBuffer | int | `131072` | The size of the socket send buffer for Diameter Rf towards CTF in bytes. The default value equals the operating system settings. |
| receiver.transportOptions.transportType | string | `"tcp"` | Rf transport type. tcp or sctp. |
| receiver.waitS3 | int | `100000` | The wait duration before sending a CDR file to the S3 storage, in milliseconds. Every CDR is about 4 kb and the maximum size of the file with CDRs is 2 GB. The default value is `100000`. |
| resources | object | `{"cdf":{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"50m","memory":"128Mi"}},"pcap":{"limits":{"cpu":0.1,"memory":"128Mi"},"requests":{"cpu":0.05,"memory":"64Mi"}},"pingExporter":{"limits":{"cpu":"50m","memory":"64Mi"},"requests":{"cpu":"50m","memory":"64Mi"}},"rclone":{"limits":{"cpu":0.4,"memory":"192Mi"},"requests":{"cpu":0.1,"memory":"64Mi"}}}` | Kubernetes resources. |
| sender.APNSpecificConfig | object | `{}` | For APN specific Configuration see Documentation under Configuration/APN-specific configuration |
| sender.CGFs | list | `[]` | List of addresses and ports where CDRs must be sent. |
| sender.accumulateMax | int | `30000` | Maximum number of CDRs in a file. Every CDR is about 4 kb and the maximum size of the file with CDRs is 2 GB. The default value is `30000`. |
| sender.cdrMax | int | `1` | The maximum number of CDRs sent to a CGF per time unit. The default value is `1`. |
| sender.cdrTime | int | `1000` | The time interval (milliseconds) in which excdf tries to send the maximum number of CDRs. The default value is `1000`. |
| sender.directories | list | `[]` | List of top-level directories in the S3 storage where CDR files are stored. |
| sender.echo | int | `60000` | The time interval between consecutive GTP Echo Requests towards CGF in milliseconds. The default value is `60000`. Cannot be less. |
| sender.enabled | bool | `false` | This parameter must be enabled for CDF Sender to be deployed. |
| sender.responseTimeout | int | `1000` | The waiting duration for the GTP Response in milliseconds. The default value is `1000`. |
| sender.transportOptions.data.receiveBuffer | int | `524288` | The size of the socket receive buffer for the GTP Data Response from CGF in bytes. The default value equals the operating system settings. |
| sender.transportOptions.data.sendBuffer | int | `nil` | The size of the socket send buffer for the GTP Data Request towards CGF in bytes. The default value equals the operating system settings. |
| sender.transportOptions.echo.port | int | `3386` | Port of the UDP Ga interface. |
| sender.waitS3 | int | `10000` | The wait duration before checking for a CDR file in the S3 storage, in milliseconds. The default value is `10000`. |
| storage.local.persistence.enabled | bool | `false` | The parameter that enables the persistent storage. It needs a PVC if enabled. This option is disabled by default. |
| storage.s3 | object | `{"bucket":null,"endpoint":null,"secret":{"accessKey":null,"create":false,"name":"s3-credentials","secretKey":null}}` | Configuration for the S3 storage |
| storage.s3.bucket | string | `nil` | Name of the bucket in the S3 storage |
| storage.s3.endpoint | string | `nil` | Endpoint URL to the S3 storage |
| storage.s3.secret.accessKey | string | `nil` | Access Key to the S3 storage, required only when secret is created |
| storage.s3.secret.create | bool | `false` | Create a secret with credentials to the S3 storage |
| storage.s3.secret.name | string | `"s3-credentials"` | Name of the existing secret with credentials to the S3 storage |
| storage.s3.secret.secretKey | string | `nil` | Secret Key to the S3 storage, required only when secret is created |
| tolerations | list | `[]` | Kubernetes tolerations. |
| vxlanController | object | `{"enabled":false,"image":"openvnf/kube-vxlan-controller-agent:2.1.0"}` | vxlan Controller configuration. |
