配置yum源
针对k8s包使用工具下载https://cbs.centos.org/repos/virt7-docker-common-candidate/x86_64/os/Packages/所有包rm -rf /etc/yum.repos.d/virt7-docker-common-candidate.repoyum install -y createrepocd /data/mkdi
·
针对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
更多推荐
已为社区贡献3条内容
所有评论(0)