Score:0

Kubernetes Load balancer on Azure via kubeadm

bg flag

We have created a Kubernetes cluster ( 1 master, 2 workers VMs) using kubeadm on Azure. The master and worker VMs have private IPs only.

We are bringing up an nginx pod of service type - Load balancer in the cluster. Post this we are able see a Kubernetes load balancer and a public ip resource created in the resource group, which is fine.

However, now the two worker VMs automatically get the Load Balancer Public IP ( which is something we do not want)

Is this the default behaviour while deploying and LB via kubernetes on Azure ?

Mikołaj Głodziak avatar
id flag
Did you add some additional configuration to make `LoadBalancer` service type working on `kubeadm` on Azure? If yes, could you provide tutorial that you used? What CNI plugin are you using? Could you share yaml configuration files that are you applied? Please add missing information to your quesiton.
ng flag
Any reason your building a cluster yourself rather than using AKS, which would deal with these issues for you?
Dilip avatar
bg flag
@SamCogan Well, we do have and use AKS as well, one of the advantages of using kubeadm ( at least for us) is that it can be used to setup Kubernetes on for example both AWS and Azure. So same tooling for different clouds. For sure, there are pros and cons, but i feel it does give you some sort of flexibility and custom options in terms of configuration/setup
ng flag
@dilip fair enough, your just taking on a lot of management and support load. There are options to still use the cloud providers Kubernetes instance and still deploy to multiple clouds, such as Terraform and Pulumi
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.