-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow filtering of services in discovery client route locator #185
Comments
The gateway isnt proactive like Zuul is and automatically creates routes based on service discovery they have to be explicitly configured (as far as I know). Can you provide an example of where this would be necessary? |
I'd rather have some metadata that is set that would tell the integration to setup a route (edge=true) or something. @ryanjbaxter internal only services come to mind. |
You can now specify an expression that works on the Setting |
In my Zoo i have some services that should be gatewayed' and others that don't and should be ingnored-services as in zuul. How to achieve a functionality like in zuul? |
|
im sorry, i don't get it.
? |
No, you would include a bit of metadata in the discovery configuration of each service that you want in gateway such as 'edge=true'. Then gateway will only include those. |
i see. .. so for my "backend" and "stream" service i'd do
in the bootstrap.yml of the backend and stream service and then check on the gateway via |
@spencergibb @ryanjbaxter this works nice, thanks for support. keep up the good work! |
@spencergibb @ryanjbaxter What is about the |
@xiaoshao if you have read thru this issue, you'll see that is not necessary and there is no ignore services in gateway |
@spencergibb @ryanjbaxter do you know if the |
It works on the API but the implementation, so yes, it should work. |
I'm having issues getting it to work. I've configured the following in the gateway:
Does that look OK to you? Is there a bean or class that gets the metadata that I can debug or turn on logging to confirm that the DiscoverClient passes the metadata to the gateway locator? I guess its the |
Please open a new issue and we will continue it there |
Do we have implementation for ignoredServices and ignoredPatterns in gateway as in zuul?
The text was updated successfully, but these errors were encountered: