Table of Contents
Kubernetes – 504 Gateway Time-out
ingress 로 시간이 오래걸리는 작업을 호출하게 되면 위와 같이 Time-out
오류가 발생한다.
그럴 경우 아래와 같이 설정을 해준다.
nginx 버전
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: your-app
annotations:
nginx.org/proxy-connect-timeout: 3600s
nginx.org/proxy-read-timeout: 3600s
nginx.org/proxy-send-timeout: 3600s
k8s 버전
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: your-app
annotations:
nginx.ingress.kubernetes.io/proxy-connect-timeout: 3600s
nginx.ingress.kubernetes.io/proxy-read-timeout: 3600s
nginx.ingress.kubernetes.io/proxy-send-timeout: 3600s