refactor: simplify artifactapi routes — UI on /ui, API catches all
ci/woodpecker/pr/kubeconform Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful

Route /ui to the UI service, everything else (/, /api, /v2, /health,
etc.) to the API service. Eliminates the need to add a new route rule
for every API path prefix.
This commit is contained in:
2026-06-26 23:37:21 +10:00
parent 5dee768170
commit 97345a8628
+10 -30
View File
@@ -37,42 +37,22 @@ spec:
name: artifactapi name: artifactapi
sectionName: https sectionName: https
rules: rules:
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /api
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /v2
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches:
- path:
type: PathPrefix
value: /health
- backendRefs: - backendRefs:
- group: "" - group: ""
kind: Service kind: Service
name: ui name: ui
port: 80 port: 80
weight: 1 weight: 1
matches:
- path:
type: PathPrefix
value: /ui
- backendRefs:
- group: ""
kind: Service
name: artifactapi
port: 80
weight: 1
matches: matches:
- path: - path:
type: PathPrefix type: PathPrefix