How to set up AKS to use host name-based routing

Nagaraj 5 Reputation points
2023-04-04T06:45:13.2466667+00:00

Hi, In AKS with http_routing_ addon,I am able to use host name based routing. I understand that once http routing addon enabled, internally it deploys ingress controller and External DNS which scans the ingress and services to update Azure DNS accordingly. And also it provides azure based domain i.e .<region>.aksapp.io and i can use this public domain for hostname based routing. After using http routing add on i was able to access serviceA.eastus.aksapp.io and serviceB.eastus.aksapp.io As the http routing addon is being retired and not suitable for prodution,I would like to know what is the alternative to achive the same. Please note that i am trying to avoid setting up custom domian. Is there a way to use <region>.aksapp.io without using httprouting addon.?

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.
2,436 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Andrei Barbu 2,596 Reputation points Microsoft Employee
    2023-04-04T06:55:07.3066667+00:00

    Hello Nagaraj

    You can expose your applications via a Kubernetes Service type Public LoadBalancer. That will expose it via a public IP. In Azure, for a public IP you can specify a DNS name label, for example:

    User's image

    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 comments No comments

Your answer

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