针对k8s包
使用工具下载
wget -r -np -nd https://cbs.centos.org/repos/virt7-docker-common-candidate/x86_64/os/Packages/ 所有包 到 localyum下
rm -rf /etc/yum.repos.d/virt7-docker-common-candidate.repo
yum install -y createrepo
cd /data/
mkdir localyum
createrepo -v localyum

yum install httpd
cd /var/www/html
cp -a /data/localyum .
systemctl restart httpd

测试
cat << EOF > /etc/yum.repos.d/local.repo
[local]
name=local
baseurl=http://IP/localyum
enabled=1
gpgcheck=0
EOF

yum clean all
yum makecache
yum install -y flannel

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐