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

# Traffic Stream Reporter Sink collector

The following table lists the configurable parameters of the TSR-Sink Chart and their default values.

| Key | Type | Default | Description |
|---|---|---|---|
| additionalContainers | list | `[]` | Additional containers |
| additionalInitContainers | list | `[]` | Additional initContainers |
| additionalVolumeMounts | list | `[]` | Additional volume mounts used in main application container |
| additionalVolumes | list | `[]` | Additional volumes |
| affinity | object | `{}` | Assign custom affinity rules to the TSR-Sink. [Documentation](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/) |
| annotations | object | `{}` | Kubernetes annotations for Pods. [Documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/) |
| existingSecret | string | `""` | Name of an existing Kubernetes secret to use in the deployment. |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Image Pull Policy of TSR-Sink's deploymnent. May be one of "Always", "IfNotPresent", "Never". |
| image.repository | string | `"registry.cennso.com/cennso/tsr-ipfix"` | |
| image.tag | string | `"latest"` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | ImagePullSecrets that will be added to TSR-Sink's service account. Example value: `[{name: "regcred"}]`. |
| initContainer.image.pullPolicy | string | `"IfNotPresent"` | Image Pull Policy of TSR-Sink's init-container. May be one of "Always", "IfNotPresent", "Never". |
| initContainer.image.repository | string | `"alpine"` | |
| initContainer.image.tag | string | `"3.16"` | Tag of init-container image |
| initContainer.resources.limits.cpu | int | `1` | |
| initContainer.resources.limits.memory | string | `"1Gi"` | |
| initContainer.resources.requests.cpu | float | `0.1` | |
| initContainer.resources.requests.memory | string | `"128Mi"` | |
| initContainer.securityContext | object | `{}` | Security context of TSR-Sink init-container. |
| ipfix.additionalConfig | string | `nil` | Additional raw nfacctd config-keys which will be appended to the config. Use with caution as it might conflict with the present options of this chart! [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS) |
| ipfix.aggregates | list | `[]` | Configuration of custom IPFIX aggregations. Setting aggregates will remove all predefined 'type' settings. |
| ipfix.debug | bool | `false` | Enables debug. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L36) |
| ipfix.listenIP | string | `"0.0.0.0"` | Defines the IPv4/IPv6 address where to bind the nfacctd daemon. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1734) |
| ipfix.primitives | string | `nil` | Custom-defined primitives [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/examples/primitives.lst.example) |
| ipfix.sqlDontTryUpdate | string | `nil` | This directive instructs pmacct to use a more efficient INSERT-only mechanism. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1375) |
| ipfix.sqlHistory | string | `"1d"` | Enables historical accounting by placing accounted data into configurable time-bins. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1283) |
| ipfix.sqlHistoryRoundoff | string | `"d"` | Enables alignment of minutes (m), hours (h), days of month (d), weeks (w) and months (M). [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1302) |
| ipfix.sqlRefreshTimeSeconds | int | `60` | Time interval, in seconds, between consecutive executions of the plugin cache scanner. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1250) |
| ipfix.type | string | `"default"` | Predefined Type of IPFIX Configuration ( default | dest ) |
| ipfix.ueNet | string | `nil` | Defines a list of networks for the UE (needed for ingress/egress distinction). Only used when the `type` is set to `dest` and no `aggregates` are defined. Example: ["10.0.0.0/8","FC00::/7"] |
| minReadySeconds | int | `10` | Minimum number of seconds for which the pod should be ready without any of its container crashing, for it to be considered available. |
| mysql.db | string | `nil` | Name of the database which should store the data. |
| mysql.host | string | `nil` | Host address of the SQL Database Server. |
| mysql.pass | string | `nil` | Password for the SQL Database Server. |
| mysql.port | int | `3306` | Port of the SQL Database Server. |
| mysql.user | string | `nil` | User for the SQL Database Server. |
| nameOverride | string | `""` | |
| podSecurityContext | object | `{"fsGroup":2000}` | [Documentation](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| replicaCount | int | `1` | Number of deployment replicas. |
| resources.limits.cpu | int | `1` | |
| resources.limits.memory | string | `"1Gi"` | |
| resources.requests.cpu | float | `0.5` | |
| resources.requests.memory | string | `"768Mi"` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
| securityContext.readOnlyRootFilesystem | bool | `true` | |
| securityContext.runAsNonRoot | bool | `true` | |
| securityContext.runAsUser | int | `1000` | |
| service.enabled | bool | `true` | defines if k8s service is created |
| service.port | int | `4739` | Port on which TSR-Sink's service will expose the nfacctd endpoint. |
| service.type | string | `"ClusterIP"` | Service type used for publishing. [Documentation](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) |
| 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 | list | `[]` | Kubernetes tolerations. [Documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) |
| updateStrategy | object | `{"rollingUpdate":{"maxUnavailable":1},"type":"RollingUpdate"}` | An update strategy to replace existing TSR-Sink pods with new pods. [Documentation](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#deploymentstrategy-v1-apps) |
