jaehyuk-jang

Fix yaml

1 +apiVersion: apps/v1
2 +kind: Deployment
3 +metadata:
4 + name: backend
5 + labels:
6 + app: backend
7 + tier: backend
8 +spec:
9 + selector:
10 + matchLabels:
11 + app: backend
12 + replicas: 1
13 + template:
14 + metadata:
15 + labels:
16 + app: backend
17 + spec:
18 + containers:
19 + - name: backend
20 + image: khujay15/nest-docker-test
21 + ports:
22 + - containerPort: 5000
23 + name: backend
24 +
...\ No newline at end of file ...\ No newline at end of file
1 +apiVersion: v1
2 +kind: Service
3 +metadata:
4 + name: backend
5 +spec:
6 + type: ClusterIP
7 + ports:
8 + - port: 5000
9 + targetPort: 5000
10 + selector:
11 + app: backend
...\ No newline at end of file ...\ No newline at end of file
1 +apiVersion: apps/v1
2 +kind: Deployment
3 +metadata:
4 + name: frontend
5 + labels:
6 + app: frontend
7 + tier: frontend
8 +spec:
9 + selector:
10 + matchLabels:
11 + app: frontend
12 + replicas: 1
13 + template:
14 + metadata:
15 + labels:
16 + app: frontend
17 + spec:
18 + containers:
19 + - name: frontend
20 + image: khujay15/next-docker-test
21 + ports:
22 + - containerPort: 3000
23 + name: frontend
...\ No newline at end of file ...\ No newline at end of file
1 +apiVersion: v1
2 +kind: Service
3 +metadata:
4 + name: frontend
5 +spec:
6 + type: ClusterIP
7 + ports:
8 + - port: 3000
9 + targetPort: 3000
10 + selector:
11 + app: frontend