Pages

Bài đăng phổ biến

Showing posts with label [ kubernetes ] client intended to send too large body. Show all posts
Showing posts with label [ kubernetes ] client intended to send too large body. Show all posts

Monday, November 7, 2022

Solved: [ kubernetes ] client intended to send too large body

To set client_max_body_size in ingress-nginx-controller you must add more this line to yaml file like that: 

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



Note: 

1. 20m ~ 20MB and no need restart nginx pod .
2. some template yaml have added this line to annotations : ingress.kubernetes.io/proxy-body-size: "<valuem>" but it is not enough you must add this line : nginx.ingress.kubernetes.io/proxy-body-size there is nginx in the first line .