apiVersion: v1
kind: Service
metadata:
  name: java-guestbook-mongodb
  labels:
    app: java-guestbook
    tier: db
spec:
  ports:
    - port: 27017
      targetPort: 27017
  selector:
    app: java-guestbook
    tier: db
