diff --git a/nowchess/base/nowchess-rollouts.yaml b/nowchess/base/nowchess-rollouts.yaml index e053339..4aa7acc 100644 --- a/nowchess/base/nowchess-rollouts.yaml +++ b/nowchess/base/nowchess-rollouts.yaml @@ -651,6 +651,15 @@ 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 ports: - containerPort: 80 protocol: TCP diff --git a/nowchess/base/nowchess-services.yaml b/nowchess/base/nowchess-services.yaml index 96f5b7b..a260de0 100644 --- a/nowchess/base/nowchess-services.yaml +++ b/nowchess/base/nowchess-services.yaml @@ -223,3 +223,27 @@ spec: - protocol: TCP port: 8084 targetPort: 8084 +--- +apiVersion: v1 +kind: Service +metadata: + name: nowchess-frontend-active +spec: + selector: + app: nowchess-frontend + ports: + - protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: v1 +kind: Service +metadata: + name: nowchess-frontend-preview +spec: + selector: + app: nowchess-frontend + ports: + - protocol: TCP + port: 80 + targetPort: 80 diff --git a/nowchess/eu-central-1-prod/ingress.yaml b/nowchess/eu-central-1-prod/ingress.yaml index 247bad6..47e8653 100644 --- a/nowchess/eu-central-1-prod/ingress.yaml +++ b/nowchess/eu-central-1-prod/ingress.yaml @@ -41,6 +41,13 @@ spec: name: nowchess-core-active port: number: 8080 + - path: / + pathType: Prefix + backend: + service: + name: nowchess-frontend-active + port: + number: 80 tls: - hosts: - nowchess.janis-eccarius.de diff --git a/nowchess/eu-central-1-staging/ingress.yaml b/nowchess/eu-central-1-staging/ingress.yaml index 9edbfa2..f454070 100644 --- a/nowchess/eu-central-1-staging/ingress.yaml +++ b/nowchess/eu-central-1-staging/ingress.yaml @@ -41,6 +41,13 @@ spec: name: nowchess-core-active port: number: 8080 + - path: / + pathType: Prefix + backend: + service: + name: nowchess-frontend-active + port: + number: 80 tls: - hosts: - st.nowchess.janis-eccarius.de