From 0100def25addcc3e98afdb8b48fcafb829a3312a Mon Sep 17 00:00:00 2001 From: WorkClub Automation Date: Fri, 20 Mar 2026 20:40:22 +0100 Subject: [PATCH] Align Kubernetes ports with Docker Compose configuration - Frontend: Changed NodePort from 30080 to 3000 (matches Docker port) - Backend: Changed NodePort from 30081 to 5001 (matches Docker port) - Keycloak: Changed NodePort from 30082 to 8080 (matches Docker port) - Updated ConfigMap URLs to use new ports - Updated NEXTAUTH_URL to use port 3000 This ensures Kubernetes deployment uses the same ports as Docker Compose for consistency across environments. --- infra/k8s/base/backend-service.yaml | 4 ++-- infra/k8s/base/configmap.yaml | 8 ++++---- infra/k8s/base/frontend-deployment.yaml | 4 ++-- infra/k8s/base/frontend-service.yaml | 4 ++-- infra/k8s/base/keycloak-service.yaml | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/infra/k8s/base/backend-service.yaml b/infra/k8s/base/backend-service.yaml index 51f34dc..9317e00 100644 --- a/infra/k8s/base/backend-service.yaml +++ b/infra/k8s/base/backend-service.yaml @@ -11,7 +11,7 @@ spec: app: workclub-api ports: - name: http - port: 80 + port: 5001 targetPort: 8080 - nodePort: 30081 + nodePort: 5001 protocol: TCP diff --git a/infra/k8s/base/configmap.yaml b/infra/k8s/base/configmap.yaml index 67f7b5f..4df80d9 100644 --- a/infra/k8s/base/configmap.yaml +++ b/infra/k8s/base/configmap.yaml @@ -6,10 +6,10 @@ metadata: app: workclub data: log-level: "Information" - cors-origins: "http://localhost:3000,http://192.168.240.200:30080" - api-base-url: "http://192.168.240.200:30081" - keycloak-url: "http://192.168.240.200:30082" - keycloak-authority: "http://192.168.240.200:30082/realms/workclub" + cors-origins: "http://localhost:3000,http://192.168.240.200:3000,http://192.168.240.200:8080" + api-base-url: "http://192.168.240.200:5001" + keycloak-url: "http://192.168.240.200:8080" + keycloak-authority: "http://192.168.240.200:8080/realms/workclub" keycloak-audience: "workclub-api" keycloak-realm: "workclub" diff --git a/infra/k8s/base/frontend-deployment.yaml b/infra/k8s/base/frontend-deployment.yaml index ce73567..92e5df0 100644 --- a/infra/k8s/base/frontend-deployment.yaml +++ b/infra/k8s/base/frontend-deployment.yaml @@ -67,8 +67,8 @@ spec: configMapKeyRef: name: workclub-config key: keycloak-authority - - name: NEXTAUTH_URL - value: "http://192.168.240.200:30080" + - name: NEXTAUTH_URL + value: "http://192.168.240.200:3000" - name: AUTH_TRUST_HOST value: "true" - name: NEXTAUTH_SECRET diff --git a/infra/k8s/base/frontend-service.yaml b/infra/k8s/base/frontend-service.yaml index d9005b5..7f80b11 100644 --- a/infra/k8s/base/frontend-service.yaml +++ b/infra/k8s/base/frontend-service.yaml @@ -11,7 +11,7 @@ spec: app: workclub-frontend ports: - name: http - port: 80 + port: 3000 targetPort: 3000 - nodePort: 30080 + nodePort: 3000 protocol: TCP diff --git a/infra/k8s/base/keycloak-service.yaml b/infra/k8s/base/keycloak-service.yaml index e32661d..9617c78 100644 --- a/infra/k8s/base/keycloak-service.yaml +++ b/infra/k8s/base/keycloak-service.yaml @@ -11,7 +11,7 @@ spec: app: workclub-keycloak ports: - name: http - port: 80 + port: 8080 targetPort: 8080 - nodePort: 30082 + nodePort: 8080 protocol: TCP