How can I configure load-balancing strategy for cluster Ip service

Viewed 57

I see in the Service documentation https://kubernetes.io/docs/concepts/services-networking/service/#proxy-mode-ipvs that for Kube-proxy in IPVS proxy mode there are several load balancing modes supported: " IPVS provides more options for balancing traffic to backend Pods; these are:

rr: round-robin
lc: least connection (smallest number of open connections)
dh: destination hashing
sh: source hashing
sed: shortest expected delay
nq: never queue

Can those be set on cluster Ip service type and if yes how? I think the default mode is round-robin but I don't know how (if possible) to change it. And if anyone has any experience with those it would be greatly appreciated. I guess the least connection or shortest expected delay would make the most sense, as there is no session to be kept.

0 Answers
Related