Domain/Host based routing not working

Dear community,

I am using Kong helm chart version 1.10.0 with App version 2 in K8s. Ingress controller is working fine however I am having issues when we use multiple domains:

service1.example.com
service2.example.com

When we create ingress both domains are routed to same service instead of routing to respective services. However path based routing is working fine such as:

example.com/service1
example.com/service2

Below are my ingress configs:

Support is required on the above if I am missing anything.

Regards,

Hello, it seems like you have a minor yaml syntax issue, resulting in two different items underneath ‘rules’. Try removing the second dash so that your host and http values are a part of the same rule entry.

Hi Daniel,

Thanks, It worked.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ