Getting UnkownHostException from SpringBoot Microservice running on top of kubernetes #637
Labels
kind/support
Categorizes issue or PR as a support question.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
What happened:
My application is running on top of kubernetes 1.26.
I am getting sometime (not frequent) an exception from Some microservices (spring-boot 2.7.RELEASE using base image
eclipse-temurin:17-jre) trying to request another service through k8s servicie name. telling me UnknownHostException..
That means the service which initiating the request is not able to resolve hostname.
What you expected to happen:
I am expecting to not see this exception and all calls are DNS resolvable.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
I Tried to make a script which run nslookup command 10000 time and i did not get any error and all calls to service were
resolved successfully.
This issue happen from today only where there is no change related dns .
The text was updated successfully, but these errors were encountered: