Tag Archives: 413 Request Entity Too Large

Kubernetes: 413 request entity too large

K8s version is 1.14

The problem is that the application is deployed on k8s and exposed in the way of ingress. Uploading files to the application times “413 request entity too large” has searched a lot of information. It is said that nginx on the underlying layer of ingress in k8s has a default upload file size limit and needs to be reset

We can add the following to the application’s ingress file: nginx.ingress.kubernetes.io/proxy-body-size can be changed to 50m or other values

List-1

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: apps-xx
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: "0"
  
  ......

>Reference

https://imti.co/413-request-entity-too-large/

https://blog.csdn.net/Michaelwubo/article/details/93631949

https://www.cnblogs.com/pythonPath/p/11526191.html