fix(deploy): simplify ingress by removing static paths
The SPA assets are embedded in the app binary, so no separate static file serving is needed.
This commit is contained in:
parent
17e878c8b8
commit
7be2f4eb61
@ -1,4 +1,3 @@
|
||||
{{- /* Single unified Ingress for all services */ -}}
|
||||
{{- $fullName := include "gitdata.fullname" . -}}
|
||||
{{- $ns := include "gitdata.namespace" . -}}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
@ -25,24 +24,9 @@ spec:
|
||||
- static.gitdata.ai
|
||||
secretName: {{ $fullName }}-tls
|
||||
rules:
|
||||
# SPA (embedded in app), with /api and /ws
|
||||
- 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user