Add K8s deployment files, restructure to backend/frontend

This commit is contained in:
Agent
2026-03-20 05:12:22 +00:00
parent cea86e48a7
commit f70ba958c7
8 changed files with 371 additions and 0 deletions

38
k8s/backend/service.yaml Normal file
View File

@@ -0,0 +1,38 @@
apiVersion: v1
kind: Service
metadata:
name: todo-backend
spec:
type: ClusterIP
selector:
app: todo-backend
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: todo-postgres
spec:
type: ClusterIP
selector:
app: todo-postgres
ports:
- port: 5432
targetPort: 5432
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: todo-redis
spec:
type: ClusterIP
selector:
app: todo-redis
ports:
- port: 6379
targetPort: 6379
protocol: TCP