cloudnativer / kube-install

一键安装k8s(kubernetes):二進位離線方式部署,支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。Install k8s (kubernetes): one click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Apache License 2.0
422 stars 118 forks source link

update kernel4.19 and updategrub error #20

Closed lxd5866 closed 2 years ago

lxd5866 commented 3 years ago

update kernel4.19 and updategrub is a dangerous operation, can we add a confirmation option to this step。I've had two boot failures because of this,and I prefer to do this manually

houseonline commented 3 years ago

The default kernel of some earlier versions of CentOS 7 lacks modules such as br_netfilter required by the kubernetes network, and the kernel needs to be optimized. Therefore, kube-install will upgrade and optimize the kernel of the CentOS 7 operating system by default. At some point, you may encounter the problem that the host cannot start.

In addition, the default kernel of CentOS 8, RHEL 8, SUSE Linux 15, Ubuntu 20, etc. does not have this problem, so the kernel will not be automatically upgraded, and it can be successfully installed and used!

cloudnativer commented 3 years ago

Thank you for your feedback!

We will add the skip upgrade kernel function in v0.7.3 and above. You can choose whether to skip the operating system kernel upgrade, and then you can optimize the centos7 kernel problem yourself.

cloudnativer commented 3 years ago

Screenshot of function preview of new version:

kube-install-auosk001

lxd5866 commented 3 years ago

thanks