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-rollouts.yaml
|
||||||
- nowchess-services.yaml
|
- nowchess-services.yaml
|
||||||
- nowchess-env-config.yaml
|
- nowchess-env-config.yaml
|
||||||
|
- nowchess-frontend-env-config.yaml
|
||||||
- nowchess-hpa.yaml
|
- nowchess-hpa.yaml
|
||||||
|
|
||||||
configurations:
|
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
|
- name: nowchess-frontend
|
||||||
image: ghcr.io/now-chess/now-chess-systems/frontend:latest
|
image: ghcr.io/now-chess/now-chess-systems/frontend:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
envFrom:
|
||||||
- name: REACT_APP_API_URL
|
- configMapRef:
|
||||||
value: http://nowchess-core-active:8080
|
name: nowchess-frontend-env-config
|
||||||
- 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
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -20,6 +20,17 @@ patches:
|
|||||||
target:
|
target:
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
name: nowchess-env-config
|
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:
|
images:
|
||||||
- name: ghcr.io/now-chess/now-chess-systems/account
|
- name: ghcr.io/now-chess/now-chess-systems/account
|
||||||
newTag: 0.16.0
|
newTag: 0.16.0
|
||||||
|
|||||||
Reference in New Issue
Block a user