Kubernetes ---- kubeadmin join添加至集群失败
添加至K8S集群过程中出现异常:
error execution phase preflight: couldn't validate the identity of the API Server: abort connecting to API servers after timeout of 5m0s!
解决方法:
此报错是因为master节点上的token过期了,需要重新生成.(最终添加至集群成功)
[master节点操作] ~]# kubeadm token create [node节点操作] ~]# kubeadm join 192.168.133.128:6443 --token fr84gi.8wpiw4cjxgbx4r0a --discovery-token-ca-cert-hash sha256:520516b0ea9516f638ffdb5fdef8a50de5d0e14f1afc 1b98e6c61d20f77fc8ac --ignore-preflight-errors=Swap