apiVersion: v1 kind: Service metadata: name: {{ include "postfix.fullname" . }} labels: {{- include "postfix.labels" . | nindent 4 }} spec: {{- if .Values.service.loadBalancerIP }} loadBalancerIP: {{ .Values.service.loadBalancerIP | quote }} {{- end }} type: {{ .Values.service.type }} ports: - port: 2525 targetPort: 2525 protocol: TCP name: smtp - port: 10465 targetPort: 10465 protocol: TCP name: smtps - port: 10587 targetPort: 10587 protocol: TCP name: msa selector: {{- include "postfix.selectorLabels" . | nindent 4 }}