运维-k8s中遇到的问题

1. NoRouteToHost

在使用nfs进行数据挂载的时候,出现上述问题,是因为防火墙的问题,所以只需要关闭防火墙即可
centos7:

# 查看防火墙的状态
systemctl status firewalld.service
# 执行后,出现 绿色字体active(running),证明防火墙开启中

# 关闭防火墙(开机的时候防火墙还是会重启)
systemctl stop firewalld.service 

# 永久关闭
systemctl disable firewalld.service

# 开启
systemctl enable firewalld.service

猜你喜欢

转载自blog.csdn.net/weixin_44704261/article/details/112164215