In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you what is the solution to the domestic source and mirror source of docker and kubernetes. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Recently, when using kubeadm, it crashed due to various connections. It took a lot of effort, and it was basically solved. Here, some domestic mirror sources, apt sources, kubeadm sources and so on are sorted out for reference.
Domestic mirror source
Azure China provides the best quality mirror source ever used. In terms of speed and coverage. And all support anonymous pull, that is, no login is required. This is very friendly.
Here, I have developed a small script, azk8spull, which can automatically resolve based on the image name and convert it to azure's mirror image source domain name. And pull. After the pull is completed, tag is automatically renamed to the original image name. The script is already open source on https://github.com/xuxinkun/littleTools#azk8spull. The following is an example.
# azk8spull quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1## azk8spull try to pull image from mirror quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1.0.24.1: Pulling from kubernetes-ingress-controller/nginx-ingress-controllerDigest: sha256:76861d167e4e3db18f2672fd3435396aaa898ddf4d1128375d7c93b91c59f87fStatus: Image is up to date for quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1# # azk8spull try to tag quay.azk8s.cn/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1 to quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.24.1.## azk8spull finish pulling. [root@node-64-216C] # azk8spull k8s.gcr.io/pause-amd64:3.1## azk8spull try to pull image from mirror gcr.azk8s.cn/google_containers/pause-amd64:3.1.3.1: Pulling from google_containers/pause -amd64Digest: sha256:59eec8837a4d942cc19a52b8c09ea75121acc38114a2c68b98983ce9356b8610Status: Image is up to date for gcr.azk8s.cn/google_containers/pause-amd64:3.1## azk8spull try to tag gcr.azk8s.cn/google_containers/pause-amd64:3.1 to k8s.gcr.io/pause-amd64:3.1.## azk8spull finish pulling.
The image conversions supported by azk8s.cn are listed below.
Note:
K8s.gcr.io would redirect to gcr.io/google-containers, following image urls are identical:
K8s.gcr.io/pause-amd64:3.1gcr.io/google_containers/pause-amd64:3.1debian apt source
The domestic source of debian's apt can be changed to 163s, which can be significantly accelerated.
Mv / etc/apt/sources.list / etc/apt/sources.list.bak# replace the source echo "deb http://mirrors.163.com/debian/ stretch main non-free contribdeb http://mirrors.163.com/debian/ stretch-updates main non-free contribdeb http://mirrors.163.com/debian/ stretch-backports main non-free contribdeb-src http://mirrors.163.com/debian/ stretch main non-free contribdeb-src http://mirrors.163.com/debian/ stretch" -updates main non-free contribdeb-src http://mirrors.163.com/debian/ stretch-backports main non-free contribdeb http://mirrors.163.com/debian-security/ stretch/updates main non-free contribdeb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib "> / etc/apt/sources.listkubeadm source
Kubeadm can directly use the source of Aliyun. It's faster, too.
# Debian/Ubuntuapt-get update & & apt-get install-y apt-transport-httpscurl-s https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add-cat
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.