Netflix / zuul

Zuul is a gateway service that provides dynamic routing, monitoring, resiliency, security, and more.
Apache License 2.0
13.51k stars 2.38k forks source link

How can I use zuul2 without eureka? #476

Open lidd opened 6 years ago

lidd commented 6 years ago

I have my own discovery service, so is there any possible to use zuul2 without eureka?

imet commented 6 years ago

for application.properties file, you can do the following setting:

eureka.validateInstanceId=false
eureka.shouldFetchRegistry=false
eureka.registration.enabled=false
eureka.preferSameZone=false
akshayvadher commented 5 years ago

As mentioned here

Yes, it is totally possible.You have to use @EnableZuulProxy on your config class and config it something like this :


zuul:
  routes:
    yourService:
      path: /yourService/**
      serviceId: yourService

ribbon:
  eureka:
    enabled: false

yourService:
  ribbon:
    listOfServers: localhost:8080
tmack8001 commented 5 years ago

Actually the EnableZuulProxy annotation is a springism where the spring-cloud-netflix project will not be adopting zuul2. Instead there is reference in another issue here on the Netflix/zuul project that references having a status routing file to be "similar to spring".

github-actions[bot] commented 1 day ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.