jaehyuk-jang

Fix yaml

apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
labels:
app: backend
tier: backend
spec:
selector:
matchLabels:
app: backend
replicas: 1
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: khujay15/nest-docker-test
ports:
- containerPort: 5000
name: backend
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: backend
spec:
type: ClusterIP
ports:
- port: 5000
targetPort: 5000
selector:
app: backend
\ No newline at end of file
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
labels:
app: frontend
tier: frontend
spec:
selector:
matchLabels:
app: frontend
replicas: 1
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: khujay15/next-docker-test
ports:
- containerPort: 3000
name: frontend
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: frontend
spec:
type: ClusterIP
ports:
- port: 3000
targetPort: 3000
selector:
app: frontend