update mail - migrate from opendkim and opendmarc to rspamd
This commit is contained in:
parent
5c5aa01d41
commit
da8de30b27
@ -1,21 +1,11 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: rspamd
|
name: rspamd
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
|
dependencies:
|
||||||
# A chart can be either an 'application' or a 'library' chart.
|
- condition: redis.enabled
|
||||||
#
|
name: redis
|
||||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
repository: https://charts.bitnami.com/bitnami
|
||||||
# to be deployed.
|
version: 12.3.2
|
||||||
#
|
|
||||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
|
||||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
|
||||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
|
||||||
type: application
|
type: application
|
||||||
|
version: 0.2.0
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
appVersion: 2.7
|
||||||
# to the chart and its templates, including the app version.
|
|
||||||
version: 0.1.1
|
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
|
||||||
# incremented each time you make changes to the application.
|
|
||||||
appVersion: 2.6
|
|
||||||
|
@ -1 +1,22 @@
|
|||||||
|
{{- range $key, $val := (index .Values.rspamd "local.d") }}
|
||||||
---
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: rspamd-{{ $key | replace "_" "-" | replace "." "-" }}
|
||||||
|
data:
|
||||||
|
{{ $key | indent 2 }}: |
|
||||||
|
{{ $val | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- range $key, $val := (index .Values.rspamd "dkim-keys") }}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: rspamd-dkim-{{ $key | replace "." "-" }}
|
||||||
|
data:
|
||||||
|
{{ $key | indent 2 }}: |
|
||||||
|
{{ $val | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
@ -33,6 +33,26 @@ spec:
|
|||||||
- name: rspamd-proxy
|
- name: rspamd-proxy
|
||||||
containerPort: 11332
|
containerPort: 11332
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- name: rspamd-normal
|
||||||
|
containerPort: 11333
|
||||||
|
protocol: TCP
|
||||||
|
- name: rspamd-ctrl
|
||||||
|
containerPort: 11334
|
||||||
|
protocol: TCP
|
||||||
|
- name: rspamd-fuzzy
|
||||||
|
containerPort: 11335
|
||||||
|
protocol: TCP
|
||||||
|
volumeMounts:
|
||||||
|
{{- range $key, $val := (index .Values.rspamd "local.d") }}
|
||||||
|
- name: rspamd-{{ $key | replace "_" "-" | replace "." "-" }}
|
||||||
|
mountPath: "/etc/rspamd/local.d/{{ $key }}"
|
||||||
|
subPath: {{ $key }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $key, $val := (index .Values.rspamd "dkim-keys") }}
|
||||||
|
- name: rspamd-dkim-{{ $key | replace "." "-" }}
|
||||||
|
mountPath: "/var/lib/rspamd/dkim/{{ $key }}.key"
|
||||||
|
subPath: {{ $key }}
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
{{- if .Values.persistence.enabled }}
|
{{- if .Values.persistence.enabled }}
|
||||||
@ -41,6 +61,16 @@ spec:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- range $key, $val := (index .Values.rspamd "local.d") }}
|
||||||
|
- name: rspamd-{{ $key | replace "_" "-" | replace "." "-" }}
|
||||||
|
configMap:
|
||||||
|
name: rspamd-{{ $key | replace "_" "-" | replace "." "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- range $key, $val := (index .Values.rspamd "dkim-keys") }}
|
||||||
|
- name: rspamd-dkim-{{ $key | replace "." "-" }}
|
||||||
|
configMap:
|
||||||
|
name: rspamd-dkim-{{ $key | replace "." "-" }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
@ -11,5 +11,17 @@ spec:
|
|||||||
targetPort: 11332
|
targetPort: 11332
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: rspamd-proxy
|
name: rspamd-proxy
|
||||||
|
- port: 11333
|
||||||
|
targetPort: 11333
|
||||||
|
protocol: TCP
|
||||||
|
name: rspamd-normal
|
||||||
|
- port: 11334
|
||||||
|
targetPort: 11334
|
||||||
|
protocol: TCP
|
||||||
|
name: rspamd-ctrl
|
||||||
|
- port: 11335
|
||||||
|
targetPort: 11335
|
||||||
|
protocol: TCP
|
||||||
|
name: rspamd-fuzzy
|
||||||
selector:
|
selector:
|
||||||
{{- include "rspamd.selectorLabels" . | nindent 4 }}
|
{{- include "rspamd.selectorLabels" . | nindent 4 }}
|
||||||
|
@ -10,8 +10,28 @@ persistence:
|
|||||||
rspamd:
|
rspamd:
|
||||||
image:
|
image:
|
||||||
repository: registry.geekhome.org/rspamd
|
repository: registry.geekhome.org/rspamd
|
||||||
tag: 2.6
|
tag: 2.7
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
local.d:
|
||||||
|
redis.conf: |
|
||||||
|
servers = "rspamd-redis-master";
|
||||||
|
worker-proxy.inc: |
|
||||||
|
bind_socket = "0.0.0.0:11332";
|
||||||
|
worker-normal.inc: |
|
||||||
|
bind_socket = "0.0.0.0:11333";
|
||||||
|
worker-controller.inc: |
|
||||||
|
bind_socket = "0.0.0.0:11334";
|
||||||
|
worker-fuzzy.inc: |
|
||||||
|
bind_socket = "0.0.0.0:11335";
|
||||||
|
logging.inc: |
|
||||||
|
type = "console";
|
||||||
|
|
||||||
|
redis:
|
||||||
|
enabled: true
|
||||||
|
usePassword: false
|
||||||
|
password: ""
|
||||||
|
cluster:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
Loading…
Reference in New Issue
Block a user