---
apiVersion: v1
kind: Service
metadata:
  name: frontend
  labels:
    app: fmn
spec:
  ports:
    - name: web
      port: 8080
      targetPort: 8080
  selector:
    app: fmn
    deploymentconfig: frontend
---
apiVersion: v1
kind: Service
metadata:
  name: api
  labels:
    app: fmn
spec:
  ports:
    - name: web
      port: 8080
      targetPort: 8080
  selector:
    app: fmn
    deploymentconfig: api
---
apiVersion: v1
kind: Service
metadata:
  name: sendria
  labels:
    app: fmn
spec:
  ports:
    - name: web
      port: 1080
      targetPort: 1080
    - name: smtp
      port: 1025
      targetPort: 1025
  selector:
    app: fmn
    deploymentconfig: sendria
---
apiVersion: v1
kind: Service
metadata:
  name: redis
  labels:
    app: fmn
spec:
  ports:
    - name: redis
      port: 6379
      protocol: TCP
      targetPort: 6379
  selector:
    app: fmn
    deploymentconfig: redis
