Ingress Time outs after 2 minutes even though time out is set to 3600s #10735
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
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.1Environment:
Cloud provider or hardware configuration: AWS
OS (e.g. from /etc/os-release): linux
Kernel (e.g.
uname -a
):Install tools:
Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
Basic cluster related info:
kubectl version
kubectl get nodes -o wide
How was the ingress-nginx-controller installed:
helm ls -A | grep -i ingress
->nginx-ingress-release default 1 2023-04-22 17:30:21.803047 +0530 +0530 deployed ingress-nginx-4.4.2 1.5.1
helm -n <ingresscontrollernamepspace> get values <helmreleasename>
Current State of the controller:
kubectl describe ingressclasses
Name: nginx
Labels: app.kubernetes.io/component=controller
app.kubernetes.io/instance=nginx-ingress-release
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=ingress-nginx
app.kubernetes.io/part-of=ingress-nginx
app.kubernetes.io/version=1.5.1
helm.sh/chart=ingress-nginx-4.4.2
Annotations: ingressclass.kubernetes.io/is-default-class: true
meta.helm.sh/release-name: nginx-ingress-release
meta.helm.sh/release-namespace: default
Controller: k8s.io/ingress-nginx
Events: none
kubectl -n <ingresscontrollernamespace> get all -A -o wide
kubectl -n <ingresscontrollernamespace> describe po <ingresscontrollerpodname>
kubectl -n <ingresscontrollernamespace> describe svc <ingresscontrollerservicename>
Current state of ingress object, if applicable:
kubectl -n <appnnamespace> get all,ing -o wide
kubectl -n <appnamespace> describe ing <ingressname>
Others:
kubectl describe ...
of any custom configmap(s) created and in useHow 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:
paths:
pathType: Prefix
backend:
service:
name: selenium-hub-service
port:
number: 80
pathType: Prefix
backend:
service:
name: selenium-hub-service
port:
number: 80
Anything else we need to know:
The text was updated successfully, but these errors were encountered: