Select Git revision
deploy-antispam.yaml
Janne Mareike Koschinski authored
deploy-antispam.yaml 2.55 KiB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mailu-helm.fullname" . }}-antispam
labels:
component: antispam
{{- include "mailu-helm.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
component: antispam
{{- include "mailu-helm.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
component: antispam
{{- include "mailu-helm.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
- name: filter
{{- .Values.volumes.filter | nindent 10 }}
- name: dkim
{{- .Values.volumes.dkim | nindent 10 }}
- name: local-config
emptyDir: {}
containers:
- name: antispam
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "mailu/rspamd:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
- configMapRef:
name: {{ include "mailu-helm.fullname" . }}
- secretRef:
name: {{ include "mailu-helm.fullname" . }}
ports:
- name: antispam
containerPort: 11332
protocol: "TCP"
- name: antispam-http
containerPort: 11334
protocol: "TCP"
resources:
{{- toYaml .Values.antispam.resources | nindent 12 }}
volumeMounts:
- name: filter
mountPath: "/var/lib/rspamd"
- name: dkim
mountPath: "/dkim"
- name: local-config
mountPath: "/etc/rspamd/local.d"
startupProbe:
httpGet:
path: /
port: antispam-http
periodSeconds: 10
failureThreshold: 90
timeoutSeconds: 5