Traefik Config for VS Code
Catch unknown keys, broken router rules, v2/v3 syntax differences, and routers pointing at services or middlewares that do not exist while editing, without running Traefik, Docker, or kubectl.
Open source and maintained by Juan Torchia.
- Current release
- v0.1.0
- Marketplace downloads
- 0 Observed Dec 3, 2026
- Compatibility
- VS Code 1.110+ and Open VSX editors
- License
- MIT
See it in the editor






A focused tool for a specific workflow
Traefik 2.11 and 3.8 completion, official-reference hover, diagnostics, and outline for static configuration, file-provider routing, Docker/Compose/Swarm labels, and Kubernetes CRDs, with TLS, security, and certificate checks inside VS Code.
- A language server with version-aware reference catalogs for Traefik 2.11 and 3.8, generated from pinned official documentation
- Static traefik.yml, traefik.yaml, and traefik.toml, dynamic file-provider YAML and TOML for HTTP, TCP, and UDP routers, services, middlewares, and TLS, and focused Kubernetes CRD support
- Case-insensitive traefik.* Docker, Compose, and Swarm labels completed and validated segment by segment, in list and map syntax
- Diagnostics for unknown and wrong-version keys, unbalanced router rules, v2/v3 matcher differences, routers without rule or service, duplicate routers, and undefined services, middlewares, entryPoints, and certificate resolvers across the workspace
- Conservative security lint for the dashboard/API and HTTP redirects, TLS lint for TLS 1.0/1.1, weak ciphers, and insecureSkipVerify
- Certificate details, expiry and key-pair checks for file-provider certificates, and an Open in CertView CodeLens
From install to a safer decision
- Install the extension and open a traefik.yml, traefik.toml, file-provider configuration, Compose file with traefik.* labels, or a Traefik CRD.
- Pick the Traefik version (2.11 or 3.8) in Settings, then follow the inline diagnostics, completion, and hover links to the official reference while editing.
- Review TLS, security, and certificate findings, and open referenced certificates in CertView when it is installed.
- Keep validating the configuration with the target Traefik version before deploying it.
How the pieces fit together
This is a textual architecture map grounded in the public implementation. Follow the source link to inspect the exact modules, tests, and release history.
The VS Code client starts the language server only for Traefik-named files, Compose files with traefik.* labels, recognizable file-provider documents, and Traefik CRDs; it never replaces the YAML language.
The bundled language server checks properties, labels, and router rules against catalogs generated from the pinned Traefik documentation for each supported version.
Certificate files referenced by the file provider are read inside the workspace with Node's built-in crypto.
Supported scope
- traefik.yml, traefik.yaml, and traefik.toml static configuration
- File-provider YAML and TOML: HTTP, TCP, and UDP routers, services, middlewares, and TLS
- traefik.* labels in Docker Compose and Swarm files
- IngressRoute, Middleware, and TCP/UDP Traefik CRDs
Explicit boundaries
- Diagnostics are editor feedback, not a substitute for running the target Traefik version against the configuration before deployment.
- The extension has no telemetry and no network access, never runs Traefik, Docker, or kubectl, reads certificates only inside the workspace, and never shows or sends private key content.
- When filing public issues, use a minimal sanitized configuration and remove hosts, addresses, credentials, and certificates.
Get help, verify changes, or contribute
Issues and release history stay with the source repository so the evidence remains public.
Need this kind of workflow inside your team?
Start with a bounded workflow review. Product support stays in public issues; organization-specific discovery and implementation follow a private path.