我正在使用Kubernetes集群。我已经配置了Ingress,以指向我的nodejs服务器。我还没有写任何Nginx文件。我看到我的请求正在一分钟后就超时了。当我查看日志时,会看到以下内容。
*2062249 upstream timed out (110: Connection timed out) while reading response header from upstream,
下面是我的Ingress文件。
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
是否需要添加配置以防止此超时?