apiVersion: v1
kind: Service
metadata:
  labels:
    app: yapi-mongo
  name: yapi-mongo
  namespace: yapi-dev
spec:
  ports:
  - name: "27017"
    port: 27017
    protocol: TCP
    targetPort: 27017
  selector:
    app: yapi-mongo
  type: ClusterIP