k8s问题大全

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

发布了71 篇原创文章 · 获赞 13 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_29611427/article/details/93482227
k8s