user-db-svc.yaml 220 B

123456789101112131415
  1. ---
  2. apiVersion: v1
  3. kind: Service
  4. metadata:
  5. name: user-db
  6. labels:
  7. name: user-db
  8. spec:
  9. ports:
  10. # the port that this service should serve on
  11. - port: 27017
  12. targetPort: 27017
  13. selector:
  14. name: user-db