场景: 前端域名配置在ingress; 前端应用是用docker容器跑的,基础镜像是nginx ,修改nginx容器内的配置client_max_body_size 20m;不生效

解决方法:
1.rancher上面找到环境对应的Load Balancing,也就是配置ingress域名的位置
2.编辑ingress配置,在annotations里面添加nginx.ingress.kubernetes.io/proxy-body-size:100M
image

如果用原生yaml文件创建的ingress,可以这样配置
image

解决!!!

posted on 2022-03-25 13:52  sea_l  阅读(3838)  评论(0)    收藏  举报