Browse Source

Fix issue with rspamd milter port

master
Fábio Kaiser Rauber 2 years ago
parent
commit
350042a71b
  1. 2
      charts/rspamd/v0.1.0/templates/locald-configmap.yaml
  2. 6
      charts/rspamd/v0.1.0/templates/service.yaml
  3. 1
      charts/rspamd/v0.1.0/values.yaml

2
charts/rspamd/v0.1.0/templates/locald-configmap.yaml

@ -33,7 +33,7 @@ data:
password = "{{ .Values.redis.auth.password }}";
worker-proxy.inc: |-
milter = {{ .Values.rspamd.workerProxy.milter }};
bind_socket = "*:11332"
bind_socket = "*:{{ .Values.service.ports.milter }}";
timeout = {{ .Values.rspamd.workerProxy.timeout }};
upstream "local" {
default = yes; # Self-scan upstreams are always default

6
charts/rspamd/v0.1.0/templates/service.yaml

@ -7,6 +7,12 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
{{ if eq .Values.rspamd.workerProxy.milter "yes" -}}
- port: {{ .Values.service.ports.milter }}
targetPort: {{ .Values.service.ports.milter }}
protocol: TCP
name: milter
{{- end }}
- port: {{ .Values.service.ports.antispam }}
targetPort: {{ .Values.service.ports.antispam }}
protocol: TCP

1
charts/rspamd/v0.1.0/values.yaml

@ -59,6 +59,7 @@ service:
ports:
antispam: 11333
http: 11334
milter: 11332
ingress:
enabled: false

Loading…
Cancel
Save