Forum Discussion

farzadjalali-1e's avatar
farzadjalali-1e
Copper Contributor
Aug 09, 2021

Azure kubernetes service (AKS) , load balancer with least Connection

I need to make a load balancer that works based on the "Least Connection" , here is the documentation on the Kubernetes website :
https://kubernetes.io/docs/concepts/services-networking/_print/#proxy-mode-ipvs

 

Look like I need to use IPVS (proxy mode) and then the below option:

  • lc: least connection (smallest number of open connections)

but I can't get it done, (I'm using AKS 1.20.7)

 

my Question:

How to start the kube-proxy in IPVS proxy mode?

 

1 Reply

  • philipwelz's avatar
    philipwelz
    Copper Contributor

    Hey,

    AFAIK IPVS is not supported with AKS. See also here: https://github.com/Azure/AKS/issues/1846

    To answer your question:

    By default kube-proxy has a config map in the kube-system namespace where you could set mode to "IPVS". On AKS there is no configmap for kube-proxy so you have to edit the Daemonset and update the container startup commands.

    Its no AKS, but maybe this helps if you play around a bit: https://medium.com/@selfieblue/how-to-enable-ipvs-mode-on-aws-eks-7159ec676965

    BR,

    Philip

Resources