1apiVersion: v12kind: Service3metadata:4 name: {{ include "maddy.fullname" . }}5 labels:6 {{- include "maddy.labels" . | nindent 4 }}7spec:8 type: {{ .Values.service.type }}9 ports:10 - port: 2511 targetPort: smtp12 protocol: TCP13 name: smtp14 - port: 99315 targetPort: imaps16 protocol: TCP17 name: imaps18 - port: 58719 targetPort: starttls20 protocol: TCP21 name: starttls22 selector:23 {{- include "maddy.selectorLabels" . | nindent 4 }}24 {{- with .Values.service.externalIPs }}25 externalIPs:26 {{- toYaml . | nindent 6 }}27 {{- end -}}