Zkt22/z2/service.yml

28 lines
443 B
YAML
Raw Normal View History

2022-05-01 15:20:28 +00:00
# Backend service
apiVersion: v1
kind: Service
metadata:
name: backend-service
namespace: suhailahamed
spec:
selector:
app: fruitapp-backend
ports:
- protocol: TCP
port: 5000
targetPort: 5000
---
# Frontend service
apiVersion: v1
kind: Service
metadata:
name: frontend-service
namespace: suhailahamed
spec:
selector:
app: fruitapp-frontend
ports:
- protocol: TCP
port: 80
targetPort: 80