kubernetes / ingress-nginx

Ingress NGINX Controller for Kubernetes
https://kubernetes.github.io/ingress-nginx/
Apache License 2.0
17.6k stars 8.27k forks source link

Ingress Time outs after 2 minutes even though time out is set to 3600s #10735

Open kherath17 opened 12 months ago

kherath17 commented 12 months ago

What happened: I have setup an ingress service to route requests to Selenium Grid on K8, even though the requests are reached to grid que, it timeouts after 2 minutes.

Returned below response and execution stopped <head><title>504 Gateway Time-out</title></head> <body> <center>504 Gateway Time-out</center> </body> </html>

What you expected to happen: Ingress should honor the timeout values we have configured through below annotations : nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600" nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-send-timeout: "3600"

NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.): v1.7.0

Kubernetes version (use kubectl version): v1.28.1

Environment:

How to reproduce this issue: Setup Selenium Grid on K8 including below ingress and when requests are routed to Selenium Grid it should honor the timeouts mentioned

Sample Ingress File

apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: qlabv2-ingress annotations: `kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/rewrite-target: /$2 nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/proxy-connect-timeout: "3600" nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" spec: rules:

Anything else we need to know:

k8s-ci-robot commented 12 months ago

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
strongjz commented 12 months ago

Which load balancer did you deploy in EKS? Do you have endpoints for the service?

strongjz commented 12 months ago

/assign @strongjz

kherath17 commented 11 months ago

@strongjz apologies for the delayed response

Which load balancer did you deploy in EKS? - Nginx Load Balancer Do you have endpoints for the service? - We have shared end points with context paths