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
6
votes
3 answers

Setting up local https network to mock amazonaws.com in docker

I have a requirement where I need to setup a spoof/mock an AWS server in my local docker compose network... The requirement is to be able to test a set of microservice without letting the microservices know that the endpoint is not actually…
Fr_nkenstien
  • 1,923
  • 7
  • 33
  • 66
6
votes
1 answer

Traefik: Unable to obtain ACME certificate for domains

I'm using traefik for providing some services on my NAS with https using lets encrypt. Now I noticed that the tls certs of my nextcloud installation expired yesterday evening. Traefik had logs like this: time="2018-08-31T22:43:08Z" level=error…
Lion
  • 16,606
  • 23
  • 86
  • 148
6
votes
0 answers

Adding trailing slash to microservice root path in traefik ingress

Traefik ingress controller has been supporting traefik.frontend.rule.type: PathPrefixStrip for quite some time, which is useful when a root path of a microservice needs to be available at example.com/path/. Here is how an example yaml with a…
Alexander Kachkaev
  • 842
  • 15
  • 29
6
votes
0 answers

Traefik won't add container to backend occasionally on Docker Compose

After upgrading to Traefik version 1.7 (docker image: traefik:v1.7 ), we see that Traefik sometimes fails to add an automatically restarted container to backend. It will work fine when we restart Traefik again. Here's the error logs from…
Minh Danh
  • 263
  • 2
  • 10
6
votes
1 answer

How should I setup Traefik on ECS?

 In Short I've managed to run Traefik locally and on AWS ECS but now I'm wondering how should I setup some sort of load balancing to make my two services with random IPs available to the public. My current setup on ECS [Internet] | [Load…
Adit Saxena
  • 1,617
  • 15
  • 25
6
votes
1 answer

traefik configuration docker + file

Today, I've a problem with traefik . I'm trying to use traefik as a reverse proxy . In my network, I have some containers in docker (with swarm), and some other servers/VM . So, I want to redirect some subdomains to containers, and some other to…
thib3113
  • 564
  • 7
  • 19
6
votes
1 answer

Kubernetes + metallb + traefik: how to get real client ip?

traefik.toml: defaultEntryPoints = ["http", "https"] [entryPoints] [entryPoints.http] address = ":80" [entryPoints.http.forwardedHeaders] trustedIPs = ["0.0.0.0/0"] [entryPoints.http.redirect] entryPoint = "https" …
Andrey Perminov
  • 63
  • 1
  • 1
  • 4
6
votes
1 answer

traefik 502 bad gateway after a certain time

Problem I'm running traefik to serve a python django app inside an docker container. The app is running without problems over https or http. After a unspecific time (under an hour) traefik logs says "502 Bad Gateway" and my nginx and uwsgi logs dont…
triras
  • 61
  • 3
6
votes
0 answers

Traefik Malformed Error using for ACME Lets Encypt Certificates & docker

I'm unable to get my wildcard certs issued from traefik. I use the [docker] configuration for all my backends. On boot, I am seeing the following error for my various domains: time="2018-05-16T05:41:39Z" level=error msg="Unable to obtain ACME…
cdaringe
  • 1,274
  • 2
  • 15
  • 33
6
votes
0 answers

Add basic auth for /admin path prefix

So I am trying to add basic auth to an applications, but only for /admin/ and /admin/.*. I am using docker(-compose) with traefik labels. So far I have the fallowing: labels: - traefik.enable=true - traefik.port=8080 -…
Ilyes512
  • 2,627
  • 5
  • 23
  • 27
6
votes
2 answers

Traefik on Kubernetes (GCE/GKE) behind GCE Load Balancer

I've implemented Traefik on Kubernetes following the User Guide. That gives me an ingress-controller and I was able to create an ingress and the traefik-ingress-service listening on 80 and 8080. I've also setup a "gce" ingress: apiVersion:…
6
votes
1 answer

Kubernetes pod secrets /var/run/secrets missing

TL;DR: Kubernetes pods created via terraform don't have a /var/run/secrets folder, but a pod created according to the hello-minikube tutorial does - why is that, and how can I fix it? Motivation: I need traefik to be able to talk to the k8s…
mnemosyn
  • 45,391
  • 6
  • 76
  • 82
6
votes
1 answer

Traefik with docker-compose creates too many frontends

I want to use multiple docker-compose projects with Traefik as reverse proxy. After following the documentation I've created two docker-compose files; one for Traefik and one for an example project which has 2 "whoami" containers. This works great…
Wessel van der Linden
  • 2,592
  • 2
  • 21
  • 42
6
votes
5 answers

Docker-compose having problems with labels

I'm trying to setup Traefik reverse proxy using example shown in their docs. When I try to bring up 'whoami' service I get following error: Creating test_whoami_1 ... ERROR: for test_whoami_1 dictionary update sequence element #0 has length 22; 2…
metalcamp
  • 526
  • 1
  • 6
  • 14
6
votes
1 answer

User authentication and dynamic routing in traefik

I want to replace haproxy with traefik. But in order to that, I have to replace a Lua script which handles authentication (via auth token calling a rest API) and custom redirect (certain docker service) depending on headers and authentication from…
fentas
  • 1,011
  • 12
  • 14