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.
31 lines
784 B
YAML
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: {}
|