Communication between asp.net website and Kubernetes/docker microservices in Azure

10/26/2020

We're planning an architecture where asp.net websites must communicate with microservices. The plan is to hos this in Azure, with the Website being an Azure ASP.NET Website and the microservices in Kubernetes/docker containers. I was thinking kubenet was the way to go, so that a number of microservice instances could be spawned on demand without the need for the website to know about this, but it seems like VM-Kubernetes connectivity is not supported unless initiated by the Pod, or am I misunderstanding something? https://docs.microsoft.com/en-us/azure/aks/concepts-network#azure-virtual-networks

-- Jesper
asp.net
azure
docker
kubernetes

1 Answer

10/27/2020

You can add VM in the same Virtual Network as Kubernetes Cluster. And provide private Ip to Kubernetes services using

annotation "service.beta.kubernetes.io/azure-load-balancer-internal: "true" and VM So they can communicate with each other.

-- avadhut007
Source: StackOverflow