Add K8s deployment files, restructure to backend/frontend
This commit is contained in:
38
k8s/backend/service.yaml
Normal file
38
k8s/backend/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user