How to communicate kubernetes with VMs in private network?

Iury Fukuda 1 Reputation point
2021-09-13T20:41:07.063+00:00

I use azure. I need to communicate kubernetes with VMs in private network.

I can't do it in kubelet.

Can anywho help with this? Thank's for your time

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,346 Reputation points Microsoft Employee
    2021-09-27T10:33:10.303+00:00

    @IuryFukuda-7915 , by "communicate kubernetes with VMs" if you mean VMs talking to applications deployed on Kubernetes or vice versa then you can use:

    AKS private clusters should be considered only when you want traffic to and from your API server to remain on a private network.

    ----
    Hope this helps.

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.
    0 comments No comments

  2. Devaraj G 2,096 Reputation points Volunteer Moderator
    2021-09-15T13:18:19.327+00:00

    Hi , I assume its a AKS deployment.

    you can leverage azure private endpoint to connect to AKS management. This network interface connects you privately and securely to a service powered by Azure Private Link.

    More details can be found here.
    https://learn.microsoft.com/en-us/azure/private-link/private-endpoint-overview

    0 comments No comments

  3. shiva patpi 13,366 Reputation points Microsoft Employee Moderator
    2021-09-15T13:39:13.94+00:00

    Hello @IuryFukuda-7915 ,
    Along with the details mentioned by Dev , you can also try to use AKS Run Command to connect to private cluster to invoke kubelet commands
    More details are at :- https://learn.microsoft.com/en-us/azure/aks/private-clusters#aks-run-command

    Regards,
    Shiva.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.