apiVersion: v1 kind: Service metadata: name: {{ .Release.Name }}-mail labels: {{- include "emailleg.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - port: 80 targetPort: http protocol: TCP name: http - port: 143 targetPort: imap protocol: TCP name: imap - port: 110 targetPort: pop protocol: TCP name: pop - port: 25 targetPort: smtp protocol: TCP name: smtp - port: 6379 targetPort: redis protocol: TCP name: redis selector: {{- include "emailleg.selectorLabels" . | nindent 4 }}