kube-proxy 有一个选项叫 --proxy-mode,根据帮助信息,这个选项可以是userspace或iptables。(见下文)
# kube-proxy -h
Usage of kube-proxy:
...
--proxy-mode="": Which proxy mode to use: 'userspace' (older, stable) or 'iptables' (experimental). If blank, look at the Node object on the Kubernetes API and respect the 'net.experimental.kubernetes.io/proxy-mode' annotation if provided. Otherwise use the best-available proxy (currently userspace, but may change in future versions). If the iptables proxy is selected, regardless of how, but the system's kernel or iptables versions are insufficient, this always falls back to the userspace proxy.
...
我无法弄清楚用户空间模式在这里意味着什么。
谁能告诉我 kube-proxy 在用户空间模式下运行时的工作原理是什么?