Why does the ipvs scheduler keep coming back to rr?

4/18/2020

I have one k8s-master, one k8s-workernode.

I created 3 pods, 1 deployment, 1 service(type=ClusterIP).

And kube-proxy-mode was modified to ipvs.

Fixed cluster IP from rr to lc.

(ipvsadm -E -t {ClusterIP:Port} -s lc
ipvsadm-save
ipvsamd-Ln)

However, if you check it after a few seconds, it returns to rr. Why is that?

-- 김관응
ipvs
kubernetes

1 Answer

4/18/2020

You have to set the mode on the kube proxy command line.

-- coderanger
Source: StackOverflow