Use wildcard in ingress host name

2/12/2018

I want to redirect all *.xxxx.com requests to m-*.xxxx.com using kubernetes. Im using nginx for routing. Is there a way to do this?

Im currently having '*.xxxx.com' in ingress definition,but it doesnt accept something like this : 'm-*.xxxx.com'

-- Daniel Sagayaraj
kubernetes
kubernetes-ingress
nginx
wildcard-subdomain

1 Answer

10/18/2018

You should use "*.xxxx.com" rather than '*.xxxx.com'.

-- fkpwolf
Source: StackOverflow