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

k3s redirect http to https

I'm trying to deploy AWX on k3s and everything works just fine, however I'd like to enforce SSL - so, redirect HTTP to HTTPS. I've been trying to test the SSL enforcement part, however it's not working properly. Here is my traefik…
dywan666
  • 385
  • 8
  • 14
8
votes
1 answer

request forwarding on specific port with traefik(v2) router

I am using traefik version 2(or 2.x) and I want to forward all the request from port 80 to different port like 8081 with traefik router. So request like http://localhost/xx will be forwarded to http://localhost:8081/xx URL. I am newbie with traefik…
Dhaval Goti
  • 447
  • 2
  • 10
  • 25
8
votes
1 answer

docker-compose - Can I update traefik labels without restarting a container?

Can I update labels on a container using docker-compose without restarting the container? Ideal scenario: - change labels in docker-compose.yml - save docker-compose.yml - run a command to update the labels without restarting the container
adamsfamily
  • 1,746
  • 19
  • 37
8
votes
1 answer

How to change trace-id header in opentracing?

Is there way to configure opentracing-spring-jaeger-cloud-starter to handle any other header than Uber-Trace-Id? I have Traefik as an ingress in my kubernetes cluster. Traefik can be configured to change traceContextHeaderName. Default value is…
kamyl
  • 113
  • 1
  • 7
8
votes
2 answers

How to set traefik with OAuth2 authentication

I'm using traefik as a reverse proxy. I want to set OAuth2 authentication for a entry point. In the document, I found the Forward Authentication which I think may be useful for this. But the document is just too simple This configuration will first…
kehao
  • 496
  • 2
  • 5
  • 13
8
votes
1 answer

Rewriting content URLs with traefik

We're using traefik to reverse proxy our microservices environment, running on kubernetes in staging and prod, and docker-compose locally. We're trying to proxy requests to specific URLs to specific microservices, so that, for example, the "orders"…
alastairs
  • 6,697
  • 8
  • 50
  • 64
8
votes
0 answers

How to share rate limiting state between traefik instances?

My company runs a kubernetes setup with 6 nodes and traefik 1.6 deployed as a DaemonSet to each node in production. Each traefik instance takes incoming (ssl terminated) requests on port 80 from an AWS ALB and forwards them to the individual…
fruuf
  • 81
  • 1
8
votes
2 answers

How can I use Route 53 as the DNS Challenge for Lets Encrypt in Traefik?

My local domain is home.turtlesystems.co.uk. I am using Traefik on a local Docker Swarm cluster within this domain. As there is no direct Internet access to the cluster I cannot use the HTTPS challenge for Lets Encrypt so I am attempting to use…
Russell Seymour
  • 1,333
  • 1
  • 16
  • 35
8
votes
2 answers

Route traffic to a service in a different namespace with Traefik and Kubernetes

Using Traefik as an ingress controller (on a kube cluster in GCP). Is it possible to create an ingress rule that uses a backend service from a different namespace? We have a namespace for each of our "major" versions of code. 1-service.com ->…
Dan P
  • 183
  • 3
  • 8
8
votes
1 answer

Is a traefik config with both docker swarm and consul backend possible?

Are the consul and docker swarm configuration backends compatible? My requirement is that I need to start N traefik containers as a docker service, where they get their dynamic frontends/backends via docker swarm but I also need all N of the…
bitsofinfo
  • 994
  • 3
  • 16
  • 34
7
votes
1 answer

How can I properly setup basic traefik reverse proxy?

Assume my current public IP is 101.15.14.71, I have a domain called example.com which I configured using cloudflare and I created multiple DNS entry pointing to my public ip. Eg: 1) new1.example.com - 101.15.14.71 2) new2.example.com -…
user_12
  • 1,778
  • 7
  • 31
  • 72
7
votes
4 answers

How to not expose Traefik port to the internet?

I am very new to Traefik and Kubernetes. I installed Traefik through helm (repo: https://traefik.github.io/traefik-helm-chart/, helm version 3.5.2, chart traefik-9.19.1). Then I wanted to get prometheus metrics from it. Here is an extract of my…
n0n0bstan
  • 1,790
  • 4
  • 15
  • 26
7
votes
1 answer

Docker-compose isolate networks by project name

I'm trying to do a zero downtime deploying w/ docker-compose and traefik, but I'm having issues with a container cross communicating with another project. docker-compose.yml (details omitted) services: proxy: networks: - net …
khuezy
  • 157
  • 1
  • 9
7
votes
1 answer

Traefik on EKS with pod Security Groups

I'm trying to set up a pod on public AWS NLB that will be visible only for a certain range of IPs. For this i figured I could use the security group policy from EKS. If I come from IP 123.45.67.81 I would expect to see this in Traefik logs as my…
Kasia Gogolek
  • 3,374
  • 4
  • 33
  • 50
7
votes
3 answers

Kubernetes Traefik internal server error on every other request

So I’m using traefik 2.2, I run a bare metal kubernetes cluster with a single node master. I don’t have a physical or virtual load balancer so the traefik pod takes in all requests on ports 80 and 443. I have an example wordpress installed with…
Josh Woodcock
  • 2,683
  • 1
  • 22
  • 29