413 error with Kubernetes and Nginx ingress controller

后端 未结 5 611
余生分开走
余生分开走 2020-12-30 01:01

I\'m trying to change the client_max_body_size value, so my nginx ingress will not return 413 error.

I\'ve tested few solutions.
Here is my test c

5条回答
  •  一生所求
    2020-12-30 01:28

    You can use the annotation nginx.ingress.kubernetes.io/proxy-body-size to set the max-body-size option right in your Ingress object instead of changing a base ConfigMap.

    Here is the example of usage:

    apiVersion: extensions/v1beta1
    kind: Ingress
    metadata:
      name: my-app
      annotations:
        nginx.ingress.kubernetes.io/proxy-body-size: "50m"
    ...
    

提交回复
热议问题