Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
35 changes: 35 additions & 0 deletions k8s/bsg-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
labels:
app: bsg-frontend
spec:
replicas: 1
selector:
matchLabels:
app: bsg-frontend
template:
metadata:
labels:
app: bsg-frontend
spec:
containers:
- name: bsg-frontend
image: "" # acmutd/bsg-frontend:latest
ports:
- containerPort: 3000
---
apiVersion: v1
kind: Service
metadata:
name: frontend-service
spec:
selector:
app: bsg-frontend
type: LoadBalancer

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why we're using LoadBalancer? Doesn't seem to be necessary since we only have 1 replica.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

ports:
- name: http
port: 3000
targetPort: 3000
nodePort: 30000
33 changes: 33 additions & 0 deletions k8s/rtc-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: rtc-deployment
labels:
app: rtc
spec:
replicas: 1
selector:
matchLabels:
app: rtc
template:
metadata:
labels:
app: rtc
spec:
containers:
- name: rtc
image: "" # acmutd/bsg-frontend:latest
ports:
- containerPort: 3002
---
apiVersion: v1
kind: Service
metadata:
name: rtc-service
spec:
selector:
app: rtc
ports:
- name: TCP
port: 3002
targetPort: 3002
34 changes: 34 additions & 0 deletions k8s/worker-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker-deployment
labels:
app: leetcode-worker
spec:
replicas: 1
selector:
matchLabels:
app: leetcode-worker
template:
metadata:
labels:
app: leetcode-worker

spec:
containers:
- name: leetcode-worker
image: "" # acmutd/bsg-frontend:latest
ports:
- containerPort: 3001
---
apiVersion: v1
kind: Service
metadata:
name: worker-service
spec:
selector:
app: leetcode-worker
ports:
- name: TCP
port: 3001
targetPort: 3001