https://rancher.com/ logo
Title
b

best-fountain-73060

02/06/2023, 8:57 AM
Does anyone know if I can use traefik 2.x as my ingress controller to access Rancher UI ? If yes how should I configure it ?
a

agreeable-oil-87482

02/06/2023, 9:32 AM
You can use any k8s ingress controller to expose the Rancher UI. When you install Rancher it will by default create a
ingress
resource to expose the UI, so you just need to have an appropriate ingress controller installed. traefik or otherwise
b

best-fountain-73060

02/06/2023, 9:47 AM
ok ,thx , the issue is that my loadbalancer is already temnitate the ssl , so I get an error when I try to access the rancher url , what I need to configure to fix it ?
b

best-fountain-73060

02/06/2023, 9:52 AM
yes I saw that - but I am using traefik not nginx …
a

agreeable-oil-87482

02/06/2023, 9:52 AM
Has nothing to do with nginx
Did you set
--set tls=external
?
b

best-fountain-73060

02/06/2023, 9:52 AM
yes I did …
I have one traefik v2.x that I am using to access my services , I want to use the same ingress controler to access rancher
a

agreeable-oil-87482

02/06/2023, 9:54 AM
So presumably your rancher URL resolves to the VIP of your loadbalancer which is terminating TLS and forwarding the traffic over port 80 to your ingress controller?
How is your ingress controller exposed? ie nodeport or lb
What's the error you're getting?
b

best-fountain-73060

02/06/2023, 9:56 AM
ERR_TOO_MANY_REDIRECTS
d

dry-vr-36164

03/11/2023, 12:14 AM
@agreeable-oil-87482 I am facing similar issue, any way to configure such that nginx-ingress-controller terminates tls and rancher does not? I have set
--set tls-external
still getting 302 and when I remove
tls external
I get` 308.