k8s-ingress 413 Request Entity Too Large
2018-03-18 14:45
1611 查看
k8s集群中,将图片或是文件上传到文件服务器上,可是大于1M是就会报错413 Request Entity Too Large
参考文档:https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md
不知道什么原因!!!!以前用的是: # ingress.kubernetes.io/proxy-body-size: "50m"
现在用的是: nginx.ingress.kubernetes.io/proxy-body-size: "50m"最新版的ingress部署是需要configmap和RBAC的。一、在web的nginx.conf中添加 client_body_buffer_size 50m;
二、在各个服务中修改 annotations: nginx.ingress.kubernetes.io/proxy-body-size:"50m" 重启该服务
三、验证: cat -n /etc/nginx/nginx.conf | grep nginx
head -372 /etc/nginx/nginx.conf
参考文档:https://github.com/kubernetes/ingress-nginx/blob/master/docs/user-guide/annotations.md
不知道什么原因!!!!以前用的是: # ingress.kubernetes.io/proxy-body-size: "50m"
现在用的是: nginx.ingress.kubernetes.io/proxy-body-size: "50m"最新版的ingress部署是需要configmap和RBAC的。一、在web的nginx.conf中添加 client_body_buffer_size 50m;
二、在各个服务中修改 annotations: nginx.ingress.kubernetes.io/proxy-body-size:"50m" 重启该服务
三、验证: cat -n /etc/nginx/nginx.conf | grep nginx
head -372 /etc/nginx/nginx.conf
相关文章推荐
- 413 Request Entity Too Large
- 解决nginx 出现 413 Request Entity Too Large的问题
- 上传图片413 Request Entity Too Large
- Nginx上传文件提示413 Request Entity Too Large
- nginx :413 Request Entity Too Large
- 提示:413 Request Entity Too Large 的解决方法
- Nginx 出现413 Request Entity Too Large得解决方法
- 上传文件异常问题 | 413 Request Entity Too Large
- 413 Request Entity Too Large(nginx)
- 【原】apache 413 错误 Request Entity Too Large
- nginx:413 Request Entity Too Large
- Nginx 出现413 Request Entity Too Large 错误解决方法(上传大小限制)
- PHP CURL上传文件出现413 Request Entity Too Large
- Nginx代理的应用返回出现“413 Request Entity Too Large”错误(解决方法)
- “413 Request Entity Too Large” 错误解决
- WCF:(413) Request Entity Too Large.
- Nginx报错 -- When upload large photo, error says "413 Request Entity Too Large".
- 上传文件限制导致413-Request Entity Too Large
- 运维挖坑埋坑之旅----413 Request Entity Too Large
- Nginx 与 Tomcat : 413 Request Entity Too Large(请求实体太大)