{{- if .Values.developmentMailserverDomain }}
apiVersion: v1
kind: Service
metadata:
  name: {{ .Release.Name }}-mailserver
  labels:
    app.kubernetes.io/instance: {{ .Release.Name }}
    app.kubernetes.io/managed-by: {{ .Release.Service }}
    app.kubernetes.io/name: ocelot-social
    app.kubernetes.io/version: {{ .Chart.AppVersion }}
    helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
spec:
  ports:
  - name: web
    port: 80
    targetPort: 80
  - name: smtp
    port: 25
    targetPort: 25
  selector:
    ocelot.social/selector: deployment-mailserver
{{- end}}