From eebfee8e7ccd98591beb12ddcf68643aba2ce7b4 Mon Sep 17 00:00:00 2001 From: Benjamin Loh Date: Mon, 30 Oct 2023 14:40:55 +0800 Subject: [PATCH] Update frontend_deployment.yaml env variables in frontend yaml --- safeshare/K8s/frontend_deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/safeshare/K8s/frontend_deployment.yaml b/safeshare/K8s/frontend_deployment.yaml index 18d13cc..f520c87 100644 --- a/safeshare/K8s/frontend_deployment.yaml +++ b/safeshare/K8s/frontend_deployment.yaml @@ -21,5 +21,10 @@ spec: - name: safeshare-frontend image: amusement3004/safeshare-frontend imagePullPolicy: IfNotPresent + env: # Add these environment variables + - name: REACT_APP_API_HOST + value: safeshare-backend-service # The name of the backend service + - name: REACT_APP_API_PORT + value: "80" # The port the backend service listens on ports: - containerPort: 3000 \ No newline at end of file