Skip to content

Commit 583e3e6

Browse files
committed
PEER-244,245: Add CORS for frontend pod
Signed-off-by: SeeuSim <[email protected]>
1 parent 1bad40d commit 583e3e6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

k8s/04-match-svc-deployment.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ spec:
4242
- /bin/sh
4343
- -c
4444
- |
45-
# until REDISCLI_AUTH="$MATCHING_DB_PASSWORD" redis-cli -h match-db --user "$MATCHING_DB_USER" ping; do
46-
until redis-cli -h match-db ping; do
45+
until REDISCLI_AUTH="$MATCHING_DB_PASSWORD" redis-cli -h "$MATCHING_DB_HOST" --user "$MATCHING_DB_USERNAME" ping; do
4746
echo "Waiting for Redis to be ready..."
4847
sleep 1
4948
done
@@ -61,6 +60,8 @@ spec:
6160
value: match-db
6261
- name: MATCHING_DB_PORT
6362
value: "6379"
63+
- name: PEERPREP_UI_HOST
64+
value: http://frontend:3000
6465
livenessProbe:
6566
exec:
6667
command:

k8s/04-question-svc-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ spec:
6969
- secretRef:
7070
name: question-secret
7171
env:
72+
# When load testing, it exposes port 80 by default.
7273
- name: LOAD_TEST_POD
7374
value: http://question-service-load-test
75+
- name: PEERPREP_UI_HOST
76+
value: http://frontend
7477
livenessProbe:
7578
exec:
7679
command:

k8s/04-user-svc-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,19 @@ spec:
6363
6464
containers:
6565
- name: user-express
66+
# TODO: Switch back to :latest once we merge to main branch
6667
# image: ay2425s1cs3219g16/user-express:main
6768
image: ay2425s1cs3219g16/user-express:sha-ff94455
6869
imagePullPolicy: IfNotPresent
6970
envFrom:
7071
- secretRef:
7172
name: user-secret
7273
env:
74+
# When load testing, it exposes port 80 by default.
7375
- name: LOAD_TEST_POD
7476
value: http://user-service-load-test
77+
- name: PEERPREP_UI_HOST
78+
value: http://frontend:3000
7579
livenessProbe:
7680
exec:
7781
command:

0 commit comments

Comments
 (0)