> 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/collector.md).

# Traffic Stream Reporter Collector configuration

The following table lists the configurable parameters of the TSR-Collector 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 containers |
| additionalVolumes | list | `[]` | Additional volumes |
| affinity | object | `{}` | Assign custom affinity rules to the TSR-Collector. [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/) |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | Image Pull Policy of TSR-Collector'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-Collector's service account. Example value: `[{name: "regcred"}]`. |
| initScript.enabled | bool | `false` | Enables InitScript. |
| initScript.env | object | `{}` | Sets Env variables for InitScript. |
| initScript.image.pullPolicy | string | `"IfNotPresent"` | |
| initScript.image.repository | string | `"registry.cennso.com/cennso/nettools"` | |
| initScript.image.tag | string | `"v1.10.1"` | |
| initScript.script | string | `"echo \"script configuration is missing\"\n"` | Defines Content of the InitScript. |
| initScript.securityContext | object | `{"capabilities":{"add":["NET_ADMIN"]}}` | 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.debug | bool | `false` | Enables debug. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L36) |
| ipfix.instances[0].listenPort | int | `4739` | Defines the UDP port where to bind the nfacctd daemon. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L1724) |
| ipfix.instances[0].name | string | `"instance1"` | The name must be no more than 15 characters. |
| ipfix.instances[0].targets | list | `[{"host":"<host1>","port":"<port1>"}]` | List of remote IP addresses and ports to which NetFlow/sFlow datagrams are to be replicated to (e.g. TSR-Sink). |
| 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.teeSourceIP | string | `nil` | Defines the local IP address from which NetFlow/sFlow datagrams are to be replicate from. Only a numerical IPv4/IPv6 address is expected. The supplied IP address is required to be already configured on one of the interfaces. [Documentation](https://github.com/pmacct/pmacct/blob/1.7.7/CONFIG-KEYS#L3000) |
| 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. |
| 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.collector.limits.cpu | int | `1` | |
| resources.collector.limits.memory | string | `"512Mi"` | |
| resources.collector.requests.cpu | float | `0.5` | |
| resources.collector.requests.memory | string | `"256Mi"` | |
| resources.initScript.limits.cpu | string | `"50m"` | |
| resources.initScript.limits.memory | string | `"64Mi"` | |
| resources.initScript.requests.cpu | string | `"50m"` | |
| resources.initScript.requests.memory | string | `"64Mi"` | |
| 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.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) |
