kubernetes-starter icon indicating copy to clipboard operation
kubernetes-starter copied to clipboard

CentOS7下Node节点主机无法监听expose暴露的服务端口

Open Sercl opened this issue 6 years ago • 2 comments

在CentOS7中kube-proxy组件运行时会报iptables错误,导致Node节点无法监听到服务端口。

proxier.go:1667] Failed to execute iptables-restore: exit status 1 (iptables-restore: invalid option -- '5'

查阅资料发现kubernetes1.9会与iptables有冲突,官方和老师提供的1.9版本二进制文件均未修复此问题。 官方解决Fix use of "-w" flag to iptables-restore

解决过程: 编译更新后的1.9版本源代码为二进制,替换kube-proxy文件,更改权限,重启服务则可以解决问题。 编译后的kube-proxy文件 如果可以的话希望老师更新一下百度云里的资源,会为其他学习者省不少事,非常感谢。

Sercl avatar Jan 28 '19 18:01 Sercl

厉害了,非常感谢 👍

liuyi01 avatar Jan 30 '19 08:01 liuyi01

厉害厉害,非常感谢💯

yaoxiaojin avatar May 18 '19 04:05 yaoxiaojin