K8s Cluster over Azure using Kubeadm + Autoscaling using VMSS

10/31/2019

I have k8s cluster running in Azure VMs with Azure as cloud provider configured using kubeadm My goal is to add the VMSS for auto-scaling, my CA is running fine and can scale up the VMs in VMSS but it is not able to register node to the cluster.

  • Updated cloud config file.
  • Updated kubeadm config file.
  • Updated cluster-autoscaler-vmss.yaml accordingly.

Refrence:

cluster-autoscaler-vmss.yaml

            - --cloud-config=/etc/kubernetes/cloud.conf
            - --kubeconfig=/etc/kubernetes/admin.conf
            - --nodes=1:10:k8svmss 
            - --node-group-auto-discovery=label:foo=bar

Expect: Node to autoscale and join cluster.

-- Rishabh Rai
autoscaling
azure
azure-vm-scale-set
kubernetes

0 Answers