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

create yaml files #56

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
34 changes: 34 additions & 0 deletions k8s/bsg-frontend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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
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