问题描述:在k8s集群基础上部署kubesphere,部署不成功,多个容器状态显示异常

kubectl get pods -n kubesphere-system


首先查看某个异常pod的详细信息

kubectl describe pod ks-apiserver-7b6bdb7cd9-hwr64 -n kubesphere-system

发现问题如下:

Failed to pull image "kubespheredev/ks-apiserver:latest": rpc error: code = Unknown desc = error pulling image configuration: Get https://production.cloudflare.docker.com/registrstry/ v2/blobs/sha256/08/ 0823480201992edb 4e636b0a2 29ad877b095 12de3 24aa848c2f8f5946770d4cb/data?verify=1596449205-Is7UuPCmOthDsEiVHKF6R2DnYRA%3D: dial tcp 104.18. 124.25 :443: i /o ti

解决:添加nameserver,重启docker

systemctl restart docker

 

Logo

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

更多推荐