Hi all, is it possible to have Rancher (deployed o...
# general
c
Hi all, is it possible to have Rancher (deployed on a 3 node k3s via Helm) behind two hostnames? Currently using any other hostname (or IP) than the "hostname" specified via helm values gets a 404
p
As there is a global "server url" setting, i highly doubt using two of them is supported.
You can use a cname dns entry doe
c
But then the host header in the clients request doesn’t match and I get a 404
p
The host header in the client should be the cname
If you have hostname1 and hostname2 , hostname2 should be cname hostname1
wait no im an idiot
nvm
Yeah you're correct sorry
If you want to manage multiple hosts entrypoint, you need a reverseproxy of sort
c
Yes. My issue at hand is that our LB in front of Rancher is sometimes a bit unstable. I want to test a second one but that’s just not possible without a second entry point. The only thing is to have some dns split brain where I let a few clients resolve the same Hostname to a different IP.
p
monkey around with /etc/hosts (in contradiction with rule 30 but oh well)
c
the ingress that sits in front of rancher is configured to match requests on the rancher hostname. You could probably update the ingress configuration to match multiple hostnames, but rancher itself will still use only the configured address when generating links and internal redirects.
c
Yes. I’ll try with the etc/hosts tinkering.
Thanks for some pointers. Helped a lot