routing

Configure Traefik dynamic routing for HTTP, TCP, and UDP traffic.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill routing-renne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: routing
Source: https://github.com/renne/skills/tree/main/traefik/routing
Command: npx skills add https://github.com/renne/skills --skill routing-renne

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex task of configuring Traefik's routing, enabling precise control over how network traffic is directed to your services.

Core Features & Use Cases

  • HTTP/TCP/UDP Routing: Define rules for various protocols.
  • Load Balancing & Mirroring: Distribute traffic and test new versions.
  • TLS Configuration: Secure your services with TLS termination and passthrough.
  • Use Case: You need to route incoming requests for api.example.com to a specific backend service, while also ensuring all HTTP traffic is redirected to HTTPS.

Quick Start

Configure a Traefik HTTP router named 'my-router' to match requests for 'example.com' and forward them to 'my-service'.

Frequently Asked Questions about routing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure Traefik routing rules for HTTP, TCP, and UDP traffic?

Traefik routing rules for HTTP, TCP, and UDP traffic are configured by defining routers, services, and entrypoints to match specific protocols and direct network traffic to designated backend services.

Can I set up load balancing and weighted traffic distribution in Traefik?

Yes, load balancing and weighted traffic distribution in Traefik can be set up by configuring services to distribute incoming network traffic across multiple backend instances or mirror traffic for testing new versions.

How does Traefik handle TLS termination and passthrough for secure services?

Traefik handles TLS termination and passthrough by applying TLS configurations to routers, securing incoming network connections before forwarding traffic to backend services or passing encrypted traffic directly.

What is the best way to redirect all HTTP traffic to HTTPS using Traefik?

The best way to redirect HTTP traffic to HTTPS using Traefik is by configuring an HTTP router with a redirect rule, ensuring all unencrypted requests are automatically forwarded to the secure TLS endpoint.

Does Traefik support complex request matching based on specific domains like api.example.com?

Yes, Traefik supports complex request matching by defining routing rules that evaluate Host headers, allowing you to route incoming requests for specific domains like api.example.com to a dedicated backend service.

Why use Traefik for dynamic network ingress policies and service discovery?

Traefik is used for dynamic network ingress policies and service discovery because it automatically updates routing configurations as services scale, ensuring precise traffic control without manual restarts.