[k8s] ingress timeout ์ค์
in Programming on DevOps
๐ก ingress์์ connection timeout ์ค์ ์ ์ด๋ป๊ฒํ ์ง์์๋ณด์
metadata > annotations์ ์๋์ต์ ์ ๋ฃ์ด์ฃผ๋ฉด๋๋ค
ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.ingress.kubernetes.io/send-timeout: "600"
์์yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-ingress
namespace: default
annotations:
ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/proxy-connect-timeout: "600"
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
nginx.ingress.kubernetes.io/send-timeout: "600"
spec:
rules:
- host: demo.page.com
http:
paths:
- path: /
backend:
serviceName: demo-svc
servicePort: 80
- host: demo.page.com
http:
paths:
- path: /
backend:
serviceName: demo-svc
servicePort: 80
๊ทผ๋ฐ ์ฐพ์๋ณด๋ฉด, ์์ฒญํ๋์ชฝ์ผ๋. ์ฆ ๋ณด๋ด๋(send)์ชฝ์ผ๋์ ํ์์์์ ๊ด์ฅํ๋ค.
์์ฒญ๋ฐ๋์ชฝ์ ํ์์์์ ๋ณดํต tomcat์ด๋ server timeout์ ์ค์ ํด์ค์ผํ๋ค.
server/tomcat timeout์ค์ ์ฐธ๊ณ