yum update更新系统文件问题
Error: Package: php56w-pecl-imagick-3.4.3-1.w7.x86_64 (@webtatic)
Requires: libMagickWand.so.5()(64bit)
Removing: ImageMagick-6.7.8.9-16.el7_6.x86_64 (@updates)
libMagickWand.so.5()(64bit)
Updated By: ImageMagick-6.9.10.68-5.el7_9.x86_64 (updates)
Not found
Error: Package: php56w-pecl-imagick-3.4.3-1.w7.x86_64 (@webtatic)
Requires: libMagickCore.so.5()(64bit)
Removing: ImageMagick-6.7.8.9-16.el7_6.x86_64 (@updates)
libMagickCore.so.5()(64bit)
Updated By: ImageMagick-6.9.10.68-5.el7_9.x86_64 (updates)
Not found
主要是php版本冲突,没有找到适当的yum仓库,可以通过配置有php yum仓库包解决,这里考虑环境并到并不需要php 进行
Yum update -y --skip-broken 跳过这个阻塞
Docker-ce 安装
docker-ce-19.03.11-3.el7.x86_6 FAILED 2% [=- ] 380 B/s | 2.0 MB 66:58:55 ETA
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.11-3.el7.x86_64.rpm: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-19.03.11-3.el7.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
网络问题 -这块需要更新yum仓库为阿里云的镜像仓库,直接执行更新yum仓库:
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
exclude=kube*
EOF
并执行 yum clean all
kubernetes出现failed to find plugin "portmap" in path
这是因为在操作中 /opt/cni/bin目录不存在
E0912 15:07:55.339798 62661 kubelet.go:2103] Container runtime network not ready: NetworkReady=false reason:NetworkPluginNo...initialized
Hint: Some lines were ellipsized, use -l to show in full.
这块也比较容易定位和解决重新清理和安装插件
yum remove kubernetes-cni -y
yum reinstall kubernetes-cni