From ca5e4408468b8188629744880f22d0e1c3a27957 Mon Sep 17 00:00:00 2001 From: Chuanyi Li Date: Sun, 10 Jun 2018 21:06:47 +0800 Subject: [PATCH] enable etcd ports in firewall of centos. --- practice/etcd-cluster-installation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/practice/etcd-cluster-installation.md b/practice/etcd-cluster-installation.md index b15d48129..0b931b5bc 100644 --- a/practice/etcd-cluster-installation.md +++ b/practice/etcd-cluster-installation.md @@ -110,6 +110,14 @@ systemctl status etcd 在所有的 kubernetes master 节点重复上面的步骤,直到所有机器的 etcd 服务都已启动。 +注意:如果日志中出现连接异常信息,请确认所有节点防火墙是否开放2379,2380端口。 +以centos7为例: +``` bash +firewall-cmd --zone=public --add-port=2380/tcp --permanent +firewall-cmd --zone=public --add-port=2379/tcp --permanent +firewall-cmd --reload +``` + ## 验证服务 在任一 kubernetes master 机器上执行如下命令: