早上使用 kubectl 创建了一个 nginx 的集群,看状态都跑起来了,但是使用 curl 就一个可以,一个不可以
各种看情况,结果发现是防火墙问题
使用systemctl status firewalld 查看防火墙的时候,发现居然是开启的
主要是可能之前安装的时候,没把防火墙永久关闭,在这台机器上使用以下命令关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
使用systemctl status firewalld 查看状态, inactive 则为关闭
再次在 master 端进行请求,可以请求到了该地址,完美解决