Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert back to HTTP with LoadBalancer services #199

Merged
merged 16 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions deployment/gke-prod-manifests/frontend-ingress.yaml

This file was deleted.

1 change: 1 addition & 0 deletions deployment/gke-prod-manifests/frontend-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ spec:
targetPort: 3000
selector:
io.kompose.service: frontend
type: LoadBalancer
status:
loadBalancer: {}
3 changes: 2 additions & 1 deletion deployment/gke-prod-manifests/gateway-backend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
type: HTTP
requestPath: /healthz
port: 8080
customRequestHeaders:
customResponseHeaders:
headers:
- "Access-Control-Allow-Origin: https://www.codeparty.org"
- "Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS"
6 changes: 1 addition & 5 deletions deployment/gke-prod-manifests/gateway-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- name: WS_COLLABORATION_PROXY_PORT
value: "4003"
- name: FRONTEND_ADDRESS
value: "https://www.codeparty.org"
value: "http://www.codeparty.org"
image: asia-southeast1-docker.pkg.dev/peerprep-group11-prod/codeparty-prod-images/gateway:latest
name: gateway
ports:
Expand All @@ -44,10 +44,6 @@ spec:
- containerPort: 4003
hostPort: 4003
protocol: TCP
# Needed for health check
- containerPort: 8080
hostPort: 8080
protocol: TCP
resources:
# You must specify requests for CPU to autoscale
# based on CPU utilization
Expand Down
13 changes: 0 additions & 13 deletions deployment/gke-prod-manifests/gateway-http-ingress.yaml

This file was deleted.

1 change: 1 addition & 0 deletions deployment/gke-prod-manifests/gateway-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ spec:
targetPort: 8080
selector:
io.kompose.service: gateway
type: LoadBalancer
status:
loadBalancer: {}
13 changes: 0 additions & 13 deletions deployment/gke-prod-manifests/gateway-wscollaboration-ingress.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions deployment/gke-prod-manifests/gateway-wsmatch-ingress.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions deployment/gke-prod-manifests/gke-managed-cert.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions deployment/prod-dockerfiles/Dockerfile.frontend-prod
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN yarn prisma generate
ARG NEXT_PUBLIC_FRONTEND_FIREBASE_CONFIG_ARG
ENV NEXT_PUBLIC_FRONTEND_FIREBASE_CONFIG=$NEXT_PUBLIC_FRONTEND_FIREBASE_CONFIG_ARG

ENV NEXT_PUBLIC_HTTP_PROXY_GATEWAY_ADDRESS="https://api.codeparty.org/"
ENV NEXT_PUBLIC_WS_MATCH_PROXY_GATEWAY_ADDRESS="https://wsmatch.codeparty.org"
ENV NEXT_PUBLIC_WS_COLLABORATION_PROXY_GATEWAY_ADDRESS="https://wscollab.codeparty.org"
ENV NEXT_PUBLIC_HTTP_PROXY_GATEWAY_ADDRESS="http://api.codeparty.org:4000/"
ENV NEXT_PUBLIC_WS_MATCH_PROXY_GATEWAY_ADDRESS="http://api.codeparty.org:4002"
ENV NEXT_PUBLIC_WS_COLLABORATION_PROXY_GATEWAY_ADDRESS="http://api.codeparty.org:4003"

RUN yarn build

Expand Down
Loading