In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.