feat(k8s): expose workclub services via LAN NodePorts

Expose frontend, API, and Keycloak on stable NodePorts and align app/keycloak external URLs for local-network browser access.
This commit is contained in:
WorkClub Automation
2026-03-13 06:33:50 +01:00
parent eaa163afa4
commit d4f09295be
5 changed files with 14 additions and 9 deletions

View File

@@ -6,11 +6,12 @@ metadata:
app: workclub-api app: workclub-api
component: backend component: backend
spec: spec:
type: ClusterIP type: NodePort
selector: selector:
app: workclub-api app: workclub-api
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 8080 targetPort: 8080
nodePort: 30081
protocol: TCP protocol: TCP

View File

@@ -6,10 +6,10 @@ metadata:
app: workclub app: workclub
data: data:
log-level: "Information" log-level: "Information"
cors-origins: "http://localhost:3000" cors-origins: "http://localhost:3000,http://192.168.240.200:30080"
api-base-url: "http://workclub-api" api-base-url: "http://192.168.240.200:30081"
keycloak-url: "http://workclub-keycloak" keycloak-url: "http://192.168.240.200:30082"
keycloak-authority: "http://workclub-keycloak/realms/workclub" keycloak-authority: "http://192.168.240.200:30082/realms/workclub"
keycloak-audience: "workclub-api" keycloak-audience: "workclub-api"
keycloak-realm: "workclub" keycloak-realm: "workclub"

View File

@@ -6,11 +6,12 @@ metadata:
app: workclub-frontend app: workclub-frontend
component: frontend component: frontend
spec: spec:
type: ClusterIP type: NodePort
selector: selector:
app: workclub-frontend app: workclub-frontend
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 3000 targetPort: 3000
nodePort: 30080
protocol: TCP protocol: TCP

View File

@@ -71,12 +71,14 @@ data:
"redirectUris": [ "redirectUris": [
"http://localhost:3000/*", "http://localhost:3000/*",
"http://localhost:3001/*", "http://localhost:3001/*",
"http://workclub-frontend/*" "http://workclub-frontend/*",
"http://192.168.240.200:30080/*"
], ],
"webOrigins": [ "webOrigins": [
"http://localhost:3000", "http://localhost:3000",
"http://localhost:3001", "http://localhost:3001",
"http://workclub-frontend" "http://workclub-frontend",
"http://192.168.240.200:30080"
], ],
"directAccessGrantsEnabled": true, "directAccessGrantsEnabled": true,
"standardFlowEnabled": true, "standardFlowEnabled": true,

View File

@@ -6,11 +6,12 @@ metadata:
app: workclub-keycloak app: workclub-keycloak
component: auth component: auth
spec: spec:
type: ClusterIP type: NodePort
selector: selector:
app: workclub-keycloak app: workclub-keycloak
ports: ports:
- name: http - name: http
port: 80 port: 80
targetPort: 8080 targetPort: 8080
nodePort: 30082
protocol: TCP protocol: TCP