[k8s] ingress timeout ์„ค์ •


๐Ÿ’ก 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์„ค์ • ์ฐธ๊ณ 




ยฉ 2020. by berrrrr

Powered by berrrrr