Initial Tower chart

This commit is contained in:
git_admin
2026-04-26 18:01:44 +03:00
parent eeca9fe9cf
commit 13a1fcd448
7 changed files with 217 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Tower IngressRoute. Routes by path:
# /api/* → backend (8080)
# /* → frontend (when Step 4 builds it; currently a 503 from
# Traefik because backend.frontend.enabled=false)
#
# Once frontend lands, we add a second route block with a Path matcher
# for the `/api` prefix going to backend, and the catch-all for static
# files going to frontend.
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 }}`)
kind: Rule
services:
- name: tower-backend
port: 8080
{{- end }}
{{- if .Values.frontend.enabled }}
# Frontend slot — enabled when Step 4 builds the UI.
- match: Host(`{{ .Values.ingress.domain }}`) && !PathPrefix(`/api`) && !PathPrefix(`/healthz`) && !PathPrefix(`/instances`)
kind: Rule
priority: 100
services:
- name: tower-frontend
port: 80
{{- end }}
tls:
secretName: tower-tls