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

# Traffic Stream Reporter Cleaner configuration

The following table lists the configurable parameters of the TSR-Cleaner 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 | `{}` | |
| backoffLimit | int | `0` | Specifies the number of retries before marking this job failed. |
| concurrencyPolicy | string | `"Replace"` | Specifies how to treat concurrent executions of a Job. Valid values are: "Allow" (default): allows CronJobs to run concurrently; "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; "Replace": cancels currently running job and replaces it with a new one |
| containerSecurityContext.allowPrivilegeEscalation | bool | `false` | |
| containerSecurityContext.capabilities.drop[0] | string | `"ALL"` | |
| containerSecurityContext.privileged | bool | `false` | |
| containerSecurityContext.readOnlyRootFilesystem | bool | `true` | |
| dryRun | bool | `false` | Defines if cleanup will be done or just simulated. |
| envs | object | `{}` | |
| existingSecret | string | `""` | Name of an existing Kubernetes secret to use in the deployment. |
| failedJobsHistoryLimit | int | `nil` | The number of failed finished jobs to retain. Value must be non-negative integer. Kubernetes defaults it to 1 if unset. |
| image.pullPolicy | string | `"IfNotPresent"` | Image Pull Policy of TSR-Cleaner's pod. May be one of "Always", "IfNotPresent", "Never". |
| image.repository | string | `"registry.cennso.com/cennso/tsr-cleaner"` | Repository holding TSR-Cleaner image. |
| image.tag | string | `""` | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | `[]` | ImagePullSecrets that will be added to the TSR-Cleaner's service account. Example value: `[{name: "regcred"}]` |
| mysql.db | string | `nil` | Name of the database where TSR-Sink aggregated 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. |
| podSecurityContext.runAsNonRoot | bool | `true` | |
| resources.limits.cpu | string | `"100m"` | |
| resources.limits.memory | string | `"128Mi"` | |
| resources.requests.cpu | string | `"100m"` | |
| resources.requests.memory | string | `"128Mi"` | |
| retention | int | `7` | Old data will be cleaned up from the database after this many days. |
| schedule | string | `"0 5 */7 * *"` | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. [Documentation](https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#cron-schedule-syntax) |
| successfulJobsHistoryLimit | int | `nil` | The number of successful finished jobs to retain. Value must be non-negative integer. Kubernetes defaults it to 3 if unset. |
| tablePrefix | string | `""` | The prefix of the tables that will be examined for cleanup. |
| tolerations | list | `[]` | |
| ttlSecondsAfterFinished | int | `nil` | ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. |
