Connection between VM in Azure vnet and container on AKS Virtual node

Ivan Borisov 50 Reputation points


Could you please help me find a solution to establish connection from my VM in Azure vnet to a container on AKS Virtual node (CNI Network)? The container is listening on a specific port, but it's IP in ACI CNI network is not reachable from VM's vnet. With regular AKS nodes the same is easily achieved with port-forwarding: kubectl port-forward --address localhost pod/$pod_name :$port. How to do the same with Virtual node and CNI Network?

Kind regards,

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
648 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. mutaz-msft 2,266 Reputation points Microsoft Employee

    Hi @Ivan Borisov,

    It seem this is still not available, and here is a Github issue:

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful