Hi Brijesh,
As per my understanding, to handle service discovery in your AKS deployment with Spring Boot and Eureka, you should leverage Kubernetes services instead of relying on pod names. Each microservice can be exposed as a service, which provides a stable DNS name that other services can use to communicate. When services register with Eureka, they should be configured to use a specific service endpoint rather than the dynamic pod name. And also, ensure that all microservices can access the Eureka server and properly register themselves with the service names rather than pod names.
Similar scenario: https://stackoverflow.com/questions/62324729/spring-boot-microservices-are-getting-registered-to-eureka-with-the-pod-name-as
Let me know if you have further queries!
If the comment is helpful, please click "upvote".
Thank you!