sean0427 / micro-service-pratice-infra

The infrastructure of the microservice practice project is the temporary primary project among all other microservice practice projects. It involves a distributed network system.
0 stars 0 forks source link

Product-domain change to MongoDB #11

Closed sean0427 closed 1 year ago

sean0427 commented 1 year ago

Fixing local k8s standalone MongoDB can't not connect

  1. routing (k8s) service need to set as 'Headless' Service clusterIP: None https://github.com/sean0427/micro-service-pratice-infra/pull/13/files#diff-1e2135d9fb6a5d2e4a1c98e4398c6012a6ca480b64257514aabff83e4033c04cR83

https://kubernetes.io/docs/concepts/services-networking/service/#headless-services

see: https://ithelp.ithome.com.tw/articles/10247873

  1. mongod should be bind on right IP (0.0.0.0) and port (exported)
sean0427 commented 1 year ago

Closes #14