netflix-zuul

spring cloud zuul “path”: “/actuator/routes” 404 not found

只谈情不闲聊 提交于 2020-06-08 20:01:32
问题 I work with Spring Cloud and I want to configure Zuul application.yml of zuul service is server: port: 5555 #Setting logging levels logging: level: com.netflix: WARN org.springframework.web: WARN com.thoughtmechanix: DEBUG eureka: instance: preferIpAddress: true client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8761/eureka/ zuul: prefix: /api routes: organizationservice: /organization/** licensingservice: /licensing/** When I start the application,

How to “remove the gobal prefix('/api') then goto the lb:// ” when migrate to spring cloud gateway from zuul

隐身守侯 提交于 2020-03-18 10:16:15
问题 I want to Migrating from zuul to spring cloud gateway, I don't want to change my config of previous app. I want to know how to handle with the url with "/api/ + 'serviceId'", route to lb://serviceId the previous zuul config zuul: prefix: /api there are lots of service regist to eureka ,i don't want to config a route for each one. eg. the auto generated route by org.springframework.cloud.gateway.discovery.DiscoveryClientRouteDefinitionLocator { "route_id": "CompositeDiscoveryClient_APIGATEWAY"

Load balancer does not have available server for client: meeting

旧街凉风 提交于 2020-03-17 08:41:29
问题 While I am trying to reach the service meeting via Zuul gateway, Zuul is unable to forward the request to the respective service. The following errors are what I am facing: nettflix.zuul.exception.ZuulException: Forwarding error Caused by: com.netflix.client.ClientException: Load balancer does not have available server for client: meeting Let me share the application.yml for the service, eureka and zuul gateway. EurekaClient: Application.yml server: port: 8761 eureka: instance: hostname:

Spring MVC web app behind zuul redirect issue

五迷三道 提交于 2020-02-01 04:39:46
问题 I have a set of Spring Boot (1.3.3) with Spring Cloud (Brixton.RC2) microservices running behind Zuul and I have issues with my urls being rewritten in redirects. My main issue is that my web app is behind zuul and seems to be unaware of host during redirects even though I should have set all necessary properties. When I go to http://test.example.com/ I expect to be redirected to http://test.example.com/login but I get redirected to http://machinehostname/login... If I go directly to http:/

Spring Cloud Zuul/Eureka dynamic route

一笑奈何 提交于 2020-01-28 21:00:02
问题 I am using spring cloud eureka and spring cloud zuul proxy and i was wondering if there is any way to add dymanic zuul routes when a new service is register in eureka server or the only way to add a route is edit the application.yml file and restart the spring zuul application zuul: ignoredPatterns: /**/admin/** routes: users: /myusers/** 回答1: If your Zuul server is also EurekaClient (use @EnableDiscoveryClient annotation) it will discover all the services and automatically will create routes

Spring Cloud Zuul/Eureka dynamic route

假如想象 提交于 2020-01-28 20:59:31
问题 I am using spring cloud eureka and spring cloud zuul proxy and i was wondering if there is any way to add dymanic zuul routes when a new service is register in eureka server or the only way to add a route is edit the application.yml file and restart the spring zuul application zuul: ignoredPatterns: /**/admin/** routes: users: /myusers/** 回答1: If your Zuul server is also EurekaClient (use @EnableDiscoveryClient annotation) it will discover all the services and automatically will create routes