K8s No Route to Host

Kubernetes version 1.13.2

Today I set up a 4 nodes cluster that 3 nodes belong to the same group and one node from another group. It works fine:

1
2
3
4
5
NAME                   STATUS   ROLES    AGE     VERSION
dstest1.fyre.xxx.com Ready master 4h22m v1.13.2
dstest2.fyre.xxx.com Ready <none> 4h15m v1.13.2
dstest3.fyre.xxx.com Ready <none> 4h15m v1.13.2
opsf3.fyre.xxx.com Ready <none> 4h15m v1.13.2

After I scheduling a pod in opsf3.fyre.xxx.com and run kubectl exec -it, I get this error:

1
Error from server: error dialing backend: dial tcp 172.16.11.239:10250: connect: no route to host

The reason is the firewall is active in opsf3.fyre.xxx.com if you check by running:

1
systemctl status firewalld

Run below commands to stop and disable it, then thing get works.

1
2
systemctl stop firewalld
systemctl disable firewalld
0%