Skip to content

Commit

Permalink
[main] Hotfix: deployment to pod
Browse files Browse the repository at this point in the history
  • Loading branch information
NayeonKeum committed Aug 31, 2023
1 parent c5a66c8 commit 9d4a31d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 50 deletions.
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
apiVersion: apps/v1
kind: Deployment
apiVersion: v1
kind: Pod
metadata:
name: professor-{{ ID }}
namespace: professor-ns
labels:
app: professor-label-{{ ID }}
spec:
replicas: 1
selector:
matchLabels:
app: professor-label-{{ ID }}
template:
metadata:
labels:
app: professor-label-{{ ID }}
spec:
containers:
- name: professor-{{ ID }}
image: ryann3/professor-ubuntu:6.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
- name: ssh-port
containerPort: 22
- name: webssh-port
containerPort: 8888
- name: server-port
containerPort: 8001
resources: {}
containers:
- name: professor-{{ ID }}
image: ryann3/professor-ubuntu:6.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
- name: ssh-port
containerPort: 22
- name: webssh-port
containerPort: 8888
- name: server-port
containerPort: 8001
resources: {}
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
apiVersion: apps/v1
kind: Deployment
apiVersion: v1
kind: Pod
metadata:
name: student-{{ ID }}
namespace: student-ns
labels:
app: student-label-{{ ID }}
spec:
replicas: 1
selector:
matchLabels:
app: student-label-{{ ID }}
template:
metadata:
labels:
app: student-label-{{ ID }}
spec:
containers:
- name: student-{{ ID }}
image: ryann3/student-ubuntu:6.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
- name: ssh-port
containerPort: 22
- name: webssh-port
containerPort: 8888
- name: server-port
containerPort: 8001
resources: {}
containers:
- name: student-{{ ID }}
image: ryann3/student-ubuntu:6.0
imagePullPolicy: Always
ports:
- name: nginx-port
containerPort: 80
- name: ssh-port
containerPort: 22
- name: webssh-port
containerPort: 8888
- name: server-port
containerPort: 8001
resources: {}
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 9d4a31d

Please sign in to comment.