A Headlamp plugin for Traefik running in Kubernetes with the kubernetes-crd provider.
- Overview: RPS, 5xx error rate, open connections, config reloads and a per-service table (backend status, RPS, errors, p95 latency), color-coded. Data comes from the Prometheus
/metricsendpoint and the Traefik API of each Traefik pod, read through the Kubernetes API server pod proxy, so no port-forward or Prometheus is needed. - Configuration: every
IngressRouterule served by a Traefik instance, with prettified, highlighted rules (Host,Method,Path*), search by path (a substring or a concrete path such as/api/v1/users/42, matched againstPath,PathPrefixandPathRegexp) and links to theIngressRoute,Middleware,TraefikServiceandServiceobjects. - IngressRoutes, Middlewares, TraefikServices: list and detail pages across all namespaces, including which IngressRoutes use a Middleware.
- Instances: Traefik pods labeled
app.kubernetes.io/name=traefikare grouped byapp.kubernetes.io/instance. If some IngressRoutes carry akubernetes.io/ingress.classannotation equal to the instance name, the instance shows those; otherwise it shows the IngressRoutes without that annotation.
- Traefik v2.10+ or v3 with the
traefik.ioCRDs. - The Prometheus metrics entrypoint enabled (
metrics.prometheus), and the Traefik API (api) reachable on a pod port, for the Overview page. The Configuration and list pages only need the CRDs. - RBAC for the Headlamp user:
get/listonpodscluster-wide (or only in the Traefik namespace, if it is set in Settings),getonpods/proxyin the Traefik namespace, andget/listoningressroutes,middlewaresandtraefikservicesin grouptraefik.io.
Settings → Plugins → headlamp-traefik-plugin:
| Setting | Default | Meaning |
|---|---|---|
| Traefik namespace | all namespaces | Namespace of the Traefik pods; empty searches the whole cluster |
| Metrics port | 9100 |
Container port of the Prometheus metrics entrypoint |
| API port | 8080 |
Container port serving the Traefik API (/api/http/...) |
The port defaults match the official Traefik Helm chart.
-
Headlamp Desktop: open the Plugin Catalog, search for "Traefik" and install.
-
In-cluster Headlamp: add the plugin through the Helm chart's
pluginsManager(see the Headlamp docs):pluginsManager: enabled: true configContent: | plugins: - name: headlamp-traefik-plugin source: https://artifacthub.io/packages/headlamp/headlamp-traefik-plugin/headlamp-traefik-plugin
-
Manually: download
headlamp-traefik-plugin-<version>.tar.gzfrom the releases and extract it into the Headlamp plugins directory (~/.config/Headlamp/pluginson Linux,~/Library/Application Support/Headlamp/pluginson macOS,%APPDATA%\Headlamp\Config\pluginson Windows).
npm install
npm start # watch mode, a running Headlamp picks the plugin up
npm test
npm run lint
npm run tsc
npm run buildHeadlamp Desktop loads every context from KUBECONFIG; with hundreds of contexts the plugin may fail to load. Start it with a smaller kubeconfig instead, e.g. headlamp --kubeconfig ~/.kube/small.yaml.
Publish a GitHub release with a vX.Y.Z tag. The release workflow builds the plugin from the tag, attaches the tarball to the release and commits the new version and checksum in artifacthub-pkg.yml to main; Artifact Hub picks it up from there.
Apache-2.0. Traefik is a trademark of Traefik Labs; this project is not affiliated with or endorsed by Traefik Labs.