美文网首页Kuberne...
kube-proxy报错 "--random-fully"解决方

kube-proxy报错 "--random-fully"解决方

作者: Linux丶晨星 | 来源:发表于2020-07-16 09:48 被阅读0次
Jul 16 09:32:09 k8s-node1 kube-proxy: I0716 09:32:09.536704   7242 proxier.go:1848] \
Not using `--random-fully` in the MASQUERADE rule for iptables because \
the local version of iptables does not support it

原因:
iptables 本地iptables版本不支持,要升级iptables

安装升级iptables所需依赖

yum install gcc make libnftnl-devel libmnl-devel autoconf automake libtool bison flex  \
libnetfilter_conntrack-devel libnetfilter_queue-devel libpcap-devel

编译安装iptables

export LC_ALL=C
wget wget https://www.netfilter.org/projects/iptables/files/iptables-1.6.2.tar.bz2
tar -xvf iptables-1.6.2.tar.bz2
cd iptables-1.6.2
./autogen.sh
./configure
make -j4
make install
# 覆盖
cd /usr/local/sbin
\cp iptables /sbin
\cp iptables-restore /sbin/
\cp iptables-save /sbin/

可以把/usr/local/sbin下面的iptables相关的东西打包然后分发到其它服务器

重启 kube-proxy 与 kubelet

systemctl restart kubelet.service kube-proxy.service

相关文章

网友评论

    本文标题:kube-proxy报错 "--random-fully"解决方

    本文链接:https://www.haomeiwen.com/subject/acnuhktx.html