xiaods / k8e

K8E - Kubernetes Easy Engine
https://getk8e.com
Apache License 2.0
391 stars 25 forks source link

k8e check-config 在harbian 22.04上通不过 #251

Closed thomasdba closed 2 years ago

thomasdba commented 2 years ago

OS: harbian 22.04 (seems based on ubuntu 22.04) arch: x86 64

k8e check-config log is below :

INFO[0000] Acquiring lock file /var/lib/k8e/data/.lock
INFO[0000] Preparing data dir /var/lib/k8e/data/ca5c2f67a814dd475319811b12a7fb6c4302ae5076e46342f40c5d7714a8e917

Verifying binaries in /var/lib/k8e/data/ca5c2f67a814dd475319811b12a7fb6c4302ae5076e46342f40c5d7714a8e917/bin:

System:

Limits:

modprobe: FATAL: Module configs not found in directory /lib/modules/5.15.0-40-generic info: reading kernel config from /boot/config-5.15.0-40-generic ...

Generally Necessary:

Optional Features:

STATUS: 2 (fail)

xiaods commented 2 years ago
/usr/sbin iptables v1.8.7 (nf_tables): should be older than v1.8.0 or in legacy mode (fail)

cgroup hierarchy: nonexistent?? (fail)
(see https://github.com/tianon/cgroupfs-mount)

解决方案:打开文件 /etc/default/grub,添加

GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=0"

解决方案:

update-alternatives --set iptables /usr/sbin/iptables-legacy

最终解决方案,需要 k8e/contrib/util/check-config.sh 需要优化。

xiaods commented 2 years ago

脚本已经更新,请使用最新的k8e版本部署,可以获得支持。

截屏2022-06-30 下午11 32 21
xiaods commented 2 years ago

v1.21.14-rc3+k8e1 更新了check-config.sh。修复了以上 2个failed的bug。可以直接用了。