helm-charts/postfix/templates/service.yaml
2021-01-17 04:09:41 +03:00

27 lines
612 B
YAML

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 }}