Keycloak gatekeeper HTTP 502 / timeout after 10 seconds Keycloak gatekeeper HTTP 502 / timeout after 10 seconds kubernetes kubernetes

Keycloak gatekeeper HTTP 502 / timeout after 10 seconds


We had the same problem. The two variables that are important are:

server-write-timeout: 30supstream-response-header-timeout: 30s

The first one is the timeout for the complete response. The second one is the timeout for receiving the first response headers.


In the config of Keycloak gatekeeper, the default value for ServerReadTimeout is set to 10 secs, see:

You should be able to change this by setting server-read-timeout in your configuration file:

server-read-timeout: 30