deploy/server/site-ingressroute.yaml
Ref: Size: 764 B History
# Named for the deployment they route to, matching the objects already serving
# eitri.sh — these manifests adopt the live site rather than standing a second
# one beside it.
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: web-https
namespace: ${NAMESPACE}
spec:
entryPoints: [websecure]
routes:
- match: Host(`${SITE_HOST}`)
kind: Rule
services:
- {name: web, port: 8080}
tls:
secretName: ${SITE_TLS_SECRET}
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: web-http
namespace: ${NAMESPACE}
spec:
entryPoints: [web]
routes:
- match: Host(`${SITE_HOST}`)
kind: Rule
middlewares:
- name: redirect-https
services:
- {name: web, port: 8080}