Align Kubernetes ports with Docker Compose configuration
CI Pipeline / Backend Build & Test (push) Successful in 58s
CI Pipeline / Frontend Lint, Test & Build (push) Successful in 43s
CI Pipeline / Infrastructure Validation (push) Failing after 4s

- 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.
This commit is contained in:
WorkClub Automation
2026-03-20 20:40:22 +01:00
parent 79fabd5348
commit 0100def25a
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ spec:
app: workclub-api
ports:
- name: http
port: 80
port: 5001
targetPort: 8080
nodePort: 30081
nodePort: 5001
protocol: TCP
+4 -4
View File
@@ -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"
+2 -2
View File
@@ -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
+2 -2
View File
@@ -11,7 +11,7 @@ spec:
app: workclub-frontend
ports:
- name: http
port: 80
port: 3000
targetPort: 3000
nodePort: 30080
nodePort: 3000
protocol: TCP
+2 -2
View File
@@ -11,7 +11,7 @@ spec:
app: workclub-keycloak
ports:
- name: http
port: 80
port: 8080
targetPort: 8080
nodePort: 30082
nodePort: 8080
protocol: TCP