Questions tagged [traefik-ingress]

Traefik-ingress refers to instances when the cloud native edge router Traefik is used as an Ingress controller for a Kubernetes cluster. Use this tag for questions related to such use of the router Traefik.

Traefik-ingress refers to instances when the cloud native edge router Traefik is used as an Ingress controller for a Kubernetes cluster. Use this tag for questions related to such use of the router Traefik.

346 questions
22
votes
2 answers

What is the difference between a Kubernetes Ingress and a IngressRoute?

I am still learning kubernetes and I stumbled over the objects 'Ingress' and 'IngressRoute'. What is the different between these two objects? Did IngressRoute replace the 'old' Ingress? I am running a Kubernetes Cluster V1.17 with Traefik 2.1. My…
Ralph
  • 4,500
  • 9
  • 48
  • 87
12
votes
4 answers

Kubernetes ingress rules: How to use wildcard and specific subdomain together

I want Ingress to redirect a specific subdomain to one backend and all others to other backend. Basically, I want to define a rule something like the following: If subdomain is foo.bar.com then go to s1, for all other subdomains go to s2 When I…
fyelci
  • 1,399
  • 2
  • 16
  • 27
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
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
9
votes
1 answer

For Traefik Ingress Controller in k3s disable TLS Verification

I am using the default installation of k3s (release v1.17.0+k3s.1) and verified it is working correctly on my Raspberry Pi cluster. After installing kubernetes-dashboard using the recommended instructions…
Michael
  • 301
  • 4
  • 11
9
votes
4 answers

Traefik path based routing in kubernetes ingress not working as expected

I am trying to use the path based routing mechanism provided by Traefik ingress controller in Kubernetes but I have some issues with the url rewriting. My [UPDATED] configuration is as follow apiVersion: extensions/v1beta1 kind: Ingress metadata: …
Asa
  • 173
  • 2
  • 7
7
votes
0 answers

Traefik : Add Custom Header Only for specific files

UPDATE: ATM this is not possible via traefik. I have openend an issue : https://github.com/containous/traefik/issues/4228 I want to add cache-control headers to files having the Content/Type application/json and image/png. ATM the moment the way to…
Syed Osama Maruf
  • 1,895
  • 2
  • 20
  • 37
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

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

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
5
votes
1 answer

Getting `Failed to list *v1beta1.IngressClass: ingressclasses.networking.k8s.io` error with Traefikv2.3

I'm trying to use Traefik Kubernetes Ingress. I'm using traefik:v2.3. K8's cli version is v1.18.3 and server version is v1.18.6IKS. I'm using IBM Kubernetes services to deploy this. But I'm getting below errors in pod logs. I'm following offical…
metadata
  • 1,139
  • 1
  • 7
  • 28
5
votes
0 answers

Getting Real IP to Kubernetes Pods using Traefik and DigitalOcean

I am trying to get the real source IP addresses to my Kubernetes pods using traefik. I am using the digital ocean load balancer which has the proxy protocol enabled. I have also configured my K8s service yaml to set the External Traffic policy to…
Rutnet
  • 1,533
  • 5
  • 26
  • 48
4
votes
1 answer

Traefik Ingress rewrite-target does nothing

I have a backend service which responds to / but I want it to run on the ingress route myhost.com/overview. No matter which configuration I try, traefik does not strip the path /overview away - I can see the backend getting /overview. apiVersion:…
Marc
  • 13,011
  • 11
  • 78
  • 98
1
2 3
23 24