apiVersion: v1 kind: Service metadata: name: {{ include "rspamd.fullname" . }} labels: {{- include "rspamd.labels" . | nindent 4 }} 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 name: antispam - port: {{ .Values.service.ports.http }} targetPort: {{ .Values.service.ports.http }} protocol: TCP name: http selector: {{- include "rspamd.selectorLabels" . | nindent 4 }}