fix(deploy): route /api and /ws to app, frontend as default on gitdata.ai
This commit is contained in:
parent
6c3f5b49f8
commit
d307c13878
@ -24,10 +24,24 @@ spec:
|
|||||||
- static.gitdata.ai
|
- static.gitdata.ai
|
||||||
secretName: {{ $fullName }}-tls
|
secretName: {{ $fullName }}-tls
|
||||||
rules:
|
rules:
|
||||||
# Frontend
|
# Frontend (default), with /api and /ws routed to app
|
||||||
- host: gitdata.ai
|
- host: gitdata.ai
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
- path: /api
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}-app
|
||||||
|
port:
|
||||||
|
number: {{ .Values.app.service.port }}
|
||||||
|
- path: /ws
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}-app
|
||||||
|
port:
|
||||||
|
number: {{ .Values.app.service.port }}
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
@ -35,7 +49,7 @@ spec:
|
|||||||
name: {{ $fullName }}-frontend
|
name: {{ $fullName }}-frontend
|
||||||
port:
|
port:
|
||||||
number: 80
|
number: 80
|
||||||
# API
|
# Dedicated API host
|
||||||
- host: api.gitdata.ai
|
- host: api.gitdata.ai
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user