When I modify kube-proxy mode from iptales to ipvs, after restart the kube-proxy, "kubectl logs kube-proxy" return the following error:
server.go:485] unable to create proxier: can't set sysctl net/ipv4/vs/conn_reuse_mode: open /proc/sys/net/ipv4/vs/conn_reuse_mode: no such file or directory
And I confirmcon that I have installed dependent kernel modules by following cmd:
lsmod | grep ip_vs lsmod | grep conntrack
All are ok,so what should I do with the above error?
What modifications are you exactly introducing to your
kube-proxy
and how ? If you are only setting ipvs mode you can do it in a way described here and there shouldn't be any problems.If you're also configuring some additional
sysctls
in thesecurityContext
of yourkube-proxy
Pods
, you may need to consider the following.Keep in mind that there are so called safe and unsafe sysctls. As you can read here: