If spring cloud eureka is deployed to K8s, is it possible to register and access each other through service?

intends to make the back-end microservice, so the technology stack uses spring cloud. The first idea is to deploy eureka to K8s and communicate with each other through K8s service. But the authors of some documents suggest marking pod to let pod communicate with each other through dns parsing, which makes me a little confused. If you deploy eureka to K8s, is there any problem with communicating through service?

May.07,2022

Yes. As long as the Service is exposed, services can communicate with each other. The simplest way is to communicate between services in the form of Restful.
intra-cluster communication is usually accessed through ClusterIP. If kube-dns is installed, you can access the service using serviceName ( http://<;$serviceName>)).

Menu