nginx ingress redirect base on hostname

9/22/2020

We have an application running in kubernetes using nginx ingress. Now we want to replace the domain name and we want the old domain to redirect to this new domain. What I need to do the get it work?

I can simply add the new domain as an additional hostname in my ingress configuration, but the problem is that the application can only work with one hostname.

-- laocius
kubernetes
kubernetes-ingress
nginx

0 Answers