-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from CS3219-AY2425S1/enhancement/kubernetes
Add kubernetes
- Loading branch information
Showing
39 changed files
with
539 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
## Common variables | ||
COMPOSE_PATH_SEPARATOR=: | ||
# Replace string between '...compose.' and '.yml' with 'dev' or 'prod' | ||
COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml | ||
COMPOSE_FILE=docker-compose.yml:docker-compose.prod.yml | ||
|
||
## Frontend variables | ||
FRONTEND_PORT=3000 | ||
FRONTEND_SERVICE_PORT=3000 | ||
# BASE_URI only needs to be provided if hosting outside of cluster | ||
BASE_URI= | ||
|
||
## Question service variables | ||
QUESTION_SVC_PORT=8000 | ||
QUESTION_SERVICE_SERVICE_PORT=8000 | ||
QUESTION_SVC_DB_URI= | ||
|
||
## User service variables | ||
USER_SVC_PORT=3001 | ||
USER_SERVICE_SERVICE_PORT=3001 | ||
USER_SVC_DB_URI= | ||
JWT_SECRET= | ||
EMAIL_ADDRESS= | ||
EMAIL_PASSWORD= | ||
|
||
## Matching service variables | ||
MATCHING_SVC_PORT=6969 | ||
MATCHING_SERVICE_SERVICE_PORT=6969 | ||
|
||
## Collab service variables | ||
COLLAB_SVC_PORT=3002 | ||
COLLAB_SERVICE_SERVICE_PORT=3002 | ||
COLLAB_SVC_DB_URI= | ||
OPENAI_API_KEY= | ||
|
||
## Redis variables | ||
REDIS_PORT=6379 | ||
REDIS_SERVICE_PORT=6379 | ||
|
||
## Redisinsight variables | ||
REDIS_INSIGHT_PORT=5540 | ||
|
||
## API Gateway variables | ||
API_GATEWAY_PORT= | ||
API_GATEWAY_SERVICE_PORT= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.env | ||
kubernetes/secrets.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM nginx:1.26 | ||
COPY nginx.conf /etc/nginx/nginx.conf | ||
COPY templates /etc/nginx/templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
api-gateway/templates/api_conf.d/api_backends.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
upstream user-service { | ||
server user-service:$USER_SVC_PORT; | ||
server $USER_SERVICE_SERVICE_HOST:$USER_SERVICE_SERVICE_PORT; | ||
} | ||
|
||
upstream question-service { | ||
server question-service:$QUESTION_SVC_PORT; | ||
server $QUESTION_SERVICE_SERVICE_HOST:$QUESTION_SERVICE_SERVICE_PORT; | ||
} | ||
|
||
upstream matching-service { | ||
server matching-service:$MATCHING_SVC_PORT; | ||
server $MATCHING_SERVICE_SERVICE_HOST:$MATCHING_SERVICE_SERVICE_PORT; | ||
} | ||
|
||
upstream collab-service { | ||
server collab-service:$COLLAB_SVC_PORT; | ||
server $COLLAB_SERVICE_SERVICE_HOST:$COLLAB_SERVICE_SERVICE_PORT; | ||
} | ||
|
||
upstream frontend { | ||
server frontend:$FRONTEND_PORT; | ||
server $FRONTEND_SERVICE_HOST:$FRONTEND_SERVICE_PORT; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.