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
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.
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://docs.microsoft.com/en-us/azure/aks/private-clusters#aks-run-command
@IuryFukuda-7915 , by "communicate kubernetes with VMs" if you mean VMs talking to applications deployed on Kubernetes or vice versa then you can use:
Azure CNI with the Kubernetes cluster. [How-to guide for AKS] With Azure Container Networking Interface (CNI), every pod gets an IP address from the subnet and can be accessed directly. The VMs must be in the same virtual network as the Kubernetes cluster or in a network (on-premises or Azure Virtual network) connected to the cluster's virtual network.
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.
15 people are following this question.