CentOS7.6 利用Kubeadm安装Kubernets(k8s)1.12.2 等老版本报错处理方法
CentOS7.6 利用Kubeadm安装Kubernets(k8s)1.12.2 等老版本 报错
[root@localhost ~]# yum install -y kubelet-1.12.2 kubeadm-1.12.2 kubectl-1.12.2 bash-completion
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
Resolving Dependencies
--> Running transaction check
---> Package bash-completion.noarch 1:2.1-8.el7 will be installed
---> Package kubeadm.x86_64 0:1.12.0-0 will be installed
--> Processing Dependency: kubernetes-cni >= 0.6.0 for package: kubeadm-1.12.0-0.x86_64
---> Package kubectl.x86_64 0:1.12.2-0 will be installed
---> Package kubelet.x86_64 0:1.12.2-0 will be installed
--> Processing Dependency: kubernetes-cni = 0.6.0 for package: kubelet-1.12.2-0.x86_64
--> Running transaction check
---> Package kubelet.x86_64 0:1.12.2-0 will be installed
--> Processing Dependency: kubernetes-cni = 0.6.0 for package: kubelet-1.12.2-0.x86_64
---> Package kubernetes-cni.x86_64 0:0.8.7-0 will be installed
--> Finished Dependency Resolution
Error: Package: kubelet-1.12.2-0.x86_64 (kubernetes)
Requires: kubernetes-cni = 0.6.0
Available: kubernetes-cni-0.3.0.1-0.07a8a2.x86_64 (kubernetes)
kubernetes-cni = 0.3.0.1-0.07a8a2
Available: kubernetes-cni-0.5.1-0.x86_64 (kubernetes)
kubernetes-cni = 0.5.1-0
Available: kubernetes-cni-0.5.1-1.x86_64 (kubernetes)
kubernetes-cni = 0.5.1-1
Available: kubernetes-cni-0.6.0-0.x86_64 (kubernetes)
kubernetes-cni = 0.6.0-0
Available: kubernetes-cni-0.7.5-0.x86_64 (kubernetes)
kubernetes-cni = 0.7.5-0
Available: kubernetes-cni-0.8.6-0.x86_64 (kubernetes)
kubernetes-cni = 0.8.6-0
Installing: kubernetes-cni-0.8.7-0.x86_64 (kubernetes)
kubernetes-cni = 0.8.7-0
You could try using --skip-broken to work around the problem
处理方法
yum list kubelet --showduplicates
# 找到有个 kubelet-1.12.2-0的版本,下载该版本
yum install --downloadonly --downloaddir=/tmp kubelet-1.12.2-0
作者:一毛
本博客所有文章仅用于学习、研究和交流目的,欢迎非商业性质转载。
不管遇到了什么烦心事,都不要自己为难自己;无论今天发生多么糟糕的事,都不应该感到悲伤。记住一句话:越努力,越幸运。