white clouds

Kubernetes Nginx Ingress Controller – Increase Maximum Body Size




Introduction

Nginx Ingress Controller is a popular implementation of the Ingress resource in Kubernetes. It is built around the Nginx web server, a high-performance and widely used web server and reverse proxy. The Nginx Ingress Controller extends the functionality of Nginx to efficiently route incoming HTTP and HTTPS traffic to different services within your Kubernetes cluster based on the rules defined in the Ingress resource.

How To

The body size of Nginx Ingress is default to 1M. If you want to increase the body size of files you upload via the Ingress Controller, you need to add an annotation to your ingress config here:

YAML
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    ...
    nginx.ingress.kubernetes.io/proxy-body-size: 8m
    ...
  ...


Leave a Reply

Your email address will not be published. Required fields are marked *