upstream timed out (110: Connection timed out) while reading response header from upstream ingress-nginx

4/22/2019

I am using Kubernetes cluster. I have configured my Ingress, to point to my nodejs server. I have not written any nginx file. I see that my request are getting timed out exactly after one minute. When i check logs i see below.

*2062249 upstream timed out (110: Connection timed out) while reading response header from upstream,

Below is my Ingress file.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: gateway
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "120"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
    nginx.ingress.kubernetes.io/send_timeout: "180"
spec:
  rules:
  - host: abc-mydomain.com
    http:
      paths:
      - path: /abc
        backend:
          serviceName: abc-service
          servicePort: 80

Is there a configuration i need to add to prevent this timeout?

-- Hacker
kubernetes
kubernetes-ingress
nginx-ingress

0 Answers