Kubernetes官方文檔的安裝過程中,有些地方需要使用國內(nèi)的鏡像源才能完成
這篇文章整合了所有需要替換國內(nèi)鏡像的地方,供參考
環(huán)境
操作系統(tǒng):Rocky 9(最小安裝)
容器運行時:containerd
yum源
k8s阿里云源文章來源:http://www.zghlxwxcb.cn/news/detail-503756.html
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
docker-ce阿里云源
安裝containerd時需要,實測輸入這一行命令就可以了文章來源地址http://www.zghlxwxcb.cn/news/detail-503756.html
到了這里,關(guān)于Kubeadm 部署 k8s 使用國內(nèi)鏡像源的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!