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

Ivan Borisov 50 Reputation points
2023-10-03T13:39:47.0566667+00:00

Hello,

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,
Ivan

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
    2023-10-04T07:52:26.5233333+00:00

    Hi @Ivan Borisov,

    It seem this is still not available, and here is a Github issue: https://github.com/virtual-kubelet/azure-aci/issues/418

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful