Multiple services on same url in kubernetes

424 Views Asked by At

What happens if you have two services in kubernestes that exposes the same url in their ingress configuration?

1

There are 1 best solutions below

0
On BEST ANSWER

Two ingress definitions with the same ingress annotation and host should be merged into a single virtualhost.

The details of how this is done and how path collisions are handled is implementation specific for each ingress controller.

For example, ingress-nginx sorts the ingress definitions by CreationTimestamp to keep the oldest definitions in place.