centos7在yum安装etcd、kubernetes时,提示找不到源
[baseuser@SHDL009020141 ~]$ sudo yum install -y etcd kubernetes
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No package etcd available.
No package kubernetes available.
Error: Nothing to do
1.备份repo文件
[baseuser@SHDL009020141
~]$ cd /etc/yum.repos.d/
[baseuser@SHDL009020141
yum.repos.d]$ ll
total 4
-rw-r--r-- 1 root
root 162 Dec 9 11:49 saltup.repo
[baseuser@SHDL009020141
yum.repos.d]$ sudo cp saltup.repo saltup.repo.backup
[baseuser@SHDL009020141
yum.repos.d]$ ll
total 8
-rw-r--r-- 1 root
root 162 Dec 9 11:49 saltup.repo
-rw-r--r-- 1 root
root 162 Dec 26 17:44 saltup.repo.backup
2.下载163repo文件
[baseuser@SHDL009020141
yum.repos.d]$ sudo wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[baseuser@SHDL009020141
yum.repos.d]$ yum makecache
3.安装成功
[baseuser@SHDL009020141
~]$ sudo yum install -y etcd kubernetes