Questions tagged [traefik]

Træfɪk is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease

Træfik (pronounced like traffic) is a modern HTTP reverse proxy and load balancer made to deploy microservices with ease. It supports several backends (Docker, Swarm mode, Kubernetes, Marathon, Consul, Etcd, Rancher, Amazon ECS, and a lot more) to manage its configuration automatically and dynamically.

Useful links

2251 questions
12
votes
3 answers

Kubernetes basic authentication with Traefik

I am trying to configure Basic Authentication on a Nginx example with Traefik as Ingress controller. I just create the secret "mypasswd" on the Kubernetes secrets. This is the Ingress I am using: apiVersion: extensions/v1beta1 kind:…
Asier Gomez
  • 6,034
  • 18
  • 52
  • 105
11
votes
1 answer

404 when trying to access traefik dashboard

I try in a simple way to access traefik via the sub-domain traefik (traefik.DOMAIN.com). As soon as I gain access to it, the SSL Certificate is well functional but impossible to access the dashboard (404 error) docker-compose.yml version:…
H4rmony
  • 113
  • 1
  • 8
11
votes
1 answer

Traefik Reverse Proxy to external Server

I would like to access a Keycloak server that is on the internet and not on my docker network. I want to hide the domain of the Keycloak server behind my own domain. So if I go to http://localhost/auth/ then the page from the Keycloak server should…
Tobias Benkner
  • 180
  • 1
  • 1
  • 9
11
votes
3 answers

Traefik v2 as a reverse proxy without docker

I have read the documentation but I can not figure out how to configure Traefik v2 to replace Nginx as a reverse proxy for web sites (virtual hosts) without involving Docker. Ideally there would be let'sencrypt https as well. I have a service…
jmn
  • 889
  • 1
  • 8
  • 25
11
votes
3 answers

Traefik docker image not working on Windows but working on MacOS?

I have an application that's composed of several Docker images that is being developed on MacOS and I'm trying to get it started on Windows. Most seem to be working, but there's a Traefik load balancer that doesn't. On MacOS it just works, but on…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
11
votes
3 answers

Recommended TLS Ciphers for Traefik

I'm looking for a recommended configuration for SSL/TLS in Traefik. I have set minVersion = "VersionTLS12" to avoid the weaker older versions and found the supported ciphers in Go. Cross-checking that with the recommendations from SSLLabs I came up…
Christof Marti
  • 148
  • 2
  • 12
11
votes
1 answer

Traefik Forward Authentication in k8s ingress controller

Hello I tried looking at the auth options in the annotations for kubernetes traefik ingress. I couldn't find anything where I could configure Forward Authentication as documented here:…
11
votes
3 answers

How to enable logrotation for traefik?

How do I enable log rotation for log files e.g. access.log. Is this built in ? Docs only say "This allows the logs to be rotated and processed by an external program, such as logrotate"
Robert Lachner
  • 657
  • 1
  • 8
  • 22
10
votes
2 answers

Error response from daemon: Unrecognised volume spec: file '\\.\pipe\docker_engine' cannot be mapped. Only directories can be mapped on this platform

I'm new to the docker. Any help and tips are welcome. Environments: Windows: Windows 10 Pro 21H1 Docker Desktop: 3.4 I can run hello work example without any issues. But seems like I can't use named piped, can't figure out what is the issue. Some…
10
votes
1 answer

Traefik Dashboard: Ingress and IngressRoute, can they co-exist?

Recently I am moving a project to Kubernetes and have used Traefik as the ingress controller. For Traefik I have used the Traefik Kubernetes Ingress provider for routing. When I tried to add the Traefik dashboard, I found that seems it can only be…
Ken Tsoi
  • 1,195
  • 1
  • 17
  • 37
10
votes
3 answers

Traefik v2.2 Ingress Route example not working

I am trying to setup traefik ingress route using the configuration that is provided at https://docs.traefik.io/routing/providers/kubernetes-crd/ I can see traefik is up & running, can also see the dashboard. But I dont see the whoami service on…
maopuppets
  • 420
  • 3
  • 9
  • 27
10
votes
3 answers

How to map specific port inside docker container when using traefik?

Here's my docker-compose.yml: version: '3' services: website: build: ./website expose: [3000] labels: - "traefik.frontend.rule=Host:localhost" blog: build: ./blog expose: [4000] labels: -…
Desmond
  • 767
  • 1
  • 6
  • 18
10
votes
2 answers

Traefik v2: 404 while routing HTTP traffic globally to HTTPS

I have the problem that I can route HTTPS traffic but I can not globally redirect the HTTP traffic to HTTPS. In my case I only want HTTPS traffic, so that I want to redirect all the incoming traffic. Currently I get an 404 error while I try to serve…
mbaldi
  • 133
  • 1
  • 1
  • 7
10
votes
1 answer

Traefik v2 [how to route to specific port]

I'm trying to start the change of backends to be compatible with traefik v2.0. The old configuration was: labels: - traefik.port=8500 - traefik.docker.network=proxy - traefik.frontend.rule=Host:consul.{DOMAIN} I assumed, the network…
Gabriel Bastos
  • 540
  • 1
  • 7
  • 16
10
votes
1 answer

Traefik on Kubernetes wrong Client IP on incoming connections

I am running Traefik on Kubernetes and I have create an Ingress with the following configuration: --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: whitelist-ingress annotations: kubernetes.io/ingress.class: traefik …
Justin
  • 1,149
  • 2
  • 19
  • 35