Problem with kubernetes dicovery client in gateway microservice
I have found the solution for my problem. The problem was with the DiscoveryClient Route Definition Locator on spring-cloud-gateway.I saw in the documentation that:
"The Gateway can be configured to create routes based on services registered with a DiscoveryClient compatible service registry.To enable this, set spring.cloud.gateway.discovery.locator.enabled=true and make sure a DiscoveryClient implementation is on the classpath and enabled (such as Netflix Eureka, Consul or Zookeeper)."
This properties doesn't work with Kubernate configuration Service Discovery. I have changed it to False and it worked!!Greetings