kubernetes 1.19.0集群扩容添加节点报错error execution phase preflight: couldn‘t validate the identity of the ……

时间:2024-04-03 12:30:31

在对kubernetes 1.19.0 集群扩容的时候报错失败,控制台打印信息如下

kubernetes 1.19.0集群扩容添加节点报错error execution phase preflight: couldn‘t validate the identity of the ……

[preflight] Running pre-flight checks
error execution phase preflight: couldn't validate the identity of the API Server: could not find a JWS signature in the cluster-info ConfigMap for token ID "9igmi0"
To see the stack trace of this error execute with --v=5 or higher

意思就是在执行 phase preflight的时候身份认证失败,token 签名认证不成功

解决方法:

 kubeadm token create 重新获取

更换token后加入集群成功

kubernetes 1.19.0集群扩容添加节点报错error execution phase preflight: couldn‘t validate the identity of the ……

查看节点

kubectl get nodes -o wide
NAME        STATUS   ROLES    AGE     VERSION   INTERNAL-IP       EXTERNAL-IP   OS-IMAGE                KERNEL-VERSION                CONTAINER-RUNTIME
master121   Ready    <none>   5m18s   v1.19.0   192.168.161.121   <none>        CentOS Linux 7 (Core)   3.10.0-862.el7.x86_64         docker://1.13.1
slave122    Ready    <none>   40h     v1.19.0   192.168.161.122   <none>        CentOS Linux 7 (Core)   3.10.0-862.el7.x86_64         docker://1.13.1
slave123    Ready    master   42h     v1.19.0   192.168.161.123   <none>        CentOS Linux 7 (Core)   3.10.0-1127.19.1.el7.x86_64   docker://1.13.1

没问题

看下dashboard是否正常

kubernetes 1.19.0集群扩容添加节点报错error execution phase preflight: couldn‘t validate the identity of the ……