Traefik
$ traefik Official Med RiskTraefik (traefik) is a Go-based edge router and ingress controller with automatic ACME TLS and dynamic service discovery (Docker, Kubernetes, Consul). While primarily a long-running proxy daemon, its CLI exposes traefik version, traefik healthcheck, and static CLI configuration flags including --log.format=json and --accesslog.format=json.
brew install traefik traefik is a proxy runtime binary rather than an API control client; agents invoke version/healthcheck or edit static/dynamic YAML configs.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Daemon logs support --log.format=json and --accesslog.format=json, but the CLI itself has minimal subcommands (version, healthcheck) and no config-lint --dry-run mode.
- Only
versionandhealthcheckare short-lived subcommands; baretraefikstarts the foreground server - Supports
--log.format=jsonand--accesslog.format=json
version and healthcheck are safe read-only checks, though launching traefik directly binds ports and requests ACME certificates if configured.
- No
--validateor--dry-runconfig check subcommand - Safe
versionandhealthchecksubcommands
Single static Go binary available via Homebrew and GitHub Releases for macOS, Linux, and Windows.
- Zero-dependency static binary across macOS, Linux, and Windows
Essential runtime binary for ingress/routing, though agents mostly edit YAML configs or query the Traefik HTTP API rather than driving the CLI.
- CLI scope is limited to daemon flags,
version, andhealthcheck
First-party official binary from Traefik Labs (traefik/traefik) under MIT license.
- Official
traefik/traefikMIT repository
Thorough static CLI reference documentation at doc.traefik.io.
- Published CLI flag reference at doc.traefik.io
Security, Auth & Guardrails
Reads static config from traefik.yml/traefik.toml, CLI flags, or TRAEFIK_* env vars; ACME certificates are stored in acme.json.
MIT open-source core; Traefik Hub/Enterprise adds commercial gateway and cluster control features.
# Traefik Agent Rules - Never run bare `traefik` inside an agent tool call without a background supervisor or timeout, as it blocks as a foreground proxy server. - Use `traefik version` or `traefik healthcheck` for non-blocking diagnostics; enable `--log.format=json` when capturing daemon logs.
Agent-Ready Command Recipes
Safe Read-Only Queries
traefik healthcheck --ping
Probes the local Traefik /ping endpoint and exits 0 if healthy (requires ping enabled).
traefik version
Outputs version, commit codename, Go version, and OS/arch without starting a server.
Strengths for Agents
- + Zero-dependency single Go binary with
--log.format=jsonand--accesslog.format=jsonstructured logging. - +
traefik healthcheckprovides a native non-interactive liveness probe. - + Comprehensive static flag parity with
traefik.ymlandTRAEFIK_*environment variables.
Caveats & Pitfalls
- ! Lacks a built-in config validation or
--dry-runsubcommand before starting the proxy. - ! Invoking
traefikwithoutversionorhealthcheckruns a blocking foreground server.