迁移K8S问题汇总
ingress把_method
方法过滤掉,导致积木部分应用报错
方法1,单个客户生效
1 2 3
| ingress的注解中添加如下配置: nginx.ingress.kubernetes.io/server-snippet: | underscores_in_headers on;
|
方法2,全局生效
1 2 3 4
| ingress-controller的ConfigMap中添加
data: enable-underscores-in-headers: "true"
|
上传大文件报错413 Request Entity Too Large
1 2 3 4 5
| ingress的注解中添加如下配置: nginx.ingress.kubernetes.io/proxy-body-size: "1024m" nginx.ingress.kubernetes.io/proxy-connect-timeout: '600' nginx.ingress.kubernetes.io/proxy-read-timeout: '600' nginx.ingress.kubernetes.io/proxy-send-timeout: '600'
|