feat(nowchess): add frontend environment configuration and update rollouts to use ConfigMap

This commit is contained in:
2026-05-19 09:18:02 +02:00
parent 838128bc73
commit f01a38a7e2
4 changed files with 22 additions and 9 deletions
+1
View File
@@ -5,6 +5,7 @@ resources:
- nowchess-rollouts.yaml
- nowchess-services.yaml
- nowchess-env-config.yaml
- nowchess-frontend-env-config.yaml
- nowchess-hpa.yaml
configurations:
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nowchess-frontend-env-config
data:
API_URL: "https://st.nowchess.janis-eccarius.de"
WEBSOCKET_URL: "wss://st.nowchess.janis-eccarius.de"
+3 -9
View File
@@ -703,15 +703,9 @@ spec:
- name: nowchess-frontend
image: ghcr.io/now-chess/now-chess-systems/frontend:latest
imagePullPolicy: Always
env:
- name: REACT_APP_API_URL
value: http://nowchess-core-active:8080
- name: REACT_APP_ACCOUNT_URL
value: http://nowchess-account-active:8083
- name: REACT_APP_STORE_URL
value: http://nowchess-store-active:8085
- name: REACT_APP_WS_URL
value: http://nowchess-ws-active:8084
envFrom:
- configMapRef:
name: nowchess-frontend-env-config
ports:
- containerPort: 80
protocol: TCP