> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cdf/4.2/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/4.2/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` | Enables HTTP. |
| http.ip | string | `"0.0.0.0"` | IP address on which the HTTP server listens |
| http.options.live | bool | `true` | Enables `/livenez`. |
| http.options.metrics | bool | `true` | Enables `/metrics`. |
| http.options.port | int | `8080` | HTTP port for metrics, Kubernetes liveness, and readiness |
| http.options.ready | bool | `true` | 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_receiver | string | `"registry.cennso.com/cennso/cdf_receiver"` | Configures the Docker repository for CDF receiver. |
| image.repository_sender | string | `"registry.cennso.com/cennso/cdf_sender"` | Configures the Docker repository for CDF sender. |
| image.tag | string | `nil` | This parameter is set to `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` | 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 there is no configuration in APN |
| json | object | `{"enabled":true}` | Store a major part of the CDF configuration in a JSON file. |
| labels | object | `{}` | Kubernetes labels |
| logger.level | string | `"warning"` | Log level. The possible values are: `info`, `warning`, and `error`. |
| metrics.enabled | bool | `true` | Enables creating a service which ServiceMonitor finds. |
| nats_create.bucket.description | string | `nil` | Bucket description |
| nats_create.bucket.enabled | bool | `false` | Enables the creation of a NATS key-value bucket at CDF startup. This resource must be available on the NATS service for proper NATS key-value storage. This option is disabled by default. |
| nats_create.bucket.history | string | `nil` | Number of historical values to store per key (default is 1, max is 64) |
| nats_create.bucket.max_bucket_size | string | `nil` | Maximum storage size for the bucket (in bytes) |
| nats_create.bucket.max_value_size | string | `nil` | Maximum allowed size per value (in bytes) |
| nats_create.bucket.name | string | `nil` | Bucket name |
| nats_create.bucket.replicas | string | `nil` | Number of data replicas to store |
| nats_create.bucket.storage | string | `nil` | Storage backend type: `file` or `memory` |
| nats_create.bucket.ttl | string | `nil` | Time to keep values (in nanoseconds) |
| nats_create.bucket.url | string | `nil` | NATS URL. Example: `nats://192.168.0.1:4222`. |
| nats_create.consumer | object | `{"ack_policy":"explicit","ack_wait":null,"deliver_policy":"all","durable_name":null,"enabled":false,"filter_subject":null,"max_ack_pending":null,"stream_name":null,"url":null}` | NATS consumer configuration. See [Consumers](https://docs.nats.io/nats-concepts/jetstream/consumers) and [Gnat.Jetstream](https://hexdocs.pm/gnat/Gnat.Jetstream.html) for more information. |
| nats_create.consumer.ack_policy | string | `"explicit"` | Message acknowledgement mode. The possible values are: `explicit` (a consumer must acknowledge each message; the only allowed option for pull consumers), `none` (no need to acknowledge messages, the server assumes it on delivery), `all` (only the last received message must be acknowledged, all previous messages are acknowledged automatically). |
| nats_create.consumer.ack_wait | string | `nil` | Time in nanoseconds the server waits for an acknowledgement before redelivering. Under high load, CDF may create duplicated CDRs if a message is redelivered. |
| nats_create.consumer.deliver_policy | string | `"all"` | Order in which the consumer starts receiving messages. The possible values are: `all` (from the earliest available message), `last` (from the last added message), `new` (only messages after consumer creation), `by_start_sequence` (by sequence specifies in **opt_start_seq**), `by_start_time` (by timestamp specified in **opt_start_time**), `last_per_subject` (from latest per subject). |
| nats_create.consumer.durable_name | string | `nil` | Consumer name |
| nats_create.consumer.enabled | bool | `false` | Enables the creation of a NATS consumer at CDF startup. This resource must be available on the NATS service for proper CDR transmission. This option is disabled by default. |
| nats_create.consumer.filter_subject | string | `nil` | Filter to select messages from a subset when using a wildcard subject. |
| nats_create.consumer.max_ack_pending | string | `nil` | Maximum unacknowledged messages before suspending delivery. Applies across all subscribers. `-1` allows unlimited pending acknowledgements, for example in a case of no flow control. |
| nats_create.consumer.stream_name | string | `nil` | Stream name |
| nats_create.consumer.url | string | `nil` | NATS URL. Example: `nats://192.168.0.1:4222`. |
| nats_create.stream | object | `{"discard":"new","enabled":false,"max_age":null,"max_bytes":null,"max_msgs":null,"name":null,"num_replicas":null,"retention":"workqueue","storage":null,"subjects":null,"url":null}` | NATS Stream configuration. See [Stream](https://docs.nats.io/nats-concepts/jetstream/streams) and [Gnat.Jetstream](https://hexdocs.pm/gnat/Gnat.Jetstream.html) for more information. |
| nats_create.stream.discard | string | `"new"` | Defines the behaviour when a Stream reaches its limit. The possible options are: `old` (default) - deletes old messages; `new` - rejects new messages. |
| nats_create.stream.enabled | bool | `false` | Enables the creation of a NATS stream at CDF startup. This resource must be available on the NATS service for proper CDR transmission. This option is disabled by default. |
| nats_create.stream.max_age | string | `nil` | Maximum message age in the Stream, in nanoseconds |
| nats_create.stream.max_bytes | string | `nil` | Maximum Stream size in bytes. If exceeded, old messages are discarded or new messages are rejected. |
| nats_create.stream.max_msgs | string | `nil` | Maximum message count in the Stream. If exceeded, CDF follows discard rules to remove the oldest messages or reject new ones. |
| nats_create.stream.name | string | `nil` | Stream name |
| nats_create.stream.num_replicas | string | `nil` | Number of replicas for each message |
| nats_create.stream.retention | string | `"workqueue"` | Message retention policy in the Stream. The possible values are: `limits` (size limit), `interest` (only kept if consumers are interested), `workqueue` (keeps until acknowledged). |
| nats_create.stream.storage | string | `nil` | Storage backend type: `file` or `memory` |
| nats_create.stream.subjects | string | `nil` | Subjects are comma-separated. Example: "asd.*,qwe.*" |
| nats_create.stream.url | string | `nil` | NATS URL. Example: `nats://192.168.0.1:4222`. |
| nats_services.archive | object | `{"compression":"none","creds":null,"encoding":"JSON","error_subject":null,"poolSize":8,"requestTimeout":1000,"subject":null,"tls":{"certificates":null,"enabled":false},"url":null}` | NATS stream settings for archiving CDRs |
| nats_services.archive.compression | string | `"none"` | Compression used for CDRs stored in the archive. The possible values are: "zlib", "none". |
| nats_services.archive.creds | string | `nil` | Name of the Kubernetes secret that contains the [NATS user credentials file](https://docs.nats.io/using-nats/developer/connecting/creds). The credential file is named `user.creds` and is generated by the [`nsc` binary](https://github.com/nats-io/nsc). |
| nats_services.archive.encoding | string | `"JSON"` | Encoding used for CDRs stored in the archive. The possible values are: "ErlangTerm", "JSON". |
| nats_services.archive.error_subject | string | `nil` | [NATS subject](https://docs.nats.io/nats-concepts/subjects) for CDR errors. Example: `CDR.error` |
| nats_services.archive.poolSize | int | `8` | Number of connections CDF establishes towards NATS. |
| nats_services.archive.requestTimeout | int | `1000` | Number of milliseconds CDF sender waits for a response after archiving a CDR to NATS |
| nats_services.archive.subject | string | `nil` | NATS subject for archiving CDRs. Example: `CDR.archived` |
| nats_services.archive.tls | object | `{"certificates":null,"enabled":false}` | NATS archive client TLS configuration |
| nats_services.archive.tls.certificates | string | `nil` | Name of the Kubernetes secret that contains the [NATS TLS certificate files](https://docs.nats.io/using-nats/developer/connecting/tls). The files in the secret must be named `tls.crt`, `tls.key`, and `ca.crt`. |
| nats_services.archive.tls.enabled | bool | `false` | Enables or disables TLS for the NATS client. |
| nats_services.archive.url | string | `nil` | NATS URL. Example: `nats://192.168.0.1:4222` |
| nats_services.kv_store | object | `{"bucket":null,"creds":null,"poolSize":8,"tls":{"certificates":null,"enabled":false},"url":null}` | NATS key-value store settings used for storing operational state |
| nats_services.kv_store.bucket | string | `nil` | NATS bucket name. Example: cdrbucket |
| nats_services.kv_store.creds | string | `nil` | Name of the Kubernetes secret that contains the [NATS user credentials file](https://docs.nats.io/using-nats/developer/connecting/creds). The credential file is named `user.creds` and is generated by the [`nsc` binary](https://github.com/nats-io/nsc). |
| nats_services.kv_store.poolSize | int | `8` | Number of connections CDF establishes towards NATS |
| nats_services.kv_store.tls | object | `{"certificates":null,"enabled":false}` | NATS key-value client TLS configuration |
| nats_services.kv_store.tls.certificates | string | `nil` | Name of the Kubernetes secret that contains the [NATS TLS certificate files](https://docs.nats.io/using-nats/developer/connecting/tls). The files in the secret must be named `tls.crt`, `tls.key`, and `ca.crt`. |
| nats_services.kv_store.tls.enabled | bool | `false` | Enables or disables TLS for the NATS client. |
| nats_services.kv_store.url | string | `nil` | NATS URL. Example: nats://192.168.0.1:4222 |
| nats_services.work_queue | object | `{"consumerName":null,"creds":null,"poolSize":8,"requestTimeout":1000,"streamName":null,"subject":null,"tls":{"certificates":null,"enabled":false},"url":null}` | NATS work queue settings for CDR transport |
| nats_services.work_queue.consumerName | string | `nil` | Existing NATS consumer name. Example: CDF |
| nats_services.work_queue.creds | string | `nil` | Name of the Kubernetes secret that contains the [NATS user credentials file](https://docs.nats.io/using-nats/developer/connecting/creds). The credential file is named `user.creds` and is generated by the [`nsc` binary](https://github.com/nats-io/nsc). |
| nats_services.work_queue.poolSize | int | `8` | Number of connections CDF establishes towards NATS. |
| nats_services.work_queue.requestTimeout | int | `1000` | Number of milliseconds CDF receiver waits for a response after sending a CDR to NATS |
| nats_services.work_queue.streamName | string | `nil` | Existing NATS stream name. Example: CDR |
| nats_services.work_queue.subject | string | `nil` | NATS subject for work queue. Example: `CDR.arrived` |
| nats_services.work_queue.tls | object | `{"certificates":null,"enabled":false}` | NATS work queue client TLS configuration |
| nats_services.work_queue.tls.certificates | string | `nil` | Name of the Kubernetes secret that contains the [NATS TLS certificate files](https://docs.nats.io/using-nats/developer/connecting/tls). The files in the secret must be named `tls.crt`, `tls.key`, and `ca.crt`. |
| nats_services.work_queue.tls.enabled | bool | `false` | Enables or disables TLS for the NATS client. |
| nats_services.work_queue.url | string | `nil` | NATS URL. Example: nats://192.168.0.1:4222 |
| 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.enabled | bool | `false` | Must be enabled to deploy CDF Receiver. |
| receiver.hostname | string | `nil` | Origin-Host in Accounting Answer (ACA) in Diameter Rf interface |
| receiver.nodeID | string | `nil` | Unique NodeID for the receiver, up to 20 characters |
| receiver.rateLimit | int | `1000` | Maximum number of ACRs received per second, limit applied on Rf interface. A higher rate results in the TOO_BUSY code. |
| receiver.realm | string | `nil` | Origin-Realm in ACA |
| receiver.sequenceNumberPersistenceInterval | string | `nil` | Number of CDRs the receiver processes before persisting the local sequence number |
| receiver.sequenceNumberPersistenceTimeInterval | string | `nil` | Maximum timespan between attempts to update the persisted local sequence number |
| receiver.transportCompression | string | `"none"` | Compression algorithm used for CDR transmission from the CDF Receiver to the Sender. The possible values are: "zlib", "none". |
| receiver.transportEncoding | string | `"JSON"` | Defines the encoding format for CDR transmission from the CDF Receiver to the Sender. The possible values are: "JSON", "ErlangTerm". |
| receiver.transportOptions.nodelay | bool | `false` | Turns on 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` | 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` | 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` | 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` |
| 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, navigate to the Configuration/APN-specific CDF sender configuration document. |
| sender.CGFs | list | `[]` | List of addresses and ports where CDRs must be sent |
| sender.cdr_limit_per_cgf | int | `1000` | Maximum number of processes that can send CDRs to a CGF at the same time |
| sender.echo | int | `60000` | Time interval between consecutive GTP Echo Requests towards CGF in milliseconds. The default value is `60000`. Cannot be less. |
| sender.enabled | bool | `false` | Must be enabled to deploy CDF sender. |
| sender.rateLimit | int | `1000` | Maximum number of CDRs received from NATS per second |
| sender.responseTimeout | int | `1000` | Wait duration for the GTP Response in milliseconds. The default value is `1000`. |
| sender.retries | int | `1` | The number of times a CDR request is retried before failing. |
| sender.sequenceNumberPersistenceInterval | string | `nil` | Number of CDRs the receiver processes before persisting the GTP sequence number |
| sender.sequenceNumberPersistenceTimeInterval | string | `nil` | Maximum timespan between attempts to update the persisted GTP sequence number |
| 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. |
| tolerations | list | `[]` | Kubernetes tolerations |
| vxlanController | object | `{"enabled":false,"image":"openvnf/kube-vxlan-controller-agent:2.1.0"}` | vxlan Controller configuration |
