Questions tagged [netflix-zuul]

1

votes
1

answer
196

Views

How to achieve high availability and load balancing in Kubernetes cluster

I am creating a two node Kubernetes cluster (1 master and 2 slave nodes) which will host Netflix eureka. Microservices would be created for applications which would register themselves on the Eureka server and would find other microservices to communicate from the service registry of Eureka.I want a...
Aditya Datta
1

votes
1

answer
153

Views

Registering Zuul on Eureka in Kubernetes cluster

I have a Kubernetes cluster on Linux with one master node and two slave nodes. I have installed & created services for a eureka-server and Zuul with multiple replicas which are accessible by NodePorts. In order to enable load balancing, we need to register Zuul service in Eureka. Can anybody let me...
Aditya Datta
1

votes
0

answer
315

Views

Spring Cloud Zuul proxy Gateway does not load css, js from Spring Boot Application

I have created a gateway application using Spring Cloud Zuul proxy. The gateway application working fine but it is not loading static files like img,css and js files. I have added below setting in my application.properties file of my gateway application zuul.routes.demo.url=http://localhost:8091 w...
kotresh t m
1

votes
0

answer
221

Views

Keycloak Spring Boot tokens not propagated from Zuul Proxy to Spring Boot Services

I have Zuul Proxy and I have implemented keycloak-adapter in it with the following configuration in application.properties: #Keycloak config keycloak.realm=Development keycloak.auth-server-url=http://:8080/auth keycloak.ssl-required = external keycloak.public-client=true keycloak.resource=example ke...
xmlParser
1

votes
0

answer
95

Views

Zuul reverse Proxy gives 404 when forwarding the request to services after upgrading to Greenwich release

I am using spring embedded Zuul proxy and eureka service registry in my microservice application. After upgrading the spring cloud dependencies to Greenwich it gives 404 error in zuul gateway level. Following are my configurations. Zuul Gateway Main class @SpringBootApplication @EnableZuulProxy @Ena...
Yogs
1

votes
0

answer
29

Views

Sping Boot + Cloud URL rewrite implementation

I need to implement my spring boot + cloud gateway app to serve as proxy to a few rules involving multiple sites such as as follows: usecase 1: http://gateway/admin/** http://site1/** (an admin site) usecase 2: http://gateway/rest/** http://site1/rest/** (a REST API) usecase 3: http://gatewa...
SuwekongHilaw
1

votes
0

answer
90

Views

How to extract the response body into post filter using zuul

I'm working on a POC i need to use zuul as a sever to route 2 routes first will run normally but it has a custom post filter which will send another request to other api using some data of the response of the first requet, so need to extract the response body of the first request into my custom post...
yousra yousef
1

votes
2

answer
85

Views

Jhipster Microservice: Zuul Proxy Access Control: filtered unauthorized access on endpoint

I have a set of Jhipster Microservices, Consul and a single Gateway (we will call it Gateway1) using Keycloak/OAuth2SSO for authentication. I want to enable multiple Gateways (each serving separate applications) and have the additional gateways (Gateway2, Gateway3 etc) proxy authentication requests...
mikem
1

votes
1

answer
67

Views

Netflix Zuul/Ribbon/Eureka vs AWS ELB/ALB & ECS

I understand from the documentation with the use of Netflix Zuul & Eureka (maybe Ribbon too) you can build an active load balancer. I have always used AWS ELB, ALB (ECS for container management) with R53. Apart from the vendor portability, Is there any advantage of using Netflix approach than using...
Chandru
1

votes
0

answer
16

Views

Ribbon giving 404 response on WebLogic 12c

I have the following spring boot applications structure: gateway application as zuul proxy. backend application as microservice. When I hit a rest service in backend through zuul routing using ribbon load balancer, give me 404 response. But when I remove the ribbon load balancing, It works fine. Thi...
Yousef
1

votes
1

answer
45

Views

How refresh/update @Autowired EurekaClient

I started a couple of months ago to study Spring for work, and I'm creating an architecture with Netflix Zuul and Netflix Eureka. I wasn't able to implement Hystrix Fallback when apps are deployed on Tomcat, so I decided to use the EurekaClient and RouteLocator beans. They work very well, but when a...
Marco
1

votes
0

answer
58

Views

How to route to another port with Zuul

I am trying to route all of my microservices to one route with the port 8080 (shop) I have a microservice articlemicroservice that is connected to an Eureka Server (port:8084). I do also have zuulservice connected to Eureka (running on Port 8888). Example: http://localhost:8084/articles should be av...
Cenasa
1

votes
1

answer
31

Views

How to mock RequestContext.getCurrentContext()?

I am new bee here stuck in one problem regarding Zuul. I am writing test cases for Zuul filters First i want to know should i have to write UT's for my Zuul filters if yes then i am writing unit test of shouldFilter() method of my zuul filter in which i have to mock requestContext how can i achieve...
Ayub Ahmed
1

votes
0

answer
16

Views

How we can integrate Springboot 2.x with Zuul 2

We have a springboot application which is currently having gateway as Zuul 1. Our application is running in Springboot 2.0.0.M2. We are trying to upgrade our Zuul gateway to Zuul 2. We created a springboot application with Zuul 2 dependency and added webflux dependency to get Netty server. The...
Ron
1

votes
0

answer
23

Views

Converting Spring Dispatcher Servlet path to ZuulServlet

While uploading large files using Zuul Proxy - To bypass the Spring DispatcherServlet I changed the URL: From: http://localhost:8081/MyService/file To: http://localhost:8081/zuul/MyService/file Preserved disabling of Spring multipart upload: spring: http: multipart: enabled: false But I don't want t...
devutkarsh
0

votes
0

answer
5

Views

Spring Cloud Zuul for composite API calls?

I am starting to build a Microservice API Gateway, and I am using Spring Cloud Zuul to help me with the routing. But some calls to the Gateway API will need multiple requests to different services. Lets say I have 2 services: Order Details Service and Delivery Service. I want to have a Gateway endpo...
D.Tomov
1

votes
1

answer
707

Views

Routing request to same service registered as two different service-ID

In my spring boot application, I m using Eureka server for the discovery service. In one of my Discovery client application I am using zuul proxy to route the requests to different services registered with the Discovery Server. I have one resource application which is responsible for storing the dat...
shikjohari
1

votes
1

answer
508

Views

Precondition Error while invoking restTemplate exchange or execute

I am trying to invoke a call to a rest service. Both the rest client and rest service are running in my machine in different ports. Both execute and exchange method is throwing the null pointer exception. My rest client is a Netflix Zuul Filter (which is registered itself with Netflix Eureka Discove...
yathirigan
1

votes
2

answer
4.7k

Views

How to do URL Rewrite in Zuul Proxy?

One of the request that comes to my Zuul Filter is of URI /hello/World which i want to redirect to /myapp/test. This /myapp/test is a service that is registered in Eureka. zuul: routes: xyz: path: /hello/World url: http://localhost:1234/myapp/test stripPrefix: true When i try the above configuration...
yathirigan
1

votes
1

answer
2.6k

Views

Error in Zuul SendErrorFilter during forward

When my Zuul Filter is unable to route to a configured URL, the 'RibbonRoutingFilter' class throws a ZuulException saying 'Forwarding error' and the control goes to the 'SendErrorFilter' class. Now when the SendErrorFilter class tries to do a forward, another exception happens during this forward ca...
yathirigan
1

votes
1

answer
304

Views

Zuul filter to duplicate traffic

I would like to use Zuul to efficiently (asynchronously) route a copy of my traffic to a debug service for testing. I am new to Zuul and am looking through existing filter to find a neat way to do this but I haven't found a good example yet. Is there a built-in Zuul way to 'copy' a request and forwa...
bjoern
1

votes
1

answer
3.8k

Views

NoHttpResponseException : server failed to respond - with Zuul Proxy and AuthServer

I have a hard scenario here that I will try to explain and get some clue about how to solve it: I'm using Netflix Zuul as gateway to my RESTful services. This proxy invokes upon an Authorization Server (a third part one, deployed on my local machine - docker image, for example) and the major part of...
1

votes
1

answer
1.7k

Views

How to revert to /login on zuul proxied url if not authenticated

I have a 2 spring boot applications running with one application serving as a 'Gateway' to manage authentication and routing (with zuul proxy) and the other as a UI('/admin') behind the gateway. When I hit '/login'(or any other endpoint on the gateway itself) I get routed to the 'login.html' page,...
1

votes
1

answer
3.2k

Views

Fallback methods at Zuul server in Spring cloud

I am new in Spring Cloud Netflix and have some questions concerning it. I am using the API Gateway together with Hystrix running at Zuul edge server and I would like to make sure if I understand the following behavior correctly: I kill a microservice running 'behind' API Gateway then I force hystrix...
FilipR
1

votes
1

answer
819

Views

How to use zuul in spring cloud without spring boot actuator?

I want to use zuul as a proxy server in my application, but I don't want to use spring boot actuator, I tried to remove it from the dependency as follow: org.springframework.cloud spring-cloud-starter-zuul ${spring-cloud-netflix.version} org.springframework.boot spring-boot-starter-actuator However,...
Just_CJ
1

votes
1

answer
1.8k

Views

Using Ribbon-Kubernetes discovery with Zuul

I managed to have ribbon dynamically discover instances in a k8s cluster using kubeflix and spring-cloud-kubernetes This was when I manually used Ribbon to communicate between my microservices. Zuul automatically uses Ribbon for the routes defined in its configuration. Has anyone managed to enable R...
phoenix7360
1

votes
1

answer
955

Views

Spring Cloud with Zuul and Eureka cannot handle service instances going down

I'm currently having an issue when using Netflix Eureka and Zuul in a Spring Cloud environment using Docker. My current setup is as follows: 3 Docker containers: a Eureka server a Zuul server that uses Eureka to map routes to services and load balancing between multiple containers of the same servi...
Lieven Doclo
1

votes
1

answer
676

Views

spring cloud zuul + multiple ui bundles + angular js

I have multiple UI bundles. My zuul yml entry server port : 8090 zuul: routes: ui: url: http://localhost:8091 sensitive-headers: When i try to hit url http://localhost:8090/ui it loaded my html code but not include js and css file. Thanks in advance.
atiwari54
1

votes
1

answer
357

Views

Have ribbon use a custom SSLContext

I have a spring boot app with zuul and ribbon (no eureka) and I need to forward all traffic over https with mutual tls. The keystore and password are all automatically generated by an internal framework. At the end I end up with an SSLContext spring bean which I would like ribbon to use when forward...
bjoern
1

votes
1

answer
730

Views

How to aggregate calls using zuul

I have a REST service that's deployed many times. Each instance is connected to a different Data Source. But they all have the same API and same JSON format for the data returned. I have created a Gateway module (SpringBoot) that's also a ZuulProxy. I then added the routIng configuratIon and It wor...
mteffaha
1

votes
1

answer
787

Views

Zuul and JSESSIONID

I am using Zuul edge server to proxy requests to a bunch of session scoped controllers and stateless REST end points. Has anyone figured out a way to add the JSESSIONID in the subsequent request while proxying requests to session scoped controllers? The issue I am facing is that Zuul does not manage...
sambu
1

votes
2

answer
1.9k

Views

Zuul proxy add parameter to request url

I use ZuulFilter to intercept request calls. I need to change the url of request call by adding additional parameter like this. original request Http://localhost:8080/home?username=Paul after adding new parameter Http://localhost:8080/home?username=Paul&authenticated=true I don't need to add this ad...
paulrda
1

votes
1

answer
532

Views

Processing GET Body with Zuul

I am using Zuul to proxy a strange client that sends a body as part of a GET request. There is unfortunately no way I can change the client. With curl such a request can be sent as: curl -XGET 'localhost:8765/kibana/index.html' -d' {'key': 'value'}' And the data is really sent in the body. On zuul s...
Klaus
1

votes
1

answer
1.2k

Views

Zuul proxy and Spring OAuth redirection issue

I'm trying to get a JWT token from third-party SSO server. It requires an additional parameter in the first authorization request, for example https://[third-party-sso-server]/oauth2/authorize?client_id=[my-client-id]&redirect_uri=http://localhost:8080/login&response_type=code&additional_param=[v...
Pavel
1

votes
1

answer
630

Views

302 redirection for proxy calls to microservice with oauth2 behind zuul proxy

I have one micro service 'user-service'. It is secured with spring-cloud-oauth2. It has one REST endpoint '/data/v1' which returns some JSON response. When I send GET request to this endpoint it gets redirected to /oauth/login for authentication and after successful authentication it returns the tok...
Rohit Patil
1

votes
1

answer
196

Views

Request Method not Suported @PathVariable in @RestController in Spring

I have a RestController, now I wrote a DELETE method with @PathVariable: @RestController('/msisdns') public class MsisdnsController { @DeleteMapping('/{msisdnToUnReserve}') public String unreserveMsisdin(@PathVariable String msisdnToUnReserve) { ... } } Bult always get the same error... : I´ve trie...
Miguel Carrasco
1

votes
1

answer
154

Views

Not able to load balance using hardcoded urls in spring cloud zuul

I am testing spring zuul. I want to test round-robin requests forward using zuul routes. And not using eureka setup. zuul.ignoredServices=* ribbon.eureka.enabled=false server.port=9000 zuul.routes.trackingv1.path=/tracking/v1/** zuul.routes.trackingv1.stripPrefix=false zuul.routes.trackingv1.servic...
Ashish Jain
1

votes
1

answer
556

Views

Netflix-zuul TCP connections

Does Zuul support TCP connections? If not, is it possible to extend it? I want to use Zuul as my load balancer. The problem is that my clients have https/http connections and some of them have tcp connections.
Aharon
1

votes
1

answer
64

Views

Unable to read Matrix Parameters from a proxied request

I am sending the below request to my REST api: http://localhost:8080/accid234/accounts;[email protected]/departmentUse Rest-api Java Code: @Path('/{accounts}') public Accounts getDeptAccounts(@PathParam('accounts') PathSegment pathSegment) { Map matrixParams = pathSegment.getMatrixParameters();...
Ram
1

votes
1

answer
268

Views

Springboot: Ribbon and Zuul

Do we need to configure both Ribbon and Zuul for Loadbalancing the microservices. From what I have seen Zuul is more of a conventional reverse-proxy loadbalancer and any request to services thro Zuul will automatically be loadbalanced and I do not have to configure Ribbon in individual microservice...

View additional questions