backend files

This commit is contained in:
2026-02-14 03:56:43 +00:00
commit 6876717edf
5 changed files with 201 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-backend
labels:
app: todo-backend
spec:
replicas: 2
selector:
matchLabels:
app: todo-backend
template:
metadata:
labels:
app: todo-backend
spec:
containers:
- name: todo-backend
image: IMAGE_PATH_PLACEHOLDER
ports:
- containerPort: 3001
env:
- name: PORT
value: "3001"
---
apiVersion: v1
kind: Service
metadata:
name: todo-backend-service
spec:
type: NodePort
selector:
app: todo-backend
ports:
- protocol: TCP
port: 3001
targetPort: 3001
nodePort: 30001