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.
This commit is contained in:
@@ -11,7 +11,7 @@ spec:
|
||||
app: workclub-api
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
port: 5001
|
||||
targetPort: 8080
|
||||
nodePort: 30081
|
||||
nodePort: 5001
|
||||
protocol: TCP
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ spec:
|
||||
name: workclub-config
|
||||
key: keycloak-authority
|
||||
- name: NEXTAUTH_URL
|
||||
value: "http://192.168.240.200:30080"
|
||||
value: "http://192.168.240.200:3000"
|
||||
- name: AUTH_TRUST_HOST
|
||||
value: "true"
|
||||
- name: NEXTAUTH_SECRET
|
||||
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
app: workclub-frontend
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
nodePort: 30080
|
||||
nodePort: 3000
|
||||
protocol: TCP
|
||||
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
app: workclub-keycloak
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
nodePort: 30082
|
||||
nodePort: 8080
|
||||
protocol: TCP
|
||||
|
||||
Reference in New Issue
Block a user