add ptp-chat configuration
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s
This commit is contained in:
75
ptp-chat/ptp-chat-istio.yaml
Normal file
75
ptp-chat/ptp-chat-istio.yaml
Normal 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
|
||||
Reference in New Issue
Block a user