fix(deploy): simplify ingress by removing static paths
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions

The SPA assets are embedded in the app binary, so no separate
static file serving is needed.
This commit is contained in:
ZhenYi 2026-04-18 00:51:52 +08:00
parent 17e878c8b8
commit 7be2f4eb61

View File

@ -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: