clamav

by joaquinito2051

Helm chartv0.0.3App v0.0.3

A Helm chart to install ClamAV on a cluster. This chart will run a single deployment as the clamd server with a configurable number of replicas. Then, a daemonset that mounts the host file system scans using clamdscan and the remote server.

About this chart

ClamAV

A Helm chart to install ClamAV on a cluster. This chart will run a single deployment as the clamd server with a configurable number of replicas. Then, a daemonset that mounts the host file system scans using clamdscan and the remote server.

Values

KeyTypeDefaultDescription
imagePullSecretslist[]A list of image pull secrets to use in both the server and scanner
nameOverridestring""
fullnameOverridestring""
server.replicaCountint2The number of replicas to run in the server deployment
server.image.repositorystring"quay.io/fairwinds/clamav"The image repository to use for the server deployment. Version will be the application version in Chart.yaml
server.image.pullPolicystring"Always"The imagePullPolicy for the server image
server.serviceAccount.createbooltrueSpecifies whether a service account should be created
server.serviceAccount.annotationsobject{}Annotations to add to the service account
server.serviceAccount.namestringnilThe name of the service account to use. If not set and create is true, a name is generated using the fullname template
server.podSecurityContextobject{}
server.securityContextobject{}
server.service.typestring"ClusterIP"The type of service to run for the deployment
server.service.portint3310The port number to expose the service on
server.resourcesobject{"limits":{"cpu":"1000m","memory":"2Gi"},"requests":{"cpu":"1000m","memory":"2Gi"}}The resources block for the server deployment pods
server.nodeSelectorobject{}A nodeSelector block for the server pods.
server.tolerationslist[]
server.affinityobject{}
scanner.tolerationslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/master"}]A list of tolerations for the scanner daemonset pods.
scanner.resourcesobject{"limits":{"cpu":"100m","memory":"50Mi"},"requests":{"cpu":"100m","memory":"50Mi"}}The resources block for the scanner daemonset pods
scanner.image.repositorystring"quay.io/fairwinds/clamav"
scanner.image.pullPolicystring"Always"
scanner.serviceAccount.createbooltrueSpecifies whether a service account should be created
scanner.serviceAccount.annotationsobject{}Annotations to add to the service account if it is created
scanner.serviceAccount.namestringnilThe name of the service account to use. If not set and create is true, a name is generated using the fullname template

Deploy clamav with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has clamav on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartclamav is pinned at v0.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply