From 308607d29c13054198bf21489522697d8fb66a24 Mon Sep 17 00:00:00 2001 From: daniluk4000 Date: Mon, 2 Dec 2024 22:23:54 +0300 Subject: [PATCH] chore: update deploy --- .config/k8s/ingress.yml | 13 +++++++++++++ .config/k8s/next/app.yml | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.config/k8s/ingress.yml b/.config/k8s/ingress.yml index e2037959..2bcad9f2 100644 --- a/.config/k8s/ingress.yml +++ b/.config/k8s/ingress.yml @@ -4,6 +4,12 @@ metadata: name: ingress-default annotations: kubernetes.io/ingress.class: nginx + nginx.ingress.kubernetes.io/proxy-read-timeout: "3600" + nginx.ingress.kubernetes.io/proxy-send-timeout: "3600" + nginx.ingress.kubernetes.io/configuration-snippet: | + proxy_http_version 1.1; + proxy_set_header Upgrade "websocket"; + proxy_set_header Connection "Upgrade"; spec: rules: - host: "do-next.vatsim-radar.com" @@ -16,3 +22,10 @@ spec: name: app-next port: number: 3000 + - pathType: Prefix + path: "/ws" + backend: + service: + name: app-worker + port: + number: 8800 diff --git a/.config/k8s/next/app.yml b/.config/k8s/next/app.yml index 3c45e65b..dfcfd9fc 100644 --- a/.config/k8s/next/app.yml +++ b/.config/k8s/next/app.yml @@ -76,7 +76,7 @@ spec: imagePullPolicy: Always command: ["/radar/.config/worker-prod.sh"] ports: - - containerPort: 3000 + - containerPort: 8880 volumeMounts: - name: radar-data mountPath: /radar/src/data @@ -106,7 +106,7 @@ metadata: name: worker-next spec: ports: - - port: 3000 + - port: 8880 selector: app: worker-next ---