Connect to a private AKS control plane through a P2S VPN connection to a virtual hub

João Madureira 21 Reputation points
2021-06-29T11:02:47.43+00:00

I have a private AKS cluster deployed on a VNET with a BYO private DNS zone. In order to connect to the control plane I need to be able to resolve the *.privatelink.<region>.azmk8s.io domain name. In order to do that I need to create a virtual network link to the VNET I'm connecting from.

But when I create a virtual hub and configure a P2S VPN connection I can only change the address space and do not have access to the underlying network that gets created hence I cannot create any virtual network link.

So the question here is how can I connect to an internal AKS control plane from a P2S VPN connection to a virtual hub.

We can also generalize this problem: how can I resolve private DNS names from a PS2 VPN connection to a virtual hub?

Thanks in advance

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
190 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,415 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,906 questions
{count} votes

Accepted answer
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2021-06-30T01:21:36.3+00:00

    Unfortunately you cannot resolve Private DNS Zones by default using a P2S VPN. This is indirectly inferred here in this doc about DNS resolution in Azure, but not directly stated. You can try editing the hosts.txt for the DNS entry (cname record) of the computer you are connecting via the P2S VPN, but this still might have issues if the AKS cluster does not expect the request to come from that address range.

    0 comments No comments

0 additional answers

Sort by: Most helpful