How to distribute traffic to applications running on multiple AKS clusters based on the URL context?

Kailash 51 Reputation points

Hello experts,

                  We have 2 AKS clusters in the same region that run applications served by different contexts but same URLs otherwise. This is done for organizational purposes. 

For example,

in AKS1, there are 2 applications served with the following URLs -



And in AKS2, we have 2 applications served with the following URLs -



Depending upon the context in the URL, we need to send the request to the corresponding application in one of the 2 clusters. Could someone please let me know how to achieve this routing and what options are available?



Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
97 questions
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
551 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,550 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
334 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andrei Barbu 2,486 Reputation points Microsoft Employee

    Hello Kailash

    As per my understanding, you need guidance about an Azure product that you can use to expose different applications that are running on different AKS clusters which are in the same region on the same host name but different paths, so you are interested in path-based routing.

    For that, you can use an Application Gateway, which is a regional product. This is the link on how to create an Application Gateway with path-based routing rules:

    You may also take in consideration Azure Front Door, which is a global product. Useful links:

    I hope this is helpful. If any clarification needed, let me know and I will do my best to answer.

    Please "Accept as Answer" and Upvote if it helped, so that it can help others in the community looking for help on similar topics.

    Thank you!

0 additional answers

Sort by: Most helpful