Skip to content

Conversation

@promasu
Copy link
Contributor

@promasu promasu commented Oct 17, 2025

According to the ClamAV documentation you should either use the _base image and add persistent storage to the container or use the normal image without persistent storage. There are reported issues with the database breaking for some time when the pod is recreated while freshclam writes the database. This ensures that a newly started pod is always functioning. Freshclam is run by the container either way to retrieve updates (or fix a broken database) but this way you will always start with a working one.

If persistent storage for the clamav pod is required the clamav.extraVolumeMounts or clamav.extraVolumes values in the helm chart can be used to achieve the same.

fixes #315

According to the [ClamAV documentation](https://docs.clamav.net/manual/Installing/Docker.html#image-selection-recommendations) you should either use the _base image and add persistent storage to the container or use the normal image without persistent storage.
There are reported issues with the database breaking for some time when
the pod is recreated while freshclam writes the database. This ensures
that a newly started pod is always functioning. Freshclam is run by the
container either way to retrieve updates (or fix a broken database) but
this way you will always start with a working one.

If persistent storage for the clamav pod is required the `clamav.extraVolumeMounts` or `clamav.extraVolumes` values in the helm chart can be used to achieve the same.

fixes Mailu#315

Signed-off-by: Adrian Nöthlich <[email protected]>
@promasu promasu force-pushed the chore-clamav-remove-data-volume branch from 3cd061a to 6b944c8 Compare October 17, 2025 19:00
@github-actions github-actions bot added area/charts Changes made in the charts directory area/docs Changes made in the docs files labels Oct 17, 2025
@DrPsychick DrPsychick added the type/major Updates to major version label Oct 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/charts Changes made in the charts directory area/docs Changes made in the docs files type/major Updates to major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Freshclam on K8S

2 participants