apiVersion: v1
kind: Service
metadata:
  name: mongodb
  labels:
    "app.kubernetes.io/name": 'mongodb'
spec:
  ports:
    - protocol: TCP
      port: 27017
      targetPort: 27017
  selector:
    app: mongodb
