HTTP 413 Error When Uploading Files in Kubernetes Environment

kubernetes
2020-01-14 15:34 (4 years ago) ytyng

When you upload a file to a web application running under Kubernetes Ingress,

you might encounter a

413 Payload Too Large

error.

In such cases, you should modify the Ingress settings as follows:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: torico-tools-ingress
namespace: torico
annotations:
# Against http413
nginx.ingress.kubernetes.io/proxy-body-size: "0"

If you want to completely ignore the size limit, set nginx.ingress.kubernetes.io/proxy-body-size: "0"

Reference: https://imti.co/413-request-entity-too-large/ (Note: The hero image on the site might be a bit graphic)

Currently unrated

Comments

Archive

2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011