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?
You have to set the mode on the kube proxy command line.