k8s问题大全
1.kubectl查看日志报 Error from server:xxxxx:getsockopt: no route to host这是由于防火墙未关的问题# systemctl stop firewalld# systemctl disable firewalld2.docker pull缓慢导致K8s启动node的时候Pull Faild##使用阿里云镜像加速器[r...
·
1.kubectl查看日志报 Error from server:xxxxx:getsockopt: no route to host
这是由于防火墙未关的问题
# systemctl stop firewalld
# systemctl disable firewalld
2.docker pull缓慢导致K8s启动node的时候Pull Faild
##使用阿里云镜像加速器
[root@localhost ~]# mkdir -p /etc/docker
[root@localhost ~]# tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}
EOF
[root@localhost ~]# systemctl daemon-reload
[root@localhost ~]# systemctl restart docker
更多推荐
已为社区贡献1条内容
所有评论(0)