apiVersion: v1 kind: Service metadata: name: {{ include "rspamd.fullname" . }} labels: {{- include "rspamd.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - 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 }}