The rebuilt vote is a static export, so it is a site: an S3 prefix and a host route and no pod, declared the way lux.exchange is declared and released with the same chart. The Decent-derived app it replaces is uninstalled. Co-authored-by: Hanzo Dev <[email protected]>
33 lines
730 B
YAML
33 lines
730 B
YAML
# lux.exchange is files: one Middleware that serves them, one route that names it,
|
|
# and the endpoint-less Service the route schema requires. 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: vote
|
|
spec:
|
|
staticFiles:
|
|
root: s3://hanzo-sites/lux/lux-vote
|
|
spaMode: true
|
|
spaIndex: index.html
|
|
indexFiles:
|
|
- index.html
|
|
routes:
|
|
- name: vote
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`lux.vote`) || Host(`www.lux.vote`)
|
|
kind: Rule
|
|
priority: 100
|
|
middlewares:
|
|
- name: vote
|
|
services:
|
|
- name: lux-vote
|
|
port: 80
|
|
tls: {}
|