Kubernetes Sitecore Package Upload Failure

If when you’re running Sitecore in Kubernetes and have noticed that you’re not able to upload packages above 10MB, you may be running into an ingress issue. If your package is too large you will see the upload UI spinning it’s spinner but never completing. Default Sitecore ships with this example for the helm ingress deployment:

    helm repo add stable https://charts.helm.sh/stable
    helm install nginx-ingress stable/nginx-ingress --set controller.replicaCount=1 --set controller.nodeSelector."beta\.kubernetes\.io/os"=linux --set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux --set-string controller.config.proxy-body-size=10m --set controller.service.externalTrafficPolicy=Local

note in particular controller.config.proxy-body-size=10m. Changing this to be big enough to fit your hypothetical max package size should fix your problem, for example:

    helm repo add stable https://charts.helm.sh/stable
    helm install nginx-ingress stable/nginx-ingress --set controller.replicaCount=1 --set controller.nodeSelector."beta\.kubernetes\.io/os"=linux --set defaultBackend.nodeSelector."beta\.kubernetes\.io/os"=linux --set-string controller.config.proxy-body-size=512m --set controller.service.externalTrafficPolicy=Local

Upping it to 512m should handle most use cases encountered by Sitecore.