파일 업로드 기능 구현 후 업로드 진행 시
413 Request entity too large 에러 발생
# 해결 방법
nginx.conf 에서 client max body size 관련 설정 진행 필요
server {
...
client_max_body_size 10M
...
}
BUT
reverse proxy 서버의 nginx 설정을 진행했지만 동일한 문제 발생
이유는 ingress도 nginx로 이루어져서
동일한 설정을 ingress에도 해주어야 했음
# 해결 방법
ingress yml에서
annotations.nginx.ingress.kubernetes.io/proxy-body-size: 11M
해결 완료
'Debug' 카테고리의 다른 글
| k8s 환경에서 batch 동시 작동 하지 않도록 하는 삽질기 (0) | 2025.11.18 |
|---|---|
| K8s 에서 Client IP를 BE에 전달하기 : nginx ingress annotation 설정 (0) | 2025.11.14 |