Skip to content

Commit

Permalink
Merge pull request #34 from CS3219-AY2425S1/update-deploy-env
Browse files Browse the repository at this point in the history
update env variables
  • Loading branch information
guowei42 authored Nov 6, 2024
2 parents ed73847 + 55abdc0 commit 647d7e8
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kubernetes/ai-service/ai-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ spec:
ports:
- name: ai-service
containerPort: 3005
env:
- name: ENV
valueFrom:
secretKeyRef:
name: env
key: ENV
- name: GEMINI_API_KEY
valueFrom:
secretKeyRef:
name: env
key: GEMINI_API_KEY
restartPolicy: Always


6 changes: 6 additions & 0 deletions kubernetes/match-service/match-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
ports:
- name: match-service
containerPort: 3003
env:
- name: REDIS_URL
valueFrom:
secretKeyRef:
name: env
key: REDIS_URL
restartPolicy: Always


12 changes: 12 additions & 0 deletions kubernetes/question-service/question-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ spec:
ports:
- name: qn-service
containerPort: 3002
env:
- name: ENV
valueFrom:
secretKeyRef:
name: env
key: ENV
- name: DB_CLOUD_URI
valueFrom:
secretKeyRef:
name: env
key: DB_URI_QUESTION

restartPolicy: Always


16 changes: 16 additions & 0 deletions kubernetes/user-service/user-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,22 @@ spec:
ports:
- name: user-service
containerPort: 3001
env:
- name: ENV
valueFrom:
secretKeyRef:
name: env
key: ENV
- name: DB_CLOUD_URI
valueFrom:
secretKeyRef:
name: env
key: DB_URI_USER
- name: JWT_SECRET
valueFrom:
secretKeyRef:
name: env
key: JWT_SECRET
restartPolicy: Always


0 comments on commit 647d7e8

Please sign in to comment.