apiVersion: v1 kind: Service metadata: name: {{ include "mail-relay.fullname" . }} labels: {{- include "mail-relay.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: smtp protocol: TCP name: smtp selector: {{- include "mail-relay.selectorLabels" . | nindent 4 }}