From 2500342e47be65820469175d55e2bea90e28af8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 24 Aug 2023 08:34:30 +0300 Subject: [PATCH] wildduck: Add ClamAV --- wildduck/clamav.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 wildduck/clamav.yaml diff --git a/wildduck/clamav.yaml b/wildduck/clamav.yaml new file mode 100644 index 0000000..993b764 --- /dev/null +++ b/wildduck/clamav.yaml @@ -0,0 +1,45 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: clamav +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: clamav + template: + metadata: + labels: + app.kubernetes.io/name: clamav + spec: + containers: + # TODO: Figure out how to trigger update + - name: clamd + image: docker.io/clamav/clamav:1.1 + imagePullPolicy: IfNotPresent + ports: + - containerPort: 3310 + name: api + volumeMounts: + - mountPath: /var/lib/clamav + name: avdata + - mountPath: /tmp + name: tmp + volumes: + - name: avdata + emptyDir: {} + - name: tmp + emptyDir: + medium: Memory +--- +apiVersion: v1 +kind: Service +metadata: + name: clamav +spec: + selector: + app.kubernetes.io/name: clamav + ports: + - port: 3310 + name: clamav