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

docker 1.13.0 版本防火墙规则导致 pod 间互通有问题 #525

Closed
pineking opened this Issue Apr 12, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@pineking
Contributor

pineking commented Apr 12, 2017

现状:
docker 1.13.0 版本的 pod 间以及外部访问 kubernetes 上的服务,比如 dashboard 存在被墙的现象.

原因:
docker 1.13.0 更改了默认的防火墙规整,FORWARD 改为了 drop,导致被防火墙 drop 了

参考描述:
kubernetes/kubernetes#40182

解决方案:
方案一: 在所有节点上开机启动时执行 sudo iptables -P FORWARD ACCEPT
方案二:通过 docker.service 或者 /etc/docker/daemon.json 配置 dockerd 选项 --iptables=false

推荐方案二

@zh794390558

This comment has been minimized.

Show comment
Hide comment
@zh794390558

zh794390558 Apr 28, 2017

Contributor

在 ansible 中尝试 方案一。

Contributor

zh794390558 commented Apr 28, 2017

在 ansible 中尝试 方案一。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment