feat(nowchess): add frontend environment configuration and update rollouts to use ConfigMap
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
|
||||
@@ -20,6 +20,17 @@ patches:
|
||||
target:
|
||||
kind: ConfigMap
|
||||
name: nowchess-env-config
|
||||
- patch: |-
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: nowchess-frontend-env-config
|
||||
data:
|
||||
API_URL: "https://nowchess.janis-eccarius.de"
|
||||
WEBSOCKET_URL: "wss://nowchess.janis-eccarius.de"
|
||||
target:
|
||||
kind: ConfigMap
|
||||
name: nowchess-frontend-env-config
|
||||
images:
|
||||
- name: ghcr.io/now-chess/now-chess-systems/account
|
||||
newTag: 0.16.0
|
||||
|
||||
Reference in New Issue
Block a user