apiVersion: v1
kind: Service
metadata:
  name: 'greenmail-service'
spec:
  ports:
  - port: 25
    protocol: TCP
    targetPort: 3025
    name: smtp
  - port: 110
    protocol: TCP
    targetPort: 3110
    name: pop3
  - port: 143
    protocol: TCP
    targetPort: 3143
    name: imap
  - port: 465
    protocol: TCP
    targetPort: 3465
    name: smtp-s
  - port: 993
    protocol: TCP
    targetPort: 3993
    name: imap-s
  - port: 995
    protocol: TCP
    targetPort: 3995
    name: pop3-s
  selector:
    app: 'greenmail'
  type: LoadBalancer
