Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sercl opened this issue Jan 28, 2019 · 2 comments
Open

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

Sercl opened this issue Jan 28, 2019 · 2 comments

Comments

@Sercl
Copy link

Sercl commented Jan 28, 2019

在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文件
如果可以的话希望老师更新一下百度云里的资源,会为其他学习者省不少事,非常感谢。

@liuyi01
Copy link
Owner

liuyi01 commented Jan 30, 2019

厉害了,非常感谢 👍

@yaoxiaojin
Copy link

厉害厉害,非常感谢💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants