AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Question - AKS Internal Load Balancer, Web App & Private DNS Zone?

Open c-mccutcheon opened this issue 8 years ago • 8 comments

Quick question around support or sanity of the following?

I am planning on using public web apps for API gateways, with downstream services hosted privately within AKS. I am planning on using the VNET Integration feature for web apps to grant them access to the private network that AKS will reside in.

What I would like is for upstream teams to be able to create private AKS services exposed over an internal load balancer, and for the upstream web apps to be able to reference these by DNS, instead of the ILB IP Address.

Is it possible to combine an Azure Private DNS Zone, with AKS inside a Virtual network to create this kind of setup? If not would there be a decent alternative to requiring the web apps to need to work off the knowledge of IP addresses of the load balancers?

Cheers!

c-mccutcheon avatar May 19 '18 13:05 c-mccutcheon

Sounds to me like you should expose your k8s services over an internal load balancer (Which is in the aks docs).

After that you can make manually at the dns entry pointing to the private ip of the service. Or you could look into ExternalDNS to automate to creation of the DNS entries.

Please note that there are some bugs which prevent this from working correctly atm, but the aks team noted them as fixed and they're rolling out over the coming week.

Sounds like the exact solution we're going for atm, so I hoped I saved you some time with this. :)

nphmuller avatar May 19 '18 13:05 nphmuller

Excellent, this is exactly how I envisaged it working and it does create a pretty great setup for teams to drop services into our cluster and give out DNS addresses (we use ExternalDNS already but for public DNS, I was hoping ExternalDNS would be usable for the same kind of setup for Private DNS zone).

Out of interest, is there a link to the trackers for the bugs which would prevent this right now?

Thanks very much!

c-mccutcheon avatar May 19 '18 14:05 c-mccutcheon

We haven't tested it for Private DNS Zone yet, only public. But I see why private zones wouldn't work.

I'll look up the specific issues later, but from the top of my head:

  • Service Principal doesn't have access to VLAN. Documentation issue solved by manually giving the SP rights to the VLAN manually.
  • AKS tries to create the internal load balancer in the incorrect VLAN (not the one specified, but the one incorrectly created by AKS).

nphmuller avatar May 20 '18 16:05 nphmuller

I'm facing the same issue as @nphmuller , AKS fails to create the Internal Load Balancer due to a wrong newtorking configuration, while it's been specified at creation with subnets to use, which belongs to the desired vnet.

chevalier-m avatar May 25 '18 09:05 chevalier-m

The issue with the internal LB not connecting to the custom vnet has been fixed. But only with newly deployed clusters. So you have to delete your cluster en redeploy it.

bramvdklinkenberg avatar May 28 '18 10:05 bramvdklinkenberg

This seems like it would compliment your solution and update the dns zone automatically. We are looking at doing the same once the internal dns zones are GA https://github.com/kubernetes-incubator/external-dns

strtdusty avatar Jun 27 '18 22:06 strtdusty

Cool! Yes we are using external dns for our public zone, planned on using it for private zone too which should be a pretty slick setup!

On Wed, 27 Jun 2018, 23:11 Jeff Bailey, [email protected] wrote:

This seems like it would compliment your solution and update the dns zone automatically. We are looking at doing the same once the internal dns zones are GA https://github.com/kubernetes-incubator/external-dns

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Azure/AKS/issues/379#issuecomment-400845629, or mute the thread https://github.com/notifications/unsubscribe-auth/AJNTkiRMc-dKhw_Uq5xG_RMr6QV3Gqx2ks5uBAMUgaJpZM4UFs-s .

c-mccutcheon avatar Jun 27 '18 22:06 c-mccutcheon

It doesn't look like there's any more action required here, so closing.

seanmck avatar Jul 21 '18 01:07 seanmck