-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(clamav): Switch to official clamav image #456
Conversation
@desaintmartin Did you have a chance to look at this? (Mentioning you since you seemed interested in #325) |
That's nice, thanks for the contribution! Is there anything to know when changing to upstream? |
@desaintmartin Not that I am aware of, no. As you can see, the UID of the clamav user in the image changes. But at least in our use case, everything else worked as expected. Something we experienced with both MailU's and upstream's _base images - since they don't contain any database - were problems with the CDN's rate limit. Especially in combination with the HPA (which is enabled by default), the rate limit was quickly exhausted, causing the pods failing to start at all. We solved that by using a caching proxy (see #458 for the necessary changes to the chart). But maybe the HPA shouldn't be enabled by default, since frequently starting new pods facilitates early exhaustion of the rate limit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we at Wiremind disabled this HPA due to the small efficiency gains versus all those problems, maybe it should indeed be disabled by default, which would require (another) breaking change.
Anyway, thanks for the contribution, everything seems fine! lgtm
|
It wasn't, thanks for noticing!
As I understand the docs, that option is only relevant when freshclam is started as root (not the case by default) and in that case the user given has to have write access to the database directory. Since (in the default security context) that directory is owned by group 101, the setting should probably default to user 100 as well (although it doesn't take effect in default config anyway)
|
I was worried because of #322 which implies there could be issues when a PVC is involved. They had to give the pod security context the fsGroup of 2000, I assume to match the value in freshclam We're about to rollout an install using Flux to AKS with a PVC... and I was double checking issues and settings. This got me worried enough that we decided we were going to try and override the freshclam conf defaults to use a matching GID, but unclear if it's really going to be necessary. We'd rather just take the default values but it's unclear if we can. |
I chose the _base version of the image because the previously used MailU version didn't include a database either.
Fixes #325
Fixes #432