How to increase the maximum file size when using Ghost docker image and Kubernetes
Please add nginx.ingress.kubernetes.io/proxy-body-size
annotation to your ingress configuration file.
For NGINX, an such error will be returned to the client when the size in a request exceeds the maximum allowed size of the client request body. This size can be configured by the parameter client_max_body_size
.
To configure this setting globally for all Ingress rules, the proxy-body-size
value may be set in the NGINX ConfigMap. To use custom values in an Ingress rule define annotation I have mentioned.
Useful information: custom-max-body-size, 413-k8s-helm.