sunkezai 发表于 2018-1-5 11:14:14

Kubernetes Cluster Error Accessing gcr.io

  使用
  

kubectl run nginx --image=nginx  

  后查看:
  

kubectl describe pods  

  发现处于creating状态,并且报错:
  (unable to ping registry endpoint https://gcr.io/v0/\nv2 ping attempt failed with error: Get https://gcr.io/v2/:...
  原因:gcr.io被墙,无法ping到。
  解决方法:
  在各个nodes上,从dockerhub拉取相关image并打新的tag:(可以使用ansible解决)
  

docker pull docker.io/kubernetes/pause  

  
docker tag kubernetes
/pause gcr.io/google_containers/pause:2.0  

  
docker tag gcr.io
/google_containers/pause:2.0 gcr.io/google_containers/pause  

  再次在master上使用
  

kubectl run nginx --image=nginx  

  
kubectl
get deployments  

  可以发现nginx已经启动。
  参考链接:http://blog.csdn.net/wangtaoking1/article/details/49122977
页: [1]
查看完整版本: Kubernetes Cluster Error Accessing gcr.io