Skip to content

Commit

Permalink
[feat/#67] Fix: update res yamls
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Aug 20, 2023
1 parent 0f1c776 commit e4532fa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
13 changes: 8 additions & 5 deletions resources/res/remote-deploy-professor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ metadata:
spec:
containers:
- name: professor-{{ ID }}
image: ryann3/professor-ubuntu:4.2
image: ryann3/professor-ubuntu:5.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
- name: ssh-port
containerPort: 22
- name: webssh-port
containerPort: 8887
containerPort: 8888
- name: server-port
containerPort: 8001
resources: {}
Expand All @@ -31,11 +32,13 @@ spec:
port: 81
targetPort: nginx-port
- name: webssh
port: 8887
port: { PORT }
targetPort: webssh-port
nodePort: { WEB_NODE_PORT }
- name: server
port: 8001
port: { API_PORT }
targetPort: server-port
nodePort: { APP_NODE_PORT }
selector:
app: professor-label-{{ ID }}
type: LoadBalancer
type: NodePort
10 changes: 8 additions & 2 deletions resources/res/remote-deploy-student.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ metadata:
spec:
containers:
- name: student-{{ ID }}
image: ryann3/student-ubuntu:4.2
image: ryann3/student-ubuntu:5.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
Expand All @@ -30,12 +31,17 @@ spec:
- name: http
port: 81
targetPort: nginx-port
- name: ssh
port: 22
targetPort: ssh-port
- name: webssh
port: { PORT }
targetPort: webssh-port
nodePort: { WEB_NODE_PORT }
- name: server
port: 8001
port: { API_PORT }
targetPort: server-port
nodePort: { APP_NODE_PORT }
selector:
app: student-label-{{ ID }}
type: LoadBalancer
4 changes: 3 additions & 1 deletion resources/yamls/deploy-control-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ spec:
targetPort: nginx-port
- name: webssh
port: 8886
nodePort: 30000
- name: server
port: 8003
targetPort: server-port
nodePort: 30001
selector:
app: control-label
type: LoadBalancer
type: NodePort

0 comments on commit e4532fa

Please sign in to comment.