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
|
app: workclub-api
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 5001
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
nodePort: 30081
|
nodePort: 5001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -6,10 +6,10 @@ metadata:
|
|||||||
app: workclub
|
app: workclub
|
||||||
data:
|
data:
|
||||||
log-level: "Information"
|
log-level: "Information"
|
||||||
cors-origins: "http://localhost:3000,http://192.168.240.200:30080"
|
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:30081"
|
api-base-url: "http://192.168.240.200:5001"
|
||||||
keycloak-url: "http://192.168.240.200:30082"
|
keycloak-url: "http://192.168.240.200:8080"
|
||||||
keycloak-authority: "http://192.168.240.200:30082/realms/workclub"
|
keycloak-authority: "http://192.168.240.200:8080/realms/workclub"
|
||||||
keycloak-audience: "workclub-api"
|
keycloak-audience: "workclub-api"
|
||||||
keycloak-realm: "workclub"
|
keycloak-realm: "workclub"
|
||||||
|
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ spec:
|
|||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: workclub-config
|
name: workclub-config
|
||||||
key: keycloak-authority
|
key: keycloak-authority
|
||||||
- name: NEXTAUTH_URL
|
- name: NEXTAUTH_URL
|
||||||
value: "http://192.168.240.200:30080"
|
value: "http://192.168.240.200:3000"
|
||||||
- name: AUTH_TRUST_HOST
|
- name: AUTH_TRUST_HOST
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: NEXTAUTH_SECRET
|
- name: NEXTAUTH_SECRET
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
app: workclub-frontend
|
app: workclub-frontend
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 3000
|
||||||
targetPort: 3000
|
targetPort: 3000
|
||||||
nodePort: 30080
|
nodePort: 3000
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ spec:
|
|||||||
app: workclub-keycloak
|
app: workclub-keycloak
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 8080
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
nodePort: 30082
|
nodePort: 8080
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
Reference in New Issue
Block a user