Upload Limit in Kubernetes Nginx Ingress Controller


According to https://github.com/nginxinc/kubernetes-ingress/issues/21#issuecomment-408618569, this is how to lift the upload limit in Nginx Ingress Controller for Kubernetes after recent update to the project:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test-project-ingress
  namespace: test-project-dev
  annotations:
    kubernetes.io/ingress.class: dev
    nginx.ingress.kubernetes.io/proxy-body-size: 200m
spec:
  rules:
    - host: test-project.dev.com
      http:
        paths:
          - path: /
            backend:
              serviceName: test-project
              servicePort: 80

And for now the nginx pods have to be restarted before this can take effect. Hope this won’t be necessary in future

🙂