kubezero/charts/clamav/templates/configmap.yaml

53 lines
1.5 KiB
YAML
Raw Normal View History

2021-08-18 12:02:40 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "kubezero-lib.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubezero-lib.labels" . | nindent 4 }}
data:
clamd.conf: |
LogTime yes
LogClean yes
LogSyslog no
LogVerbose yes
2021-08-18 12:02:40 +00:00
LogFileMaxSize 0
LogFile /dev/stdout
DatabaseDirectory /var/lib/clamav
TCPSocket 3310
LocalSocket /run/clamav/clamd.sock
User clamav
ExitOnOOM yes
Foreground yes
2023-12-14 22:05:05 +00:00
MaxScanSize {{.Values.limits.scanSize}}M
MaxFileSize {{.Values.limits.fileSize}}M
2021-08-18 12:02:40 +00:00
# Close the connection when the data size limit is exceeded.
# The value should match your MTA's limit for a maximum attachment size.
# Default: 25M
2023-12-14 22:05:05 +00:00
StreamMaxLength {{.Values.limits.scanSize}}M
2021-08-18 12:02:40 +00:00
# Maximum length the queue of pending connections may grow to.
# Default: 200
2023-12-14 22:05:05 +00:00
MaxConnectionQueueLength {{.Values.limits.connectionQueueLength}}
2021-08-18 12:02:40 +00:00
# Maximum number of threads running at the same time.
# Default: 10
2023-12-14 22:05:05 +00:00
MaxThreads {{.Values.limits.maxThreads}}
2021-08-18 12:02:40 +00:00
# This option specifies how long to wait (in milliseconds) if the send buffer
# is full.
# Keep this value low to prevent clamd hanging.
#
# Default: 500
2023-12-14 22:05:05 +00:00
SendBufTimeout {{.Values.limits.sendBufTimeout}}
2021-08-18 12:02:40 +00:00
freshclam.conf: |
LogTime yes
LogVerbose yes
NotifyClamd /etc/clamav/clamd.conf
Checks 24
LogSyslog no
DatabaseOwner root
2023-12-14 22:05:05 +00:00
DatabaseMirror {{ .Values.freshclam.mirrors }}