k8s nginx-ingress-controller Failed to upload report
413 Request Entity Too Large
上传大小限制问题
解决方式:
在 Ingress YAML 中加入 nginx.org/client-max-body-size: "20m" 即可解决
metadata:
annotations:
nginx.org/client-max-body-size: "20m"
响应时间超时问题
要设置 k8s ingress nginx 的超时,您可以通过 ingress annotations 来实现。以下是一个示例,可以将 Ingress 中的 Proxy 超时设置为 30 秒:
kind: Ingress
metadata:
name: test-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-connect-timeout: "30s" //连接超时
nginx.ingress.kubernetes.io/proxy-send-timeout: "30s" //发送超时
nginx.ingress.kubernetes.io/proxy-read-timeout: "30s" //```