Share via

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

Kailash 56 Reputation points
2023-03-20T06:13:32.85+00:00

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 -

https://us.east/application1

https://us.east/application2

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

https://us.east/application3

https://us.east/application4

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?

Regards,

Sam

Azure Traffic Manager
Azure Traffic Manager

An Azure service that is used to route incoming network traffic for high performance and availability.

Azure
Azure

A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.

Azure Kubernetes Service
Azure Kubernetes Service

An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.

Azure Load Balancer
Azure Load Balancer

An Azure service that delivers high availability and network performance to applications.

0 comments No comments

Answer accepted by question author

Andrei Barbu 2,601 Reputation points Microsoft Employee
2023-03-20T07:24:56.66+00:00

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: https://learn.microsoft.com/en-us/azure/application-gateway/create-url-route-portal

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

https://learn.microsoft.com/en-us/azure/frontdoor/front-door-overview

https://learn.microsoft.com/en-us/azure/frontdoor/front-door-route-matching?pivots=front-door-standard-premium

https://learn.microsoft.com/en-us/azure/aks/operator-best-practices-multi-region#application-routing-with-azure-front-door-service


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!

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.