k8s cluster, will upload pictures or files to a file server,
but the error will be larger than 1M are
413 Request Entity Too Large
I used to use:
# ingress.kubernetes.io/proxy-body-size: "50m"
Now using:
nginx.ingress.kubernetes.io/proxy-body-size: "50m"
The latest version of ingress and deployment is needed configmap of RBAC.
First, add the web in nginx.conf
client_body_buffer_size 50m;
client_max_body_size 100m;
Second, the modifications in various service
annotations:
nginx.ingress.kubernetes.io/proxy-body-size:"50m"
Restart the service