Access resource in a peered private network from AKS cluster using Kubenet. Load Balancer, NodePort, IPCluster?

Michal Lechowski 21 Reputation points
2022-03-23T10:03:54.52+00:00

Hello,

haven't found an answer for such case. I have AKS Cluster using Kubenet as networking setup. I need to access a resource from a VNET (MQTT broker basically to subscribe to). Is that doable with AKS + Kubenet?

My questions are:

  1. Is that enough to set up peering in AKS Cluster -> Peering section in Azure Portal?
  2. If yes then how PODs should be configured to access external resource in the peered network? Should Service be Load Balancer, NodePort or (probably not) ClusterIP?

/Michael

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,195 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,883 questions
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-03-29T08:51:18.883+00:00

    Hi @Michal Lechowski ,
    Thanks for reaching out to Microsoft QnA.
    Firstly, apologies for the delay in response.
    I understand you want access resources in a peered network from an AKS cluster. In a Kubenet setup, pods can access resources in the peered network, just how a regular VM can.
    It is recommended to use and internal load balancer to access resources from the peered network.

    Hope this helps.

    --------------------

    Please don't forget to 179759-accept.png and 179670-upvote.png if you think the information provided was useful so that it can help others in the community looking for help on similar issues.


0 additional answers

Sort by: Most helpful