boilerplates/traefik/dynamic/ files are rsynced verbatim to lightning-lane,
not rendered through Jinja first. Traefik also processes Go-style
{{ }} templates, so a leftover {{ ansible_managed }} comment line caused
Traefik to reject the entire file with:
ERR /etc/traefik/dynamic/honcho.yml: template: :1: function
"ansible_managed" not defined
Other dynamic configs in this directory deliberately omit the marker;
matching that convention.
30 lines
910 B
YAML
30 lines
910 B
YAML
# Traefik dynamic config for Honcho on lincoln.
|
|
# Routes hall-of-presidents.local.mk-labs.cloud -> lincoln:8000.
|
|
#
|
|
# Honcho is normally an east-west API (JARVIS talks to it directly), but
|
|
# the operator wants browser access to the Swagger /docs UI, so the API
|
|
# is exposed via Traefik. There is no separate dashboard endpoint —
|
|
# /docs is the dashboard.
|
|
#
|
|
# No service-name alias: per the mk-labs east-west / north-south rule,
|
|
# only the human-facing Traefik route gets a thematic name. JARVIS
|
|
# accesses Honcho directly at http://lincoln:8000.
|
|
|
|
http:
|
|
routers:
|
|
honcho:
|
|
rule: "Host(`hall-of-presidents.local.mk-labs.cloud`)"
|
|
entryPoints:
|
|
- websecure
|
|
service: honcho
|
|
tls:
|
|
certResolver: cloudflare
|
|
middlewares:
|
|
- security-headers
|
|
|
|
services:
|
|
honcho:
|
|
loadBalancer:
|
|
servers:
|
|
- url: "http://lincoln.local.mk-labs.cloud:8000"
|