How to connect to VM Mysql Databases by using AKS?

daniel 16 Reputation points
2022-10-31T06:24:36.33+00:00

How to connect to VM Mysql Databases by using AKS

I have a aks pod service, need to connent VM Databases,
They are in the same Resource Groups

but in the pod, I can't connect databases

How can I do ?

I have already opened port 3306 and adjusted Security group rules, but it does not work.

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

2 answers

Sort by: Most helpful
  1. daniel 16 Reputation points
    2022-11-02T08:00:34.137+00:00
    2 people found this answer helpful.
    0 comments No comments

  2. KarishmaTiwari-MSFT 18,527 Reputation points Microsoft Employee
    2022-11-02T18:23:36.79+00:00

    Original poster shared the resolution as below:

    I use kubenet, and created VNet Peering
    I found that the reason was Insufficient account permissions

    Now, I have open permissions and selected correct Kubenet to create VNet Peering.
    The AKS can connect the VM DB now.

    I referenced this article : https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering

    1 person found this answer helpful.
    0 comments No comments