From fd2931e59c612a1e193ab0a984de535fa43c4c84 Mon Sep 17 00:00:00 2001 From: WorkClub Automation Date: Fri, 20 Mar 2026 22:50:51 +0100 Subject: [PATCH] Fix Kubernetes NodePort range (30000-32767) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Frontend: nodePort 3000 → 30080 - Backend: nodePort 5001 → 30501, service port 5001 → 8080 - Keycloak: nodePort 8080 → 30808 Kubernetes requires NodePort to be in range 30000-32767. The service port (internal) and targetPort (container) remain unchanged for compatibility with existing configurations. --- infra/k8s/base/backend-service.yaml | 10 +++++----- infra/k8s/base/frontend-service.yaml | 10 +++++----- infra/k8s/base/keycloak-service.yaml | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/infra/k8s/base/backend-service.yaml b/infra/k8s/base/backend-service.yaml index 9317e00..1d6a52d 100644 --- a/infra/k8s/base/backend-service.yaml +++ b/infra/k8s/base/backend-service.yaml @@ -10,8 +10,8 @@ spec: selector: app: workclub-api ports: - - name: http - port: 5001 - targetPort: 8080 - nodePort: 5001 - protocol: TCP + - name: http + port: 8080 + targetPort: 8080 + nodePort: 30501 + protocol: TCP diff --git a/infra/k8s/base/frontend-service.yaml b/infra/k8s/base/frontend-service.yaml index 7f80b11..c30ce2c 100644 --- a/infra/k8s/base/frontend-service.yaml +++ b/infra/k8s/base/frontend-service.yaml @@ -10,8 +10,8 @@ spec: selector: app: workclub-frontend ports: - - name: http - port: 3000 - targetPort: 3000 - nodePort: 3000 - protocol: TCP + - name: http + port: 3000 + targetPort: 3000 + nodePort: 30080 + protocol: TCP diff --git a/infra/k8s/base/keycloak-service.yaml b/infra/k8s/base/keycloak-service.yaml index 9617c78..93e03db 100644 --- a/infra/k8s/base/keycloak-service.yaml +++ b/infra/k8s/base/keycloak-service.yaml @@ -10,8 +10,8 @@ spec: selector: app: workclub-keycloak ports: - - name: http - port: 8080 - targetPort: 8080 - nodePort: 8080 - protocol: TCP + - name: http + port: 8080 + targetPort: 8080 + nodePort: 30808 + protocol: TCP