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
|
||||
secretName: {{ $fullName }}-tls
|
||||
rules:
|
||||
# Frontend
|
||||
# Frontend (default), with /api and /ws routed to app
|
||||
- host: gitdata.ai
|
||||
http:
|
||||
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: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
@ -35,7 +49,7 @@ spec:
|
||||
name: {{ $fullName }}-frontend
|
||||
port:
|
||||
number: 80
|
||||
# API
|
||||
# Dedicated API host
|
||||
- host: api.gitdata.ai
|
||||
http:
|
||||
paths:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user