add ptp-chat configuration
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s

This commit is contained in:
jona.klaess
2026-06-06 15:21:00 +02:00
parent 67c0624079
commit b1e670aa38
11 changed files with 392 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
apiVersion: v1
kind: Service
metadata:
name: ptp-chat-backend
namespace: ptp-chat
labels:
app: ptp-chat-backend
spec:
ports:
- name: http
port: 80
targetPort: 8081
selector:
app: ptp-chat-backend
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: ptp-chat-frontend
namespace: ptp-chat
labels:
app: ptp-chat-frontend
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: ptp-chat-frontend
type: NodePort
---
apiVersion: v1
kind: Service
metadata:
name: ptp-chat-db
namespace: ptp-chat
labels:
app: ptp-chat-db
spec:
ports:
- name: http
port: 5432
targetPort: 5432
selector:
app: ptp-chat-db
type: NodePort
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: ptp-chat-vs
namespace: ptp-chat
spec:
hosts:
- ptpchat.k8s.bittehackmichnicht.de
http:
- match:
- uri:
prefix: /
route:
- destination:
host: ptp-chat-frontend.ptp-chat.svc.cluster.local
port:
number: 80
- match:
- uri:
prefix: /api
rewrite:
uri: /
route:
- destination:
host: ptp-chat-backend.ptp-chat.svc.cluster.local
port:
number: 80