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

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐