---
apiVersion: v1
kind: Service
metadata:
  name: mongo-db
  namespace: default
spec:
  type: ClusterIP
  ports:
    - port: 27017
      targetPort: 27017
      protocol: TCP
  selector:
      app: mongodb
      tier: backend