Connectivity from AKS Cluster to Self hosted sql vm from different Vnet

Gnanasoundari 45 Reputation points
2024-07-06T04:27:06.01+00:00

I have a service deployed in Private AKS cluster and database is SQL server in Azure VM, both AKS and SQL server are in different VNET. We can't go with VNET peering since there is IP range conflicts between vnets. Creating private endpoint also won't work since Azure VM are PaaS? Please suggest other options to connect private aks cluster with Azure SQL server.

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,145 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 25,166 Reputation points
    2024-07-08T09:38:17.56+00:00

    Hello @Gnanasoundari

    Thank you for reaching out to the Microsoft Q&A platform.

    If VNET peering and private endpoints are not feasible options for connecting your Private AKS cluster with your Azure SQL Server, you can consider using Azure ExpressRoute or VPN Gateway to establish a secure connection between the two networks.

    You can use ExpressRoute to establish a private connection between your Private AKS cluster and your Azure SQL Server. This will allow you to securely access your SQL Server from your AKS cluster without exposing it to the public internet.

    Alternatively, you can use Azure VPN Gateway to create a site-to-site VPN connection between your Private AKS cluster and your Azure SQL Server. This will allow you to securely access your SQL Server from your AKS cluster over the public internet.

    Both ExpressRoute and VPN Gateway provide secure and reliable connectivity options for connecting your Private AKS cluster with your Azure SQL Server. You can choose the option that best fits your requirements and budget.

    I hope this helps you find a suitable solution for your scenario. Let me know if you have any further questions or if there's anything else I can help you with.

    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.