# deployment/manifests/ingress.yaml apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: restaurant-api-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/ssl-redirect: "false" nginx.ingress.kubernetes.io/proxy-body-size: "10m" # 타임아웃 설정 (API 수집 시간 고려) nginx.ingress.kubernetes.io/proxy-read-timeout: "300" nginx.ingress.kubernetes.io/proxy-send-timeout: "300" nginx.ingress.kubernetes.io/client-body-timeout: "300" nginx.ingress.kubernetes.io/proxy-connect-timeout: "60" # CORS 설정 nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-origin: "*" nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, OPTIONS" nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization" spec: ingressClassName: nginx rules: # 환경에 맞게 호스트명 수정 필요 - host: restaurant-api.20.249.191.180.nip.io http: paths: - path: / pathType: Prefix backend: service: name: restaurant-api-service port: number: 80 # TLS 설정 (HTTPS 필요시 주석 해제) # tls: # - hosts: # - restaurant-api.example.com # secretName: restaurant-api-tls