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.
This commit is contained in:
@@ -1,43 +1,30 @@
|
||||
# Generated from the live lux-credit/lux-credit Deployment on do-sfo3-lux-k8s
|
||||
# by hack/live2values.py. Live is the source: a repo of hand-applied
|
||||
# manifests has unknown currency, the running fleet does not.
|
||||
replicas: 2
|
||||
selectorLabels:
|
||||
app.kubernetes.io/name: lux-credit
|
||||
image:
|
||||
repository: ghcr.io/lux-apps/credit
|
||||
tag: 36b1c2dffd62620600ae4912d73798d8b01e9384
|
||||
pullPolicy: Always
|
||||
env:
|
||||
- name: PORT
|
||||
value: '3000'
|
||||
- name: ROOT
|
||||
value: /public
|
||||
resources: {}
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: http
|
||||
servicePort: 80
|
||||
imagePullSecrets:
|
||||
- name: ghcr-pull
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
topologySpread:
|
||||
enabled: false
|
||||
lifecycle: null
|
||||
terminationGracePeriodSeconds: 30
|
||||
defaultReadinessProbe: false
|
||||
ingress:
|
||||
enabled: true
|
||||
hosts:
|
||||
- lux.credit
|
||||
- www.lux.credit
|
||||
tls: true
|
||||
className: ingress
|
||||
|
||||
# Enforcement switch, read by the lux-fleet ApplicationSet's templatePatch --
|
||||
# not by the chart. selfHeal returns a hand-edited object to what is written
|
||||
# here; prune stays off, so nothing is ever deleted.
|
||||
# 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: false
|
||||
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: {}
|
||||
|
||||
Reference in New Issue
Block a user