Open ClemCreator opened 11 months ago
@ClemTheStudent it sounds like a DNS resolution issue in your kubernetes environment. I'm not sure of anything in our container that would cause this problem.
@ClemTheStudent I would appreciate if you could please share how did you configure cronjob or other manifests for updateing Clamav database ?
Thank you!
Describe the bug
In our Kubernetes deployment of ClamAV, database updates are failing with errors indicating an inability to resolve the host name for the update server (
database.clamav.net
). This issue persists unless ahostAliases
entry is manually added to the pod definition.How to reproduce the problem
hostAliases
.Logs
.WARNING: remote_cvdhead: Download failed (6) WARNING: Couldn't resolve host name WARNING: Failed to get daily database version information from server: https://database.clamav.net ERROR: check_for_new_database_version: Failed to find daily database using server https://database.clamav.net. Trying again in 5 secs..
Expected behavior
The database update process should be able to resolve the host
database.clamav.net
without requiring manual addition of ahostAliases
entry.Actual behavior
Database updates fail due to DNS resolution issues unless an IP is manually mapped to
database.clamav.net
viahostAliases
in the pod specification.Attachments
(Attach any relevant configuration snippets, logs, or screenshots.)
Additional context
(Provide any additional context that might help diagnose the problem, such as network configurations or DNS settings in your Kubernetes cluster.)