[root@k3 ~]# kubeadm join 172.16.92.9:6443 --token xbeskj.cqdo97lep8h5dvxw --discovery-token-ca-cert-hash sha256:d7ceaa3ac88bbf37b7e394cde83458b3603f928d646c347a9a70cdfac657a33e
[preflight] Running pre-flight checks
[preflight] The system verification failed. Printing the output from the verification:
KERNEL_VERSION: 3.10.0-1160.el7.x86_64
DOCKER_VERSION: 18.09.9
DOCKER_GRAPH_DRIVER: overlay2
OS: Linux
CGROUPS_CPU: enabled
CGROUPS_CPUACCT: enabled
CGROUPS_CPUSET: enabled
CGROUPS_DEVICES: enabled
CGROUPS_FREEZER: enabled
CGROUPS_MEMORY: enabled
CGROUPS_PIDS: enabled
CGROUPS_HUGETLB: enabled
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR SystemVerification]: failed to parse kernel config: unable to load kernel module: "configs", output: "modprobe: FATAL: Module configs not found.\n", err: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher
我是k3这个机器出了问题,但是没有任何理由,因为都是相同的配置,啥都是一模一样的,如果报错应该是都报错,所以我下面选择忽略
yum -y install kernel*
如果你感觉没问题的话可以直接忽略这个错误
kubeadm join 172.16.92.9:6443 --token xbeskj.cqdo97lep8h5dvxw --discovery-token-ca-cert-hash sha256:d7ceaa3ac88bbf37b7e394cde83458b3603f928d646c347a9a70cdfac657a33e --ignore-preflight-errors=SystemVerification
[root@k1 ~]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
k1 NotReady control-plane,master 78m v1.20.1
k2 NotReady <none> 74m v1.20.1
k3 NotReady <none> 51s v1.20.1