tower 0.9.0 + tower-ui 0.8.0 — capacity bars on Server Detail

This commit is contained in:
git_admin
2026-04-26 20:47:11 +03:00
parent ab229c308a
commit 6150e88ee2
5 changed files with 177 additions and 2 deletions

38
ingressroute.yaml Normal file
View File

@@ -0,0 +1,38 @@
# Tower IngressRoute — path-based split between API and UI on the
# same hostname.
#
# Routing rules (Traefik picks longest-match-with-priority):
# - API endpoints (/healthz, /instances, future /api/*) → backend
# - everything else → frontend (Vue SPA)
#
# Priority is set explicitly so Traefik doesn't fall back to its
# heuristic; the API rule outranks the catchall, which outranks no
# rule at all.
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: tower
labels:
{{- include "tower.labels" . | nindent 4 }}
spec:
entryPoints:
- {{ .Values.ingress.entryPoint }}
routes:
{{- if .Values.backend.enabled }}
- match: Host(`{{ .Values.ingress.domain }}`) && (PathPrefix(`/api`) || PathPrefix(`/healthz`))
kind: Rule
priority: 200
services:
- name: tower-backend
port: 8080
{{- end }}
{{- if .Values.frontend.enabled }}
- match: Host(`{{ .Values.ingress.domain }}`)
kind: Rule
priority: 100
services:
- name: tower-frontend
port: 80
{{- end }}
tls:
secretName: tower-tls