In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
when we use K8s to build clusters, there is always a hurdle ahead: Google Container Image (gcr.io). K8s, as the son of google, has no reason not to use the google mirror library. The default container of yaml in the cluster configuration file needs to be pulled from gcr.io. However? In China, we have to face google hard, but fortunately we can still use docker hub. In order to successfully build a k8s cluster, we must solve the immediate problems. I provide two ideas for reference only:
1. Agent. The question of the agent will not be mentioned, and the agent will be installed directly after it is completed. A lot of blog are written on the Internet, and so do mine. But you need to pay attention to one problem: do not proxy your own cluster network segment, pod network segment.
two。 If you convert an image in gcr.io into an image in docker hub, you can download it locally and use tag to become a container in yaml requirements, or you can directly change the image in yaml to docker hub image.
-search for relevant images on docker hub. Someone must have made the conversion. Make sure the tag is consistent.
-automate building docker images, refer to building docker automatically using github
-download the mirror agent created by others directly. Thanks to Anjia, Anjia blog, Anjia github author successfully synchronized all gcr.io images to docker hub by using github + travis ci + docker hub. The usage also refers to his blog.
Although has explained how to use it on his official blog, he later made a slight modification and only mentioned it on github, and he has no additional comments on his blog, please pay attention.
The specific changes in are as follows:
K8s.gcr.io/ {image} / {tag} gcr.io/google-containers/ {image} / {tag} anjia0532/google-containers. {image} / {tag}
gives an example:
Docker pull k8s.gcr.io/federation-controller-manager-arm64:v1.3.1-beta.1eq (equivalent to) docker pull anjia0532/google-containers.federation-controller-manager-arm64:v1.3.1-beta.1
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.