--- apiVersion: apps/v1 kind: Deployment metadata: name: rspamd namespace: mailgateway spec: selector: matchLabels: app: rspamd template: metadata: annotations: reloader.stakater.com/auto: "true" labels: app: rspamd spec: securityContext: runAsUser: 11333 runAsGroup: 11333 fsGroup: 11333 containers: - name: rspamd image: rspamd/rspamd:4.0.1 ports: - containerPort: 11332 name: milter protocol: TCP - containerPort: 11333 name: worker protocol: TCP - containerPort: 11334 name: controller protocol: TCP livenessProbe: httpGet: path: /ping port: 11334 initialDelaySeconds: 15 periodSeconds: 30 timeoutSeconds: 5 failureThreshold: 3 readinessProbe: httpGet: path: /ping port: 11334 initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 3 failureThreshold: 3 resources: requests: cpu: 100m memory: 256Mi limits: cpu: "1" memory: 512Mi volumeMounts: - name: rspamd-config mountPath: /etc/rspamd/local.d readOnly: true - name: dkim-keys mountPath: /etc/rspamd/dkim readOnly: true - name: rspamd-data mountPath: /var/lib/rspamd volumes: - name: rspamd-config configMap: name: rspamd-config - name: dkim-keys secret: secretName: dkim-keys - name: rspamd-data emptyDir: {}