Ingress with Traefik
K3s includes Traefik as its default ingress controller. This page covers configuring Traefik for the platform's services.
What this page covers
- Traefik's role in K3s (default ingress controller)
- Customizing Traefik via
HelmChartConfig - Creating
IngressRouteresources for services - Enabling the Traefik dashboard
- TLS termination with cert-manager integration
Traefik in K3s
K3s installs Traefik automatically. You can customize its Helm values by creating a HelmChartConfig resource in /var/lib/rancher/k3s/server/manifests/:
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
dashboard:
enabled: true
Creating IngressRoute resources
IngressRoute is a Traefik-native CRD that gives finer control than standard Kubernetes Ingress. Detailed examples for each service (Gitea, YouTrack) will be documented in their respective sections.