Files
zeekay 4cedf330b2 Serve lux.credit from the edge as files, not from a pod
The site is a bundle on disk. The declaration is now the staticFiles
Middleware that serves it, the route that names it, and the endpoint-less
Service the route schema requires; there is no image, so the chart renders
no Deployment. Verified on this cluster: the edge answers from the
kubernetescrd router with no pod behind it, so this file opts back in to
automated sync.
2026-09-03 16:38:36 -07:00

31 lines
784 B
YAML

# lux.credit is files: one Middleware that serves them, one route that names it,
# and the endpoint-less Service the route schema insists on. No image, so the
# chart renders no Deployment -- a static site is not a pod.
cd:
automated: true
ports:
- name: http
containerPort: 80
middlewares:
- name: credit
spec:
staticFiles:
root: /var/www/credit
spaMode: true
spaIndex: index.html
indexFiles: [index.html]
routes:
- name: credit
spec:
entryPoints: [websecure]
routes:
- match: Host(`lux.credit`) || Host(`www.lux.credit`)
kind: Rule
priority: 100
middlewares:
- name: credit
services:
- name: lux-credit
port: 80
tls: {}