出現錯誤日誌日誌
kube-proxy 日誌:I0923 10:19:59.443659 543401 proxier.go:1729] Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it
kubelet日誌:I0923 11:24:47.087532 1941 kubelet_network_linux.go:111] Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it
持續不間斷出現這樣的錯誤
按照錯誤日誌提示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下面的iptables相關的東西打包而後分發到其它服務器
cd /usr/local/sbin
\cp iptables /sbin
\cp iptables-restore /sbin/
\cp iptables-save /sbin/
重啓 kube-proxy 與 kubelet
service kube-proxy restart
service kubelet restart
# 再次觀察已經沒有此日誌出現一切恢復正常。