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