Update frontend_deployment.yaml

env variables in frontend yaml
This commit is contained in:
Benjamin Loh 2023-10-30 14:40:55 +08:00
parent a9398334f9
commit eebfee8e7c
1 changed files with 5 additions and 0 deletions

View File

@ -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