Per the documentation here: https://kubernetes.io/docs/user-guide/ingress/#name-based-virtual-hosting, Kubernetes recommends the idea of a default backend when doing host based routing so that you can serve up a 404 or other page.
It doesn’t appear that the rancher ingress setup supports this case. Here’s my ingress yaml:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: simplelb
spec:
backend:
serviceName: nginx3
servicePort: 80
rules:
- host: test1-qa.myserver.com
http:
paths:
- backend:
serviceName: nginx1
servicePort: 80
- host: test2-qa.myserver.com
http:
paths:
- backend:
serviceName: nginx2
servicePort: 80
Basically, I expect requests with no host header to route to my nginx3
service. But instead I get a 503.
Is this something Rancher intends to support?