欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

记一次kubernetes安装失败排查的经历

程序员文章站 2022-04-07 19:47:13
...

当尝试了所有的办法都不行的时候,试试换个系统吧

记一次kubernetes安装失败排查的经历

安装kubernetes v1.18.6怎么都起不来。。。

kernel-3.10.0-229.4.2.el7.x86_64

无奈最后升级了内核至最新版本

$ yum list kernel --showduplicates
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Installed Packages
kernel.x86_64                                                      3.10.0-229.4.2.el7                                                         @koji-override-1
kernel.x86_64                                                      3.10.0-1127.13.1.el7                                                       @updates
Available Packages
kernel.x86_64                                                      3.10.0-1127.el7                                                            base
kernel.x86_64                                                      3.10.0-1127.8.2.el7                                                        updates
kernel.x86_64                                                      3.10.0-1127.10.1.el7                                                       updates
kernel.x86_64                                                      3.10.0-1127.13.1.el7                                                       updates

安装新的内核,然后重启

sudo yum install -y kernel-3.10.0-1127.13.1.el7.x86_64
sudo reboot
$ rpm -qa | grep kernel
kernel-3.10.0-1127.13.1.el7.x86_64
kernel-tools-libs-3.10.0-229.4.2.el7.x86_64
kernel-tools-3.10.0-229.4.2.el7.x86_64
kernel-3.10.0-229.4.2.el7.x86_64
kernel-headers-3.10.0-1127.13.1.el7.x86_64

确认内核版本

$ uname -r
3.10.0-1127.13.1.el7.x86_64

然后再进行之前的步骤,一切都OK了...

 

相关标签: kubernetes