有一些应用或者页面。它的响应时间是超过60s的。这样nginx会自动重发一次请求,导致出现比较奇怪的影响。 所以我们对这类应用需要配置超时间。
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-redirection-live
namespace: malema-live
annotations:
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-next-upstream-timeout: "600"
我自己配好上面的这两个之后就表现正常了
其它的还有这些
nginx.ingress.kubernetes.io/proxy-connect-timeout
nginx.ingress.kubernetes.io/proxy-send-timeout
nginx.ingress.kubernetes.io/proxy-read-timeout
nginx.ingress.kubernetes.io/proxy-next-upstream
nginx.ingress.kubernetes.io/proxy-next-upstream-timeout
nginx.ingress.kubernetes.io/proxy-next-upstream-tries
nginx.ingress.kubernetes.io/proxy-request-buffering