From 430f5b0f0fd031a7368dd02e146918964fcf8267 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 24 Aug 2023 08:34:21 +0300 Subject: [PATCH] wildduck: Add rspamd --- wildduck/rspamd.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 wildduck/rspamd.yaml diff --git a/wildduck/rspamd.yaml b/wildduck/rspamd.yaml new file mode 100644 index 0000000..29624f4 --- /dev/null +++ b/wildduck/rspamd.yaml @@ -0,0 +1,61 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rspamd +spec: + replicas: 2 + selector: + matchLabels: + app.kubernetes.io/name: rspamd + template: + metadata: + labels: + app.kubernetes.io/name: rspamd + spec: + securityContext: + runAsUser: 1000 + runAsNonRoot: true + fsGroup: 1000 + containers: + - name: rspamd + image: docker.io/codemowers/rspamd + command: + - /usr/bin/rspamd + - -f + ports: + - containerPort: 11333 + name: rspamd + securityContext: + readOnlyRootFilesystem: true + resources: + limits: + cpu: 500m + memory: 2Gi + requests: + cpu: 10m + memory: 400Mi + volumeMounts: + - name: var-lib-rspamd + mountPath: /var/lib/rspamd + volumes: + - name: var-lib-rspamd + emptyDir: + sizeLimit: 1Gi + - name: var-run + emptyDir: + medium: Memory + - name: var-lib-nginx-tmp + emptyDir: + medium: Memory +--- +apiVersion: v1 +kind: Service +metadata: + name: rspamd +spec: + selector: + app.kubernetes.io/name: rspamd + ports: + - port: 11333 + name: rspamd