I am trying to configure Zuul with Eureka with following Zuul auto configuration (Spring Boot):
zuul.ignoredServices: '*'
zuul.routes.service1.path: /test/**
zuul.routes.service1.serviceId: CUSTOMER-SERVICE
zuul.routes.service1.stripPrefix: false
eureka.client.serviceUrl.defaultZone=http://localhost:8761/eureka
eureka.instance.non-secure-port-enabled=true
server.port=9090
But while making call to CUSTOMER-SERVICE through Zuul getting following exception:
com.netflix.client.ClientException: Load balancer does not have available server for client: CUSTOMER-SERVICE
I have checked the Eureka for CUSTOMER-SERVICE with web console, I found an instance of CUSTOMER-SERVICE registered there correctly.
Can any one help me to know what went wrong?