Is ASP .NET Core app hosted on kubernetes in Azure Cloud is aware of its domain address?

10/29/2021

I have an app which is hosted on pods behind traffic manager. Is there any way to fetch from application level the full app address (protocol + domain name) or the only way is to insert this data to appsettings.json while app is being deployed to the given environment?

-- Yoda
asp.net-core
kubernetes

0 Answers