I have cluster deployed at GKE and exposed with Ingress. Static resources and majority or REST requests works fine. But i got 502 Server Error on download file request. Error message is: The server encountered a temporary error and could not complete your request.Please try again in 30 seconds.
Without Ingres, when LoadBalancer is used instead, download works fine. I suspect Ingress don`t like backend response. Here is success response headers(without Ingress):
HTTP/1.1 200 OK
transfer-encoding: chunked
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: x-requested-with, authorization, Content-Type, Authorization, credential, X-XSRF-TOKEN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Transfer-Encoding: chunked
Date: Wed, 28 Mar 2018 13:55:39 GMT
What i have tried:
- Increase backend service timeout for ingress forwarding rule in cloud console from default 30 sec to 100 sec
- Search stackdriver logs - didn`t found any logs for Ingress controller.
Why this request don`t work with Ingress, how fix it? Where can i find logs for Ingress in GKE?