Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Spring Boot Microservices on Cloud Run Not Working

We have the Following Services Deployed on Separate Cloud Run Instances

  • Spring Cloud API Gateway
  • Spring Eureka Service
  • Spring Config Server
  • And a Few other microservices

We do have a setup VPC and even tried serverless vpc also. Now all services do register themselves in the discovery service.

nish2nisarg_0-1712481034972.png

Now when a request is received on API Gateway it routes it to the appropriate service. So while doing that it always gives the error of 

 

2024-04-07 09:12:01,779 [DEBUG ] CompositeLog.debug(CompositeLog.java:127) - [44c764e3-3] Resolved [AnnotatedConnectException: finishConnect(..) failed: Connection refused: /169.254.8.1:9005] for HTTP GET

 

Even have tried firewall rules to allow ports also.

Can't we use cloud-run instances to achieve this? Or we are missing some configuration here? As have tried almost all possible scenarios here. Immediate help will be appreciated.

1 0 388
0 REPLIES 0