apiVersion: v1 kind: Service metadata: name: {{ include "dovecot.fullname" . }} labels: {{- include "dovecot.labels" . | nindent 4 }} spec: {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP | quote }} {{- end }} type: {{ .Values.service.type }} ports: - port: 24 targetPort: 24 protocol: TCP name: lmtp - port: 1110 targetPort: 1110 protocol: TCP name: pop3 - port: 1109 targetPort: 1109 protocol: TCP name: imap - port: 4190 targetPort: 4190 protocol: TCP name: sieve - port: 10993 targetPort: 10993 protocol: TCP name: imaps - port: 10995 targetPort: 10995 protocol: TCP name: pop3s - port: 12345 targetPort: 12345 protocol: TCP name: auth selector: {{- include "dovecot.selectorLabels" . | nindent 4 }}