Kubernetes Cluster Error Accessing Gcr.io

Source: Internet
Author: User





Use


Kubernetes pause
Kubectl Run Nginx--image=nginx



After viewing: kubernetes pause pod



Kubectl describe pods



Found in creating state, and Error: pause pod kubernetes





(Unable to ping registry endpoint Https://gcr.io/v0/\nv2 Ping attempt failed with Error:get https://gcr.io/v2/: ...





Cause: Gcr.io by the wall, unable to ping.





Workaround:





On each nodes, pull the relevant image from Dockerhub and hit the new tag: (You can use ansible to resolve)



Docker pull docker.io/kubernetes/pausedocker tag kubernetes/pause gcr.io/google_containers/pause:2.0  docker tag Gcr.io/google_containers/pause:2.0 Gcr.io/google_containers/pause



Use on Master again



Kubectl run Nginx--image=get deployments



It can be found that Nginx has been started.











Reference Link: http://blog.csdn.net/wangtaoking1/article/details/49122977





Kubernetes Cluster Error Accessing Gcr.io

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.