"Kubernetes Troubleshooting Guide-009" Worker node stuck in Running pre-flight checks when kubeadm join

System environment:

  • Ubuntu 20.04 LTS
  • Docker 20.10.8
  • Kubernetes 1.22.1
  • Node: worker

Excuting an order:

$ kubeadm join 192.168.1.10:6443 --token 190pv8.eaptwyszik6m6vx3 \
	--discovery-token-ca-cert-hash sha256:1a8412327eadeda4c9359db34780d1a5a1171a1c75cf62dbd17c297ace37e680

The error is as follows:

Running pre-flight checks

.....

Error description:

Run Running pre-flight checksuntil stuck

solution:

After excluding problems such as network time synchronization, it is found that the token has expired. The solution is to regenerate a new token.

$ kubeadm token create
gbfuzv.m9uczpgnau0vzjjv

Replace the new tokenand re-execute the command

$ kubeadm join 192.168.1.10:6443 --token gbfuzv.m9uczpgnau0vzjjv \
	--discovery-token-ca-cert-hash sha256:1a8412327eadeda4c9359db34780d1a5a1171a1c75cf62dbd17c297ace37e680

Guess you like

Origin blog.csdn.net/yilovexing/article/details/126546768