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
7
votes
4 answers

Store traefik let's encrypt certificates not as json

you know traefik is able to do all the Let's Encrypt stuff (request and renew) for your webservices. But traefik stores the requested certificates as a JSON-file, which isn't the common format for certificates. I want to use the Let's Encrypt…
BeerCamper
  • 103
  • 3
  • 9
7
votes
3 answers

traefik - HTTP to HTTPS WWW Redirect

I could not find a question similar to this, there were others mentioning https redirects, but not about minimizing the redirects. Been looking for a solution, and could not sort it out yet. We use Docker > Traefik for WordPress and have www as the…
BIL Tech
  • 71
  • 1
  • 1
  • 3
7
votes
3 answers

Multiple frontend rules in Traefik Consul integration

I'm using Traefik to load balance across different services registered in Consul. I'm using the consul-catalog configuration and overriding a front end routing rule for one of the services by adding a tag when defining the service in…
David Genn
  • 709
  • 4
  • 11
7
votes
1 answer

How to publicly expose Traefik ingress controller on Google Cloud Container Engine?

I've been trying to use Traefik as an Ingress Controller on Google Cloud's container engine. I got my http deployment/service up and running (when I exposed it with a normal LoadBalancer, it was answering fine). I then removed the LoadBalancer, and…
HectorJ
  • 5,814
  • 3
  • 34
  • 52
7
votes
2 answers

How do I set a default host container in traefik with the docker backend?

I have a reverse proxy setup using traefik. It's great! I am trying to figure how to configure it such that when someone goes to HOSTNAME or www.HOSTNAME, that I can have it default route to some container/subdomain of my choosing. Assume valid…
cdaringe
  • 1,274
  • 2
  • 15
  • 33
7
votes
2 answers

traefik reverse-proxy with docker backend - configure frontend rules in traefik's config file and not via container label

For using traefik as a reverse-proxy in front of a Docker container whose dynamic IP address might change over time, traefik comes with a docker backend. All examples that I could find for setting this up follow the same pattern: First, start…
Dirk
  • 9,381
  • 17
  • 70
  • 98
6
votes
2 answers

ArgoCD & Traefik 2.x: How to configure argocd-server Deployment to run with TLS disabled (where to put --insecure flag)

We have a setup with Traefik as the Ingress Controller / CRD and ArgoCD. We installed ArgoCD into our EKS setup as described in the Argo getting stared guide: kubectl create namespace argocd kubectl apply -n argocd -f…
jonashackt
  • 12,022
  • 5
  • 67
  • 124
6
votes
3 answers

How to expose traefik v2 dashboard in k3d/k3s via configuration?

*Cross-posted to k3d github discussions, to a thread in Rancher forums, and to traefik's community discussion board Tutorials from 2020 refer to editing the traefik configmap. Where did it go? The traefik installation instructions refer to a couple…
Eric Swanson
  • 820
  • 1
  • 9
  • 19
6
votes
1 answer

How to set Traefik 2.4 service name in docker-compose labels

Is there any way to set traefik.http.services name in docker-compose labels? Lets say i have simple docker-compose.yml: version: '3.4' services: traefik: image: "traefik:v2.4.2" command: - --log.level=warning -…
Jan 'splite' K.
  • 1,667
  • 2
  • 27
  • 34
6
votes
1 answer

How can I use Sticky sessions on Docker using Traefik v2.3?

How can I use Sticky sessions in Traefik v2.3? When I enable the below line in my docker compose file, my docker services (e.g. http://192.168.0.1:9086) don't work. - "traefik.http.services.mynginximage2.loadBalancer.sticky.cookie=true" Do you have…
6
votes
2 answers

Traefik (v2.2) Ingress on Kubernetes: HTTP and HTTPS cannot co-exist

I am using Traefik (v2.2) on Kubernetes, using a wildcard domain certificate for HTTPS access. The following are my Traefik deployment and Ingress configurations: kind: Deployment apiVersion: apps/v1 metadata: namespace: ingress-traefik name:…
6
votes
1 answer

Traefik + Docker for Windows: Failed to create a client for docker, error: protocol not available & Provider connection error protocol not available

I'm having troubles getting a basic Traefik routing setup to work. My goal is to get basic routing with two helloworld apps (each different to tell apart), both on port 80, e.g.: demo1.localhost -> helloworld1 demo2.localhost -> helloworld2 Each…
stuzor
  • 2,275
  • 1
  • 31
  • 45
6
votes
1 answer

Using traefik as a DaemonSet or as a Deployment?

Should I deploy traefik 1.7.x as DaemonSet or as A deployment in GKE (Google K8S)? Environment Description Kubernetes clusters with node autoscaler in Google cloud, hosting several production clusters. Clusters can extend up to 90 nodes (minimum is…
6
votes
0 answers

How to make websocket work with traefik and docker?

I've read through all of the related traefik / websocket issues here and other forums, but I wasn't able to solve the problem for my setup. I'm trying to run Dataiku DSS behind Traefik as reverse proxy. But I'm still new to Traefik and can't figure…
wuser92
  • 479
  • 3
  • 16
6
votes
1 answer

Docker Traefik can't resolve DNS (Fails reaching server and obtaining certificates)

Googling the following issue shows that this hasn't been posted the first time, however, none of them really give an answer. When starting Traefik (v2.2.1 aka. latest) as a container in Docker, no matter what I try, I keep getting following error,…
D3strukt0r
  • 571
  • 1
  • 4
  • 19